Skip to content

Commit 1d8a3bd

Browse files
committed
[css-text-3] Add example of variations in Thai line-breaking to line-break: strict|normal|loose.
1 parent 3a640ed commit 1d8a3bd

File tree

2 files changed

+41
-7
lines changed

2 files changed

+41
-7
lines changed

css-text-3/Overview.bs

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ Line Breaking Details</h3>
924924
<dd>
925925
<pre>这·是·一·些·汉·字,·and·some·Latin,<!--
926926
-->·&#x0648;·&#x06A9;&#x0645;&#x06CC;·&#x0646;&#x0648;&#x0634;&#x062A;&#x0646;·&#x0639;&#x0631;&#x0628;&#x06CC;,·<!--
927-
-->และ·ตัวอย่าง·การ·เขียน·ภาษา·ไทย.</pre>
927+
-->และ·ตัวอย่าง·การเขียน·ภาษาไทย.</pre>
928928
<dt>''word-break: break-all''</dt>
929929
<dd>
930930
<pre>这·是·一·些·汉·字,·a·n·d·s·o·m·e·L·a·t·i·n,<!--
@@ -934,7 +934,7 @@ Line Breaking Details</h3>
934934
<dd>
935935
<pre>这是一些汉字,·and·some·Latin,<!--
936936
-->·&#x0648;·&#x06A9;&#x0645;&#x06CC;·&#x0646;&#x0648;&#x0634;&#x062A;&#x0646;·&#x0639;&#x0631;&#x0628;&#x06CC;,·<!--
937-
-->และ·ตัวอย่าง·การ·เขียน·ภาษา·ไทย.</pre>
937+
-->และ·ตัวอย่าง·การเขียน·ภาษาไทย.</pre>
938938
</dl>
939939
</div>
940940

@@ -1045,11 +1045,24 @@ Line Breaking Details</h3>
10451045
</ul>
10461046
</ul>
10471047

1048-
<p class="note">In the recommended list above, no distinction is made among the levels of
1049-
strictness in non-CJK text: only CJK codepoints are affected, unless
1050-
the text is marked as Chinese or Japanese, in which case some additional
1051-
common codepoints are affected. However a future level of CSS may add
1052-
behaviors affecting non-CJK text.
1048+
<p class="note">In the requirements listed above,
1049+
no distinction is made among the levels of strictness in non-CJK text:
1050+
only CJK codepoints are affected,
1051+
unless the text is marked as Chinese or Japanese,
1052+
in which case some additional common codepoints are affected.
1053+
1054+
<div class="example">
1055+
As UAs can add additional distinctions
1056+
between ''line-break/strict''/''line-break/normal''/''line-break/loose'' modes,
1057+
these values can exhibit other differences as well.
1058+
For example, a UA with sufficiently-advanced Thai language processing ability
1059+
could choose to map different levels of strictness in Thai line-breaking
1060+
to these keywords,
1061+
e.g. disallowing breaks within compound words in ''line-break/strict'' mode
1062+
(e.g. breaking ตัวอย่างการเขียนภาษาไทย as ตัวอย่าง·การเขียน·ภาษาไทย)
1063+
while allowing more breaks in ''line-break/loose''
1064+
(ตัวอย่าง·การ·เขียน·ภาษา·ไทย).
1065+
</div>
10531066

10541067
<p class="note">The CSSWG recognizes that in a future edition of the
10551068
specification finer control over line breaking may be necessary to

css-text-3/issues-lc-2013.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,3 +1437,24 @@ From: Florian Rivoal
14371437
Comment: https://github.com/w3c/csswg-drafts/issues/2233
14381438
Open: =i18n= Respond.
14391439
----
1440+
Issue 173.
1441+
Summary: Typo in Thai word-break example
1442+
From: Richard Ishida
1443+
Comment: https://github.com/w3c/csswg-drafts/issues/2455
1444+
Closed: Accepted
1445+
----
1446+
Issue 174.
1447+
Summary: Breakpoints in Thai word-break example too strict
1448+
From: Richard Ishida
1449+
Comment: https://github.com/w3c/csswg-drafts/issues/2455
1450+
Comment: https://github.com/w3c/csswg-drafts/issues/2455#issuecomment-374309942
1451+
Comment: https://github.com/w3c/csswg-drafts/issues/2455#issuecomment-375143091
1452+
Comment: https://github.com/w3c/csswg-drafts/issues/2455#issuecomment-375151681
1453+
Open
1454+
----
1455+
Issue 175.
1456+
Summary: Thai should respond to line-break: strict|normal|loose
1457+
From: Florian Rivoal, James Clark
1458+
Comment: https://github.com/w3c/csswg-drafts/issues/2455#issuecomment-375155972
1459+
Comment: https://github.com/w3c/csswg-drafts/issues/2455#issuecomment-375151681
1460+
Response: https://github.com/w3c/csswg-drafts/issues/2455#issuecomment-375162188

0 commit comments

Comments
 (0)