Skip to content

Commit a21eacf

Browse files
committed
[css-text-3] Add table of examples from differanguages #5973
1 parent fce4f83 commit a21eacf

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

css-text-3/Overview.bs

+48
Original file line numberDiff line numberDiff line change
@@ -4206,6 +4206,54 @@ Hyphenation: the 'hyphens' property</h3>
42064206
it must have no effect on the underlying document content
42074207
or on text selection or searching.
42084208

4209+
<details class=example>
4210+
<summary>Hyphenation Across Languages</summary>
4211+
Hyphenation practices vary across languages,
4212+
and can involve not just inserting a hyphen before the line break,
4213+
but inserting a hyphen after the break (or both),
4214+
inserting a different character than U+2010,
4215+
or changing the spelling of the word.
4216+
4217+
<table class=data>
4218+
<thead>
4219+
<tr>
4220+
<th>Language
4221+
<th>Unbroken
4222+
<th>Before
4223+
<th>After
4224+
<tbody>
4225+
<tr lang=en>
4226+
<th>English
4227+
<td>Unbroken
4228+
<th>Un&#x2010;
4229+
<th>broken
4230+
<tr lang=nl>
4231+
<th lang=en>Dutch
4232+
<td>cafeetje
4233+
<td>café&#x2010;
4234+
<td>tje
4235+
<tr lang=hu>
4236+
<th lang=en>Hungarian
4237+
<td>Összeg
4238+
<td>Ösz&#x2010;
4239+
<td>szeg
4240+
<tr lang="zh-Latn-pinyin">
4241+
<th lang=en rowspan=2>Mandarin
4242+
<td>tú’àn
4243+
<td>tú&#x2010;
4244+
<td>àn
4245+
<tr lang="zh-Latn-pinyin">
4246+
<td>àizēng&#x2010;fēnmíng
4247+
<td>àizēng&#x2010;
4248+
<td>&#x2010;fēnmíng
4249+
<tr lang=ug>
4250+
<th lang=en>Uyghur
4251+
<td dir=rtl>داميدى
4252+
<td dir=rtl>دامي&zwj;&#x640;
4253+
<td dir=rtl>&zwj;دى
4254+
</table>
4255+
</details>
4256+
42094257
Hyphenation occurs
42104258
when the line breaks at a valid <dfn>hyphenation opportunity</dfn>,
42114259
which is a type of [=soft wrap opportunity=]

css-text-4/Overview.bs

+48
Original file line numberDiff line numberDiff line change
@@ -5143,6 +5143,54 @@ Hyphenation Control: the 'hyphens' property</h4>
51435143
it must have no effect on the underlying document content
51445144
or on text selection or searching.
51455145

5146+
<details class=example>
5147+
<summary>Hyphenation Across Languages</summary>
5148+
Hyphenation practices vary across languages,
5149+
and can involve not just inserting a hyphen before the line break,
5150+
but inserting a hyphen after the break (or both),
5151+
inserting a different character than U+2010,
5152+
or changing the spelling of the word.
5153+
5154+
<table class=data>
5155+
<thead>
5156+
<tr>
5157+
<th>Language
5158+
<th>Unbroken
5159+
<th>Before
5160+
<th>After
5161+
<tbody>
5162+
<tr lang=en>
5163+
<th>English
5164+
<td>Unbroken
5165+
<th>Un&#x2010;
5166+
<th>broken
5167+
<tr lang=nl>
5168+
<th lang=en>Dutch
5169+
<td>cafeetje
5170+
<td>café&#x2010;
5171+
<td>tje
5172+
<tr lang=hu>
5173+
<th lang=en>Hungarian
5174+
<td>Összeg
5175+
<td>Ösz&#x2010;
5176+
<td>szeg
5177+
<tr lang="zh-Latn-pinyin">
5178+
<th lang=en rowspan=2>Mandarin
5179+
<td>tú’àn
5180+
<td>tú&#x2010;
5181+
<td>àn
5182+
<tr lang="zh-Latn-pinyin">
5183+
<td>àizēng&#x2010;fēnmíng
5184+
<td>àizēng&#x2010;
5185+
<td>&#x2010;fēnmíng
5186+
<tr lang=ug>
5187+
<th lang=en>Uyghur
5188+
<td dir=rtl>داميدى
5189+
<td dir=rtl>دامي&zwj;&#x640;
5190+
<td dir=rtl>&zwj;دى
5191+
</table>
5192+
</details>
5193+
51465194
Hyphenation occurs
51475195
when the line breaks at a valid <dfn>hyphenation opportunity</dfn>,
51485196
which is a type of [=soft wrap opportunity=]

0 commit comments

Comments
 (0)