Skip to content

Commit

Permalink
[css-text-3] Add table of examples from differanguages #5973
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Dec 28, 2022
1 parent fce4f83 commit a21eacf
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
48 changes: 48 additions & 0 deletions css-text-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4206,6 +4206,54 @@ Hyphenation: the 'hyphens' property</h3>
it must have no effect on the underlying document content
or on text selection or searching.

<details class=example>
<summary>Hyphenation Across Languages</summary>
Hyphenation practices vary across languages,
and can involve not just inserting a hyphen before the line break,
but inserting a hyphen after the break (or both),
inserting a different character than U+2010,
or changing the spelling of the word.

<table class=data>
<thead>
<tr>
<th>Language
<th>Unbroken
<th>Before
<th>After
<tbody>
<tr lang=en>
<th>English
<td>Unbroken
<th>Un&#x2010;
<th>broken
<tr lang=nl>
<th lang=en>Dutch
<td>cafeetje
<td>café&#x2010;
<td>tje
<tr lang=hu>
<th lang=en>Hungarian
<td>Összeg
<td>Ösz&#x2010;
<td>szeg
<tr lang="zh-Latn-pinyin">
<th lang=en rowspan=2>Mandarin
<td>tú’àn
<td>tú&#x2010;
<td>àn
<tr lang="zh-Latn-pinyin">
<td>àizēng&#x2010;fēnmíng
<td>àizēng&#x2010;
<td>&#x2010;fēnmíng
<tr lang=ug>
<th lang=en>Uyghur
<td dir=rtl>داميدى
<td dir=rtl>دامي&zwj;&#x640;
<td dir=rtl>&zwj;دى
</table>
</details>

Hyphenation occurs
when the line breaks at a valid <dfn>hyphenation opportunity</dfn>,
which is a type of [=soft wrap opportunity=]
Expand Down
48 changes: 48 additions & 0 deletions css-text-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5143,6 +5143,54 @@ Hyphenation Control: the 'hyphens' property</h4>
it must have no effect on the underlying document content
or on text selection or searching.

<details class=example>
<summary>Hyphenation Across Languages</summary>
Hyphenation practices vary across languages,
and can involve not just inserting a hyphen before the line break,
but inserting a hyphen after the break (or both),
inserting a different character than U+2010,
or changing the spelling of the word.

<table class=data>
<thead>
<tr>
<th>Language
<th>Unbroken
<th>Before
<th>After
<tbody>
<tr lang=en>
<th>English
<td>Unbroken
<th>Un&#x2010;
<th>broken
<tr lang=nl>
<th lang=en>Dutch
<td>cafeetje
<td>café&#x2010;
<td>tje
<tr lang=hu>
<th lang=en>Hungarian
<td>Összeg
<td>Ösz&#x2010;
<td>szeg
<tr lang="zh-Latn-pinyin">
<th lang=en rowspan=2>Mandarin
<td>tú’àn
<td>tú&#x2010;
<td>àn
<tr lang="zh-Latn-pinyin">
<td>àizēng&#x2010;fēnmíng
<td>àizēng&#x2010;
<td>&#x2010;fēnmíng
<tr lang=ug>
<th lang=en>Uyghur
<td dir=rtl>داميدى
<td dir=rtl>دامي&zwj;&#x640;
<td dir=rtl>&zwj;دى
</table>
</details>

Hyphenation occurs
when the line breaks at a valid <dfn>hyphenation opportunity</dfn>,
which is a type of [=soft wrap opportunity=]
Expand Down

0 comments on commit a21eacf

Please sign in to comment.