Skip to content

Commit d4e9199

Browse files
committed
Recommend that Korean documents be given word-break: keep-all.
1 parent a3757ce commit d4e9199

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

css3-text/Overview.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ <h3 id=word-break><span class=secno>4.2. </span> Word Breaking Rules: the
14241424
<dd>Lines may break only at <a href="#word-separator">word separators</a>
14251425
and other explicit break opportunities. Otherwise this option is
14261426
equivalent to &lsquo;<code class=css>normal</code>&rsquo;. This option is
1427-
mostly used where the presence of word separator characters still creates
1427+
mostly used where word separator characters are present to create
14281428
line-breaking opportunities, as in Korean.
14291429
</dl>
14301430

@@ -1459,7 +1459,7 @@ <h3 id=word-break><span class=secno>4.2. </span> Word Breaking Rules: the
14591459
<dd>
14601460
<pre>这是一些汉字,·and·some·Latin,<!--
14611461
-->·&#x0648;·&#x06A9;&#x0645;&#x06CC;·&#x0646;&#x0648;&#x0634;&#x062A;&#x0646;&#x0646;·&#x0639;&#x0631;&#x0628;&#x06CC;,·<!--
1462-
-->และ·ตัวอย่าง·การเขียน·ภาษาไทย.</pre>
1462+
-->และตัวอย่างการเขียนภาษาไทย.</pre>
14631463
</dl>
14641464
</div>
14651465

@@ -4880,6 +4880,10 @@ <h2 class=no-num id=default-stylesheet>Appendix D: Default UA Stylesheet</h2>
48804880
<pre><code class=css>
48814881
<!-- -->/* make list items align together */
48824882
<!-- -->li { text-align: match-parent; }
4883+
<!-- -->/* Korean prefers to break only at spaces */
4884+
<!-- -->:root:lang(ko) {
4885+
<!-- --> word-break: keep-all;
4886+
<!-- -->}
48834887
<!-- -->/* disable inheritance of text-emphasis marks to ruby text:
48844888
<!-- --> emphasis marks should only apply to base text */
48854889
<!-- -->rt { text-emphasis: none; }

css3-text/Overview.src.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3590,6 +3590,10 @@ <h2 class="no-num" id="default-stylesheet">Appendix D: Default UA Stylesheet</h2
35903590
<pre><code class="css">
35913591
<!-- -->/* make list items align together */
35923592
<!-- -->li { text-align: match-parent; }
3593+
<!-- -->/* Korean prefers to break only at spaces */
3594+
<!-- -->:root:lang(ko) {
3595+
<!-- --> word-break: keep-all;
3596+
<!-- -->}
35933597
<!-- -->/* disable inheritance of text-emphasis marks to ruby text:
35943598
<!-- --> emphasis marks should only apply to base text */
35953599
<!-- -->rt { text-emphasis: none; }

0 commit comments

Comments
 (0)