We already use soft hyphens for wrapping code if you select "Auto code wrapping" in user settings. No, it doesn't work in all browsers.
What your test code doesn't check is whether the soft
hyphens actually allow stuff to wrap. That would be the show stopper
for using them always. If you view this node directly, then you can see
my test for that aspect of things.
It would make sense to have a user setting for using
soft hyphens instead of spaces for the chatterbox nodelet. Not really a
big concern for me, personally, though.
Also note that using soft hyphens will result in more
cases of people being confused when they cut'n'paste from chatter and
don't get what they saw.
- tye
| [reply] [/msg] |
OK,
you've made sense ... seems my browser not only doesn't implement the
W3C's recommendation but thinks of a soft-hyphen as a non-breaking
hyphen! Which makes it even worse than useless. Please ignore my
suggestion :)
| [reply] [/msg] |
Let me see... running RedHat Linux, I tried Mozilla
1.01, Opera 6.11, Konqueror 3.0.3-14 (no, I never use Konqueror: I just
tested every browser I have), and lynx 2.8.5dev.7. The results:
- Mozilla: In your little example, I don't see hyphens. In tye's example, I don't see any hyphens, yet the text does not wrap. So: Mozilla doesn't do it right.
- Opera: Exact same results as Mozilla, no difference whatsoever. So: Opera doesn't do it right.
- Konqueror: In both your and tye's
tests, Konqueror displays those little
"I-don't-understand-that-character" little box and doesn't even begin
to work in either case.
- Lynx: Imagine this: lynx,
against Mozilla, Opera, and Konqueror, is the __only__ browser that
handled this the right way. In your example, I see no hyphens at all.
In tye's example, not
only does it wrap, its shows the hyphens in the right spots: only at
the end where it wraps. So lynx got one thing working nicely at least :)
The verdict: don't make it an enforced "feature", add it
to user settings if you want but don't make it the default setting.
Unless linux browsers smarten up and get with the times, I won't ever
be using this option :)
If the above content is missing any vital
points or you feel that any of the information is misleading, incorrect
or irrelevant, please feel free to downvote the post. At the same time,
reply to this node or /msg me to tell me what is wrong with the post,
so that I may update the node to the best of my ability. If you do not
inform me as to why the post deserved a downvote, your vote does not
have any significance and will be disregarded.
| [reply] [/msg] |
| [reply] [/msg] [d/l] |