Skip to content

Commit

Permalink
[css-text-3] Clarifications to line breaking. #2559
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Dec 6, 2018
1 parent b0ad2ae commit dc4a24f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions css-text-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -968,13 +968,13 @@ Line Breaking Details</h3>
i.e. where it is “normal” and permissible to break lines of text.
Specifically it controls whether a <a>soft wrap opportunity</a> exists
between adjacent <a>typographic letter units</a>
(or other <a>typographic character units</a>
(and/or non-<a>letter</a> <a>typographic character units</a>
belonging to the
<code>NU</code>, <code>AL</code>, <code>AI</code>, or <code>ID</code>
Unicode line breaking classes [[!UAX14]]).
It does not affect rules governing the <a>soft wrap opportunities</a>
created by spaces (including U+3000 IDEOGRAPHIC SPACE) and punctuation.
(See 'line-break' for controls affecting punctuation.)
created by spaces (including U+3000 IDEOGRAPHIC SPACE) and around punctuation.
(See 'line-break' for controls affecting punctuation and small kana.)

<div class="example">
<p>For example, in some styles of CJK typesetting, English words are allowed
Expand Down Expand Up @@ -1035,13 +1035,13 @@ Line Breaking Details</h3>
Unicode line breaking classes [[!UAX14]])
are suppressed,
i.e. breaks are prohibited between pairs of such characters
(regardless of 'line-break' settings)
(regardless of 'line-break' settings other than ''line-break/anywhere'')
except where opportunities exist due to dictionary-based breaking.
Otherwise this option is equivalent to ''word-break/normal''.
In this style, sequences of CJK characters do not break.
<p class=note>Note: This is the other common behavior for Korean (which uses spaces between words),
and is also useful for mixed-script text where CJK snippets are mixed
into another language that uses spaces for separation.</dd>
into another language that uses spaces for separation.
</dl>

<p>Symbols that line-break the same way as letters of a particular category
Expand Down Expand Up @@ -1156,7 +1156,7 @@ Line Breaking Details</h3>

<p>This property specifies the strictness of line-breaking rules applied
within an element:
particularly how <a>wrapping</a> interacts with punctuation and symbols.
especially how <a>wrapping</a> interacts with punctuation and symbols.
Values have the following meanings:</p>

<dl dfn-for=line-break dfn-type=value>
Expand All @@ -1176,7 +1176,9 @@ Line Breaking Details</h3>
<dd>There is a <a>soft wrap opportunity</a> around every <a>typographic character unit</a>,
including around any punctuation character or preserved spaces,
or in the middle of words,
disregarding any prohibition against line breaks introduced by characters with the GL, WJ, or ZWJ character class (see [[UAX14]]).
disregarding any prohibition against line breaks,
even those introduced by characters with the GL, WJ, or ZWJ character class (see [[UAX14]])
or mandated by the 'word-break' property.
The different wrapping opportunities must not be prioritized.
Hyphenation is not applied.

Expand Down

0 comments on commit dc4a24f

Please sign in to comment.