Closed Bug 369437 Opened 17 years ago Closed 17 years ago

Breaking hyphens do not break

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 95067

People

(Reporter: daniel, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9

Based on this Unicode spec: http://www.unicode.org/reports/tr14/

In firefox the following characters are behaving like non-breaking characters but according to the spec they are supposed to provide a break opportunity:
U+058A ARMENIAN HYPHEN
U+2010 HYPHEN
U+2012 FIGURE DASH
U+2013 EN DASH

Also the spec mentions that HYPHEN-MINUS (U+002D) should act like HYPHEN (U+2010) if used in a context where it is meant as a hyphen. Figuring out meaning from context is next to impossible but a hyphen used between 2 alphabetic characters is probably a good enough rule of thumb.

MSIE and Opera use those characters as break opportunities. In the case of HYPHEN-MINUS I wouldn't say it is always the semantically correct thing to do, but I find it is far more useful than keeping long hyphenated expressions glued together.

Reproducible: Always

Steps to Reproduce:
1.create an html file with:
<p>ARMENIAN HYPHEN word&#x058A;word&#x058A;word&#x058A;word&#x058A;word&#x058A;word&#x058A;word&#x058A;word&#x058A;word&#x058A;word&#x058A;word
<p>HYPHEN          word&#x2010;word&#x2010;word&#x2010;word&#x2010;word&#x2010;word&#x2010;word&#x2010;word&#x2010;word&#x2010;word&#x2010;word
<p>FIGURE DASH     word&#x2012;word&#x2012;word&#x2012;word&#x2012;word&#x2012;word&#x2012;word&#x2012;word&#x2012;word&#x2012;word&#x2012;word
<p>EN DASH         word&#x2013;word&#x2013;word&#x2013;word&#x2013;word&#x2013;word&#x2013;word&#x2013;word&#x2013;word&#x2013;word&#x2013;word
<p>HYPHEN-MINUS    word&#x002D;word&#x002D;word&#x002D;word&#x002D;word&#x002D;word&#x002D;word&#x002D;word&#x002D;word&#x002D;word&#x002D;word

2. look at the page in a very narrow window
Actual Results:  
single lines of unbroken text, horizontal scrolling

Expected Results:  
lines should be broken at dash/hyphens
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.