breaking hyphen? - Page 2

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Re: breaking hyphen?

Andreas Prilop wrote:

Quoted text here. Click to load it

We do, but fonts usually don't; see
(Note the lack of Times New Roman, Arial, and Verdana, for example.)

Using a non-breaking hyphen from a font other than the current one, when
needed, as many browsers (except IE) do and as suggested in CSS specs,
is often risky. It's particularly risky for hyphen-like characters. When
you take one from another font, it might be as wide as your normal
font's en dash. And that's _bad_.

Besides, we wouldn't need the non-breaking hyphen in most cases if
browsers didn't apply line breaking algorithms foolishly. There's a huge
amount of existing web pages with hyphen-minus as the only hyphen, and
breaking "-1" or "Latin-1" is... mad (no matter what you and I think
about using the minus sign in the former and the non-breaking hyphen in
the latter case).

It's more or less as mad as it would be to start breaking after "/" even
within an otherwise alphabetic string mechanically. Oops... Microsoft
actually did that, and...

Re: breaking hyphen?

Oct 2005 15:20:21, seen in news:comp.infosystems.www.authoring.html,
Quoted text here. Click to load it

Indeed.  At least for proportionally-spaced text, there should be no
word-break after a hyphen which starts a "word"; perhaps no break which
generates a fragment of fewer than three characters.  Instead, the whole
line should be squashed up a bit, or the "word" slipped into the next

Probably you'll think of a few exceptional cases ...
  John Stockton, Surrey, UK.  ?   Turnpike v4.00   MIME.
 Web  <URL: - FAQish topics, acronyms, & links.
  The Big-8 newsgroup management is attempting to legitimise its questionable
 practices while retaining its elitist hegemony.  Read <URL:news:news.groups>.

Re: breaking hyphen? wrote:
Quoted text here. Click to load it

The following Mozilla bug reports discuss the issue of breaking,
non-breaking, and soft hyphens:  

9101 (open) soft hyphens

61803 (fixed) non-breaking hyphens

80068 (closed, "works for me") long hyphenated string breaking at
wrong place

95067 (open) lines should break after hyphen unless number follows
hyphen <URL:

253317 (open) need hyphenation dictionary

312063 (open) soft hyphens in non-Latin text

The conclusion is that the overall issue of hyphenation is NOT
simple to resolve.  Even for manully composed English text, the
rules are complicated and not totally comprehensive.  When you add
the need for browsers to render other languages, the complications
become mangified.  

David E. Ross

I use Mozilla as my Web browser because I want a browser that
complies with Web standards.  See <URL:>.

Site Timeline