Skip to content

Commit b6be44a

Browse files
committed
Clarifications to word-break
1 parent b6b6f5a commit b6be44a

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

css3-text/Overview.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,20 +1424,20 @@ <h3 id=word-break><span class=secno>4.2. </span> Word Breaking Rules: the
14241424
class=css>break-all</code>&rsquo;</dfn>
14251425

14261426
<dd>In addition to normal opportunities, lines may break between any two
1427-
letters within words except where forbidden by the &lsquo;<a
1428-
href="#line-break0"><code class=property>line-break</code></a>&rsquo;
1429-
property. Hyphenation is not applied. This option is used mostly in a
1430-
context where the text is predominantly using CJK characters with few
1431-
non-CJK excerpts and it is desired that the text be better distributed on
1432-
each line.
1427+
<a href="#letter0"><i>letters</i></a> within words except where forbidden
1428+
by the &lsquo;<a href="#line-break0"><code
1429+
class=property>line-break</code></a>&rsquo; property. Hyphenation is not
1430+
applied. This option is used mostly in a context where the text is
1431+
predominantly using CJK characters with few non-CJK excerpts and it is
1432+
desired that the text be better distributed on each line.
14331433

14341434
<dt><dfn id=keep-all title="word-break:keep-all">&lsquo;<code
14351435
class=css>keep-all</code>&rsquo;</dfn>
14361436

1437-
<dd> Implicit breaks between letters are suppressed, i.e. break
1438-
opportunties between pairs of ID, AL, AI, and HL characters as defined in
1439-
<a href="#UAX14" rel=biblioentry>[UAX14]<!--{{UAX14}}--></a> are are
1440-
prohibited. Otherwise this option is equivalent to &lsquo;<code
1437+
<dd> Implicit breaks between <a href="#letter0"><i>letters</i></a> are
1438+
suppressed, i.e. breaks are prohibited between pairs of letters except
1439+
where opportunities exist due to dictionary-based breaking (e.g. in
1440+
Thai). Otherwise this option is equivalent to &lsquo;<code
14411441
class=css>normal</code>&rsquo;. This option produces a style where
14421442
sequences of ideographic characters do not break, and word separator
14431443
characters are present to create line-breaking opportunities. This style
@@ -1446,6 +1446,9 @@ <h3 id=word-break><span class=secno>4.2. </span> Word Breaking Rules: the
14461446
uses spaces for seapration.
14471447
</dl>
14481448

1449+
<p>Symbols that line-break the same way as letters of a particular category
1450+
are affected the same way as those letters.
1451+
14491452
<div class=example>
14501453
<p>Here's a mixed-script sample text:
14511454

css3-text/Overview.src.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -963,15 +963,15 @@ <h3 id="word-break">
963963
<dd>Break lines according to their usual rules.</dd>
964964
<dt><dfn title="word-break:break-all">''break-all''</dfn></dt>
965965
<dd>In addition to normal opportunities, lines may break between any two
966-
letters within words except where forbidden by the 'line-break' property.
966+
<i>letters</i> within words except where forbidden by the 'line-break' property.
967967
Hyphenation is not applied. This option is used mostly in a context where
968968
the text is predominantly using CJK characters with few non-CJK excerpts
969969
and it is desired that the text be better distributed on each line.</dd>
970970
<dt><dfn title="word-break:keep-all">''keep-all''</dfn></dt>
971971
<dd>
972-
Implicit breaks between letters are suppressed, i.e.
973-
break opportunties between pairs of ID, AL, AI, and HL characters
974-
as defined in [[UAX14]] are are prohibited.
972+
Implicit breaks between <i>letters</i> are suppressed, i.e.
973+
breaks are prohibited between pairs of letters
974+
except where opportunities exist due to dictionary-based breaking (e.g. in Thai).
975975
Otherwise this option is equivalent to ''normal''.
976976
This option produces a style where sequences of ideographic characters do
977977
not break, and word separator characters are present to create line-breaking
@@ -981,6 +981,9 @@ <h3 id="word-break">
981981
uses spaces for seapration.</dd>
982982
</dl>
983983

984+
<p>Symbols that line-break the same way as letters of a particular category
985+
are affected the same way as those letters.
986+
984987
<div class="example">
985988
<p>Here's a mixed-script sample text:
986989
<pre>这是一些汉字, and some Latin,<!--

0 commit comments

Comments
 (0)