Skip to content

Commit cd469ca

Browse files
committed
[css-text-3] Make commentary on hyphenation stop heuristics more generic. #3927
1 parent 870f3b6 commit cd469ca

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

css-text-3/Overview.bs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3723,13 +3723,6 @@ Line Breaking Details</h3>
37233723
hyphens/hyphens-span-002.html
37243724
hyphens/hyphens-auto-and-contenteditable-crash.html
37253725
</wpt>
3726-
3727-
Note: In some languages
3728-
(such as English but not German),
3729-
it may be appropriate to avoid having hyphenation opportunities in mixed case words,
3730-
as those may indicate proper nouns.
3731-
This type of heuristic is however not mandated by this specification,
3732-
as it is up to the User Agent and its language-specific hyphenation resource.
37333726
</dl>
37343727

37353728
<p>Correct automatic hyphenation requires a hyphenation resource
@@ -3742,6 +3735,21 @@ Line Breaking Details</h3>
37423735
hyphens/hyphens-auto-001.html
37433736
</wpt>
37443737

3738+
<p class="advisement">
3739+
Authors should correctly tag their content’s <a lt="content language">language</a>
3740+
(e.g. using the HTML <code>lang</code> attribute
3741+
or XML <code>xml:lang</code> attribute)
3742+
in order to obtain correct automatic hyphenation.
3743+
3744+
The UA may use language-tailored heuristics
3745+
to exclude certain words
3746+
from automatic hyphenation.
3747+
For example, a UA might try to avoid hyphenation in proper nouns
3748+
by excluding words matching certain capitalization and punctuation patterns.
3749+
Such heuristics are not defined by this specification.
3750+
(Note that such heuristics will need to vary by language:
3751+
English and German, for example, have very different capitalization conventions.)
3752+
37453753
<p>For the purpose of the 'hyphens' property,
37463754
what constitutes a “word” is UA-dependent.
37473755
However, inline element boundaries
@@ -3755,12 +3763,6 @@ Line Breaking Details</h3>
37553763
hyphens/hyphens-out-of-flow-002.html
37563764
</wpt>
37573765

3758-
<p class="advisement">
3759-
Authors should correctly tag their content’s <a lt="content language">language</a>
3760-
(e.g. using the HTML <code>lang</code> attribute
3761-
or XML <code>xml:lang</code> attribute)
3762-
in order to obtain correct automatic hyphenation.
3763-
37643766
Any glyph(s) shown due to hyphenation
37653767
at a [=hyphenation opportunity=] created by a conditional hyphen character (such as U+00AD SOFT HYPHEN)
37663768
are represented by that character

0 commit comments

Comments
 (0)