Click here to get back home

Allowing lines to break at hyphens?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Allowing lines to break at hyphens? Danny@Kendal 11-15-2004
Posted by Danny@Kendal on November 15, 2004, 3:23 pm
Please log in for more thread options
I've read the recent post about not breaking at hyphens in HTML documents.
I *want* breaking to occur at hyphens. (for 'hyphen' read 'minus sign')

IE6 and Opera7.54 both break phrases such as "never-to-be-forgotten" exactly
as I want but Mozilla1.7.3 and Firefox1.0 don't. The same happens with
entitites such as –
The CSS white-space: property doesn't seem to correct things.

The zero-width space entity ​ after each minus sign fixes things for
all the mentioned browsers except for IE6, which renders it as a small
square box. Does IE6 support this character entity?

The only solution I could find was to insert the following
<span style="font-size:0px"> </span>
after each hyphen. It works but it's a clumsy hack.

The easiest and neatest solution is not to hyphenate the phrase at all.




Posted by Andreas Prilop on November 15, 2004, 4:42 pm
Please log in for more thread options
On Mon, 15 Nov 2004, Danny@Kendal wrote:

> I *want* breaking to occur at hyphens. (for 'hyphen' read 'minus sign')

Err, what?

I *want* Bush. (For 'Bush' read 'Kerry'.)

Usually, I do not want breaking after a minus sign, e.g. -273 °C.

> The zero-width space entity &#x200B; after each minus sign fixes things for
> all the mentioned browsers except for IE6, which renders it as a small
> square box. Does IE6 support this character entity?

U+200B &#8203; is outside the WGL4 character set.
http://ppewww.ph.gla.ac.uk/~flavell/unicode/unidata20.html
This means Internet Explorer in its _default_ setup is likely to fail
at this character.

--
Top-posting.
What's the most irritating thing on Usenet?



Posted by Pierre Goiffon on November 16, 2004, 11:46 am
Please log in for more thread options
> U+200B &#8203; is outside the WGL4 character set.

What is the "WGL4 character set" ?



Posted by Alan J. Flavell on November 16, 2004, 11:18 am
Please log in for more thread options
On Tue, 16 Nov 2004, Pierre Goiffon wrote:

> What is the "WGL4 character set" ?

What's a search engine?

http://www.google.com/search?q=wgl4

Microsoft has now defined a character set standard which includes
characters required by Western, Central, and Eastern European writing
systems, as well as characters required by Greek and Turkish. This
"PanEuropean" character set contains 652 characters and is called
WGL4: Windows Glyph List 4.

Of course, like all vendor-defined "standards", it can change at the
vendor's whim: the original WGL4 definition is subtly different from
the current "WGL4.0" definition. Who'd have thought that .0 was
greater than nothing?


Posted by Brian on November 18, 2004, 10:58 pm
Please log in for more thread options
Alan J. Flavell wrote:

> like all vendor-defined "standards", it can change at the
> vendor's whim

Like Monopoly money, as one web page put it: useful as long as the game
is played. [I Googled for the page, but could not find it. Terms like
monopoly, money, and game are a little too common on the www. ;-) ]

--
Brian (remove "invalid" to email me)


Similar ThreadsPosted
Firefox doesn't break lines at hyphens August 30, 2004, 9:17 am
Blank lines and paragraph break in html May 10, 2007, 10:31 pm
Table without lines June 12, 2008, 12:15 pm
how can I validate with these lines of HTML? May 14, 2005, 7:13 pm
Two lines of text in inline context September 1, 2005, 5:40 am
White space, new lines in tags March 25, 2006, 1:52 am
Lenth of lines in html source? July 7, 2008, 9:33 pm
non-breaking hyphens?? October 8, 2004, 12:59 pm
without

break

November 7, 2004, 8:44 pm
page-break March 3, 2005, 1:33 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap