Skip to content

Commit 2d3b7ea

Browse files
committed
[css-text-3] Include Ethiopic in word-break examples. w3c#4765
1 parent f047b93 commit 2d3b7ea

File tree

1 file changed

+27
-8
lines changed

1 file changed

+27
-8
lines changed

css-text-3/Overview.bs

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,6 +2600,21 @@ Line Breaking Details</h3>
26002600
<pre>
26012601
각 줄의 마지막에 한글이 올 때 줄 나눔
26022602
<strong>기준을</strong> “글자” 또는 “어절” 단위로 한다.</pre>
2603+
2604+
<p>Ethiopic similarly has two styles of line-breaking,
2605+
either only breaking at word separators (''word-break: normal''),
2606+
or also allowing breaks between letters within a word (''word-break: break-all'').
2607+
<pre>
2608+
ተወልዱ፡ኵሉ፡ሰብእ፡ግዑዛን፡ወዕሩያን፡
2609+
<strong>በማዕረግ</strong>፡ወብሕግ።ቦሙ፡ኅሊና፡ወዐቅል፡
2610+
ወይትጌበሩ፡አሐዱ፡ምስለ፡አሀዱ፡
2611+
በመንፈሰ፡እኍና።
2612+
</pre>
2613+
<pre>
2614+
ተወልዱ፡ኵሉ፡ሰብእ፡ግዑዛን፡ወዕሩያን፡<strong>በማ
2615+
ዕረግ</strong>፡ወብሕግ።ቦሙ፡ኅሊና፡ወዐቅል፡ወይትጌ
2616+
በሩ፡አሐዱ፡ምስለ፡አሀዱ፡በመንፈሰ፡እኍና።
2617+
</pre>
26032618
</div>
26042619

26052620
<p class="note">
@@ -2614,6 +2629,8 @@ Line Breaking Details</h3>
26142629
as described <a href="#line-breaking">above</a>.
26152630
Korean, which commonly exhibits two different behaviors,
26162631
allows breaks between any two consecutive Hangul/Hanja.
2632+
For Ethiopic, which also exhibits two different behaviors,
2633+
such breaks within words are not allowed.
26172634

26182635
<wpt>
26192636
word-break/word-break-normal-ar-000.html
@@ -2643,10 +2660,6 @@ Line Breaking Details</h3>
26432660
are instead treated as <code>ID</code> (“ideographic characters”)
26442661
for the purpose of line-breaking.
26452662
Hyphenation is not applied.
2646-
This option is used mostly in a context where
2647-
the text consists predominantly of CJK characters
2648-
with only short non-CJK excerpts,
2649-
and it is desired that the text be better distributed on each line.
26502663

26512664
<wpt>
26522665
word-break/word-break-break-all-000.html
@@ -2704,6 +2717,12 @@ Line Breaking Details</h3>
27042717
white-space/break-spaces-before-first-char-011.html
27052718
</wpt>
27062719

2720+
Note: This option enables the other common behavior for Ethiopic.
2721+
It is also often used in a context where
2722+
the text consists predominantly of CJK characters
2723+
with only short non-CJK excerpts,
2724+
and it is desired that the text be better distributed on each line.
2725+
27072726
<dt><dfn>keep-all</dfn></dt>
27082727
<dd>Breaking is forbidden within “words”:
27092728
implicit <a>soft wrap opportunities</a> between <a>typographic letter units</a>
@@ -2736,24 +2755,24 @@ Line Breaking Details</h3>
27362755
<div class="example">
27372756
<p>Here's a mixed-script sample text:
27382757
<pre style="white-space: pre-wrap">
2739-
这是一些汉字 and some Latin <bdi dir=rtl>و کمی خط عربی</bdi> และตัวอย่างการเขียนภาษาไทย
2758+
这是一些汉字 and some Latin <bdi dir=rtl>و کمی خط عربی</bdi> และตัวอย่างการเขียนภาษาไทย በጽሑፍ፡ማራዘሙን፡አንዳንድ፡
27402759
</pre>
27412760
<p>The break-points are determined as follows (indicated by &lsquo;&middot;&rsquo;):
27422761
<dl>
27432762
<dt>''word-break: normal''</dt>
27442763
<dd>
27452764
<pre style="white-space: pre-wrap">
2746-
这·是·一·些·汉·字·and·some·Latin·<bdi dir=rtl>و·کمی·خط·عربی</bdi>·และ·ตัวอย่าง·การเขียน·ภาษาไทย
2765+
这·是·一·些·汉·字·and·some·Latin·<bdi dir=rtl>و·کمی·خط·عربی</bdi>·และ·ตัวอย่าง·การเขียน·ภาษาไทย·በጽሑፍ፡·ማራዘሙን፡·አንዳንድ፡
27472766
</pre>
27482767
<dt>''word-break: break-all''</dt>
27492768
<dd>
27502769
<pre style="white-space: pre-wrap">
2751-
这·是·一·些·汉·字·a·n·d·s·o·m·e·L·a·t·i·n·<bdi dir=rtl>و·ﮐ·ﻤ·ﻰ·ﺧ·ﻁ·ﻋ·ﺮ·ﺑ·ﻰ</bdi>·แ·ล·ะ·ตั·ว·อ·ย่·า·ง·ก·า·ร·เ·ขี·ย·น·ภ·า·ษ·า·ไ·ท·ย
2770+
这·是·一·些·汉·字·a·n·d·s·o·m·e·L·a·t·i·n·<bdi dir=rtl>و·ﮐ·ﻤ·ﻰ·ﺧ·ﻁ·ﻋ·ﺮ·ﺑ·ﻰ</bdi>·แ·ล·ะ·ตั·ว·อ·ย่·า·ง·ก·า·ร·เ·ขี·ย·น·ภ·า·ษ·า·ไ·ท·ย·በ·ጽ·ሑ·ፍ፡·ማ·ራ·ዘ·ሙ·ን፡·አ·ን·ዳ·ን·ድ፡
27522771
</pre>
27532772
<dt>''word-break: keep-all''</dt>
27542773
<dd>
27552774
<pre style="white-space: pre-wrap">
2756-
这是一些汉字·and·some·Latin·<bdi dir=rtl>و·کمی·خط·عربی</bdi>·และ·ตัวอย่าง·การเขียน·ภาษาไทย
2775+
这是一些汉字·and·some·Latin·<bdi dir=rtl>و·کمی·خط·عربی</bdi>·และ·ตัวอย่าง·การเขียน·ภาษาไทย·በጽሑፍ፡·ማራዘሙን፡·አንዳንድ፡
27572776
</pre>
27582777
</dl>
27592778
</div>

0 commit comments

Comments
 (0)