Skip to content

Commit 208a075

Browse files
committed
[css-text] Shift around some examples wrt grapheme clusters.
1 parent 6b78521 commit 208a075

2 files changed

Lines changed: 24 additions & 10 deletions

File tree

css-text/Overview.bs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,18 @@ Terminology</h3>
150150
The UA may further tailor the definition as required by typographical tradition.
151151

152152
<div class="example">
153+
<p>For example,
154+
in some scripts such as Myanmar or Devanagari,
155+
the typographic unit for 'letter-spacing' is an entire syllable,
156+
which may include multiple [[!UAX29]] <i>grapheme clusters</i>.
157+
</div>
158+
159+
<div class="example">
160+
<p>In other scripts such as Thai or Lao,
161+
the typographic unit for 'letter-spacing' is more than a single Unicode codepoint,
162+
but less than a [[!UAX29]] <i>grapheme cluster</i>,
163+
and may require decomposition or other substitutions.
164+
153165
<p>For example,
154166
to properly letter-space the Thai word คำ (U+0E04 + U+0E33),
155167
the U+0E33 needs to be decomposed into U+0E4D + U+0E32,
@@ -1912,11 +1924,6 @@ Word Spacing: the 'word-spacing' property</h3>
19121924
without breaking its cursive connections,
19131925
it <em>must not</em> apply spacing
19141926
between any pair of that script's <i>letters</i> at all.
1915-
1916-
<p>In some scripts such as Thai or Lao,
1917-
the UA may apply the additional spacing within a <i>character</i> sometimes along with decompositions.
1918-
In other scripts such as Myanmar,
1919-
the UA may disallow applying the additional spacing between a specific pair of <i>characters</i> such as within a syllable.
19201927

19211928
<h2 id="edge-effects">
19221929
Edge Effects</h2>

css-text/Overview.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,18 @@ <h3 class="heading settled heading" data-level=1.3 id=terms><span class=secno>1.
316316
The UA may further tailor the definition as required by typographical tradition.
317317

318318
<div class=example>
319+
<p>For example,
320+
in some scripts such as Myanmar or Devanagari,
321+
the typographic unit for <a class=property data-link-type=propdesc href=#propdef-letter-spacing title=letter-spacing>letter-spacing</a> is an entire syllable,
322+
which may include multiple <a data-biblio-type=normative data-link-type=biblio href=#uax29 title=uax29>[UAX29]</a> <a data-link-type=dfn href=#grapheme-cluster0 title="grapheme clusters">grapheme clusters</a>.
323+
</div>
324+
325+
<div class=example>
326+
<p>In other scripts such as Thai or Lao,
327+
the typographic unit for <a class=property data-link-type=propdesc href=#propdef-letter-spacing title=letter-spacing>letter-spacing</a> is more than a single Unicode codepoint,
328+
but less than a <a data-biblio-type=normative data-link-type=biblio href=#uax29 title=uax29>[UAX29]</a> <a data-link-type=dfn href=#grapheme-cluster0 title="grapheme cluster">grapheme cluster</a>,
329+
and may require decomposition or other substitutions.
330+
319331
<p>For example,
320332
to properly letter-space the Thai word คำ (U+0E04 + U+0E33),
321333
the U+0E33 needs to be decomposed into U+0E4D + U+0E32,
@@ -2045,11 +2057,6 @@ <h3 class="heading settled heading" data-level=8.2 id=letter-spacing-property><s
20452057
it <em>must not</em> apply spacing
20462058
between any pair of that script’s <a data-link-type=dfn href=#letter0 title=letters>letters</a> at all.
20472059

2048-
<p>In some scripts such as Thai or Lao,
2049-
the UA may apply the additional spacing within a <a data-link-type=dfn href=#character title=character>character</a> sometimes along with decompositions.
2050-
In other scripts such as Myanmar,
2051-
the UA may disallow applying the additional spacing between a specific pair of <a data-link-type=dfn href=#character title=characters>characters</a> such as within a syllable.
2052-
20532060
<h2 class="heading settled heading" data-level=9 id=edge-effects><span class=secno>9 </span><span class=content>
20542061
Edge Effects</span><a class=self-link href=#edge-effects></a></h2>
20552062

0 commit comments

Comments
 (0)