Skip to content

Commit d65ac90

Browse files
committed
Tweak word-break wording, add keep-words value per <http://littlepotato.webfreehosting.net/cjk-beyond-kinsokushori.php> (to be marked at-risk when we make the at-risk list, but adding here for comments).
1 parent ee4d51b commit d65ac90

2 files changed

Lines changed: 48 additions & 40 deletions

File tree

css3-text/Overview.html

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@
8383

8484
<h1>CSS Text Level 3</h1>
8585

86-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 January
86+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 30 January
8787
2011</h2>
8888

8989
<dl>
9090
<dt>This version:
9191

9292
<dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date:
93-
2011/01/26 06:11:27 $ (CVS $Revision$)</a> <!--<dd><a
93+
2011/01/28 01:27:35 $ (CVS $Revision$)</a> <!--<dd><a
9494
href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a></dd> -->
9595

9696

@@ -1337,7 +1337,7 @@ <h3 id=word-break><span class=secno>5.2. </span> Word Breaking Rules: the
13371337
<tr>
13381338
<th>Value:
13391339

1340-
<td>normal | keep-all | break-all | hyphenate
1340+
<td>normal | keep-all | break-all | keep-words
13411341

13421342
<tr>
13431343
<th>Initial:
@@ -1376,41 +1376,37 @@ <h3 id=word-break><span class=secno>5.2. </span> Word Breaking Rules: the
13761376
<dl>
13771377
<dt><dfn id=normal1 title="word-break:normal"><code>normal</code></dfn>
13781378

1379-
<dd>Break words according to their usual rules.
1379+
<dd>Break lines according to their usual rules.
13801380

13811381
<dt><dfn id=break-all
13821382
title="word-break:break-all"><code>break-all</code></dfn>
13831383

1384-
<dd>Words may break between any two grapheme clusters within words.
1384+
<dd>Lines may break between any two grapheme clusters within words.
13851385
Hyphenation is not applied. This option is used mostly in a context where
13861386
the text is predominantly using CJK characters with few non-CJK excerpts
13871387
and it is desired that the text be better distributed on each line.
13881388

13891389
<dt><dfn id=keep-all
1390-
title="line-break:keep-all"><code>keep-all</code></dfn>
1390+
title="word-break:keep-all"><code>keep-all</code></dfn>
13911391

1392-
<dd><a href="#block-scripts">Block</a> characters no longer create implied
1393-
break points. Otherwise this option is equivalent to &lsquo;<code
1392+
<dd><a href="#block-scripts">Block</a> characters can no longer create
1393+
implied break points. Otherwise this option is equivalent to &lsquo;<code
13941394
class=css>normal</code>&rsquo;. This option is mostly used where the
13951395
presence of word separator characters still creates line-breaking
13961396
opportunities, as in Korean.
13971397

1398-
<dt><dfn id=hyphenate
1399-
title="word-break:hyphenate"><code>hyphenate</code></dfn>
1400-
1401-
<dd>Words may be broken at an appropriate hyphenation point in addition to
1402-
opportunities available under &lsquo;<code
1403-
class=css>normal</code>&rsquo;.
1404-
<p class=issue>This value is proposed to replace the &lsquo;<a
1405-
href="#hyphens0"><code class=property>hyphens</code></a>&rsquo;
1406-
property. Other values could be added as &lsquo;<code
1407-
class=css>word-break: hyphenate-all</code>&rsquo; and &lsquo;<code
1408-
class=css>word-break: none</code>&rsquo;
1398+
<dd><dfn id=keep-words
1399+
title="word-break:keep-words"><code>keep-words</code></dfn>
1400+
1401+
<dd>Lines may not break within words, even in <a
1402+
href="#block-scripts">block scripts</a> (which would require the use of a
1403+
dictionary in languages such as Chinese and Japanese). This option is
1404+
sometimes used in combination with start-aligned (unjustified) text.
14091405
</dl>
14101406

14111407
<p>When shaping scripts such as Arabic are allowed to break within words
1412-
due to &lsquo;<code class=css>break-all</code>&rsquo; or hyphenation, the
1413-
characters must still be shaped as if the word were not broken.
1408+
due to &lsquo;<code class=css>break-all</code>&rsquo;, the characters must
1409+
still be shaped as if the word were not broken.
14141410

14151411
<h2 id=hyphenation><span class=secno>6. </span>Hyphenation</h2>
14161412

@@ -1524,6 +1520,10 @@ <h3 id=hyphens><span class=secno>6.1. </span>Hyphenation Control: the
15241520
<code>xml:lang</code>) and for which it has an appropriate hyphenation
15251521
resource.
15261522

1523+
<p>When shaping scripts such as Arabic are allowed to break within words
1524+
due to hyphenation, the characters must still be shaped as if the word
1525+
were not broken.
1526+
15271527
<h3 id=hyphenate-character><span class=secno>6.2. </span> Hyphens: the
15281528
&lsquo;<a href="#hyphenate-character0"><code
15291529
class=property>hyphenate-character</code></a>&rsquo; property</h3>
@@ -5138,6 +5138,10 @@ <h3 class=no-num id=recent-changes> Changes from the <a
51385138
class=property>word-break</code></a>&rsquo; and adjusted explanation of
51395139
properties to match this split.
51405140

5141+
<li>Added &lsquo;<code class=css>keep-words</code>&rsquo; value to
5142+
&lsquo;<a href="#word-break0"><code
5143+
class=property>word-break</code></a>&rsquo;.
5144+
51415145
<li>Renamed &lsquo;<code class=css>newspaper</code>&rsquo; value of
51425146
&lsquo;<a href="#line-break0"><code
51435147
class=property>line-break</code></a>&rsquo; to &lsquo;<code
@@ -5878,7 +5882,7 @@ <h2 class=no-num id=appendix-b-property-index> Appendix B: Property index</h2>
58785882
<tr valign=baseline>
58795883
<td><a class=property href="#word-break0">word-break</a>
58805884

5881-
<td>normal | keep-all | break-all | hyphenate
5885+
<td>normal | keep-all | break-all | keep-words
58825886

58835887
<td>normal
58845888

@@ -6063,9 +6067,6 @@ <h2 class=no-num id=index>Index</h2>
60636067
<li>line-break:auto, <a href="#auto"
60646068
title="line-break:auto"><strong>5.1.</strong></a>
60656069

6066-
<li>line-break:keep-all, <a href="#keep-all"
6067-
title="line-break:keep-all"><strong>5.2.</strong></a>
6068-
60696070
<li>line-break:loose, <a href="#loose"
60706071
title="line-break:loose"><strong>5.1.</strong></a>
60716072

@@ -6364,8 +6365,11 @@ <h2 class=no-num id=index>Index</h2>
63646365
<li>word-break:break-all, <a href="#break-all"
63656366
title="word-break:break-all"><strong>5.2.</strong></a>
63666367

6367-
<li>word-break:hyphenate, <a href="#hyphenate"
6368-
title="word-break:hyphenate"><strong>5.2.</strong></a>
6368+
<li>word-break:keep-all, <a href="#keep-all"
6369+
title="word-break:keep-all"><strong>5.2.</strong></a>
6370+
6371+
<li>word-break:keep-words, <a href="#keep-words"
6372+
title="word-break:keep-words"><strong>5.2.</strong></a>
63696373

63706374
<li>word-break:normal, <a href="#normal1"
63716375
title="word-break:normal"><strong>5.2.</strong></a>

css3-text/Overview.src.html

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ <h3 id="word-break">
898898
</tr>
899899
<tr>
900900
<th>Value:</th>
901-
<td>normal | keep-all | break-all | hyphenate</td>
901+
<td>normal | keep-all | break-all | keep-words</td>
902902
</tr>
903903
<tr>
904904
<th>Initial:</th>
@@ -932,29 +932,28 @@ <h3 id="word-break">
932932

933933
<dl>
934934
<dt><dfn title="word-break:normal"><code>normal</code></dfn></dt>
935-
<dd>Break words according to their usual rules.</dd>
935+
<dd>Break lines according to their usual rules.</dd>
936936
<dt><dfn title="word-break:break-all"><code>break-all</code></dfn></dt>
937-
<dd>Words may break between any two grapheme clusters within words.
937+
<dd>Lines may break between any two grapheme clusters within words.
938938
Hyphenation is not applied. This option is used mostly in a context where
939939
the text is predominantly using CJK characters with few non-CJK excerpts
940940
and it is desired that the text be better distributed on each line.</dd>
941-
<dt><dfn title="line-break:keep-all"><code>keep-all</code></dfn></dt>
942-
<dd><a href="#block-scripts">Block</a> characters no longer create
941+
<dt><dfn title="word-break:keep-all"><code>keep-all</code></dfn></dt>
942+
<dd><a href="#block-scripts">Block</a> characters can no longer create
943943
implied break points. Otherwise this option is equivalent to
944944
''normal''.
945945
This option is mostly used where the presence of word separator
946946
characters still creates line-breaking opportunities, as in Korean.</dd>
947-
<dt><dfn title="word-break:hyphenate"><code>hyphenate</code></dfn></dt>
948-
<dd>Words may be broken at an appropriate hyphenation point in addition
949-
to opportunities available under ''normal''.
950-
<p class="issue">This value is proposed to replace the 'hyphens'
951-
property. Other values could be added as ''word-break: hyphenate-all''
952-
and ''word-break: none''</p></dd>
947+
<dd><dfn title="word-break:keep-words"><code>keep-words</code></dfn></dt>
948+
<dd>Lines may not break within words, even in
949+
<a href="#block-scripts">block scripts</a> (which would require the use
950+
of a dictionary in languages such as Chinese and Japanese). This option
951+
is sometimes used in combination with start-aligned (unjustified) text.</dd>
953952
</dl>
954953

955954
<p>When shaping scripts such as Arabic are allowed to break within words
956-
due to ''break-all'' or hyphenation, the characters must still be shaped
957-
as if the word were not broken.</p>
955+
due to ''break-all'', the characters must still be shaped as if the
956+
word were not broken.</p>
958957

959958
<h2 id="hyphenation">Hyphenation</h2>
960959

@@ -1040,6 +1039,10 @@ <h3 id="hyphens">Hyphenation Control: the 'hyphens' property</h3>
10401039
or XML <code>xml:lang</code>) and for which it has an appropriate
10411040
hyphenation resource.
10421041

1042+
<p>When shaping scripts such as Arabic are allowed to break within words
1043+
due to hyphenation, the characters must still be shaped as if the word
1044+
were not broken.</p>
1045+
10431046
<h3 id="hyphenate-character">
10441047
Hyphens: the 'hyphenate-character' property</h3>
10451048

@@ -3944,6 +3947,7 @@ <h3 class="no-num" id="recent-changes">
39443947
property, consistent with behavior in MSIE.
39453948
<li>Moved ''keep-all'' value of 'line-break' back to 'word-break' and
39463949
adjusted explanation of properties to match this split.
3950+
<li>Added ''keep-words'' value to 'word-break'.
39473951
<li>Renamed ''newspaper'' value of 'line-break' to ''loose''.
39483952
<li>Copied hyphenation controls over from
39493953
<a href="http://www.w3.org/TR/css3-gcpm">CSS3 Generated Content for Paged Media Module</a>

0 commit comments

Comments
 (0)