Skip to content

Commit acda274

Browse files
committed
[css-text] Clean up paragraph about applying letter-spacing to cursive scripts.
1 parent a6c2c93 commit acda274

3 files changed

Lines changed: 51 additions & 34 deletions

File tree

css-text/Overview.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2813,17 +2813,14 @@ <h3 id=letter-spacing><span class=secno>8.2. </span> Tracking: the ‘<a
28132813
an “fi” ligature should not be used as it will prevent even spacing of
28142814
the text.
28152815

2816-
<p>UAs may apply letter-spacing to cursive scripts. In this case, UAs
2817-
should extend the space between disjoint characters as specified above
2818-
<em>and</em> extend the visible connection between cursively connected
2819-
characters by the same amount (rather than leaving a gap). The UA may use
2820-
glyph substitution or other font capabilities to spread out the letters.
2821-
If the UA cannot expand a cursive script without breaking the cursive
2822-
connections, it should not apply letter-spacing between characters of that
2823-
script at all.
2824-
2825-
<p class=issue>Current UAs just put gaps between joined letters in cursive
2826-
scripts.
2816+
<p>If it is able, the UA <em>may</em> apply letter-spacing to <a
2817+
href="#cursive-scripts"><i>cursive scripts</i></a> by translating the
2818+
total spacing distributed to a run of such <a
2819+
href="#letter0"><i>letters</i></a> into some form of cursive elongation
2820+
for that run. Otherwise, if the UA cannot expand text from a <i>cursive
2821+
script</i> without breaking its cursive connections, it <em>must not</em>
2822+
apply spacing between any pair of that script's <a
2823+
href="#letter0"><i>letters</i></a> at all.
28272824

28282825
<h2 id=edge-effects><span class=secno>9. </span> Edge Effects</h2>
28292826

css-text/Overview.src.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,15 +2084,13 @@ <h3 id="letter-spacing">
20842084
an “fi” ligature should not be used
20852085
as it will prevent even spacing of the text.
20862086

2087-
<p>UAs may apply letter-spacing to cursive scripts. In this case, UAs
2088-
should extend the space between disjoint characters as specified above
2089-
<em>and</em> extend the visible connection between cursively connected
2090-
characters by the same amount (rather than leaving a gap). The UA may
2091-
use glyph substitution or other font capabilities to spread out the
2092-
letters. If the UA cannot expand a cursive script without breaking
2093-
the cursive connections, it should not apply letter-spacing between
2094-
characters of that script at all.</p>
2095-
<p class="issue">Current UAs just put gaps between joined letters in cursive scripts.
2087+
<p>If it is able, the UA <em>may</em> apply letter-spacing to <i>cursive scripts</i>
2088+
by translating the total spacing distributed to a run of such <i>letters</i>
2089+
into some form of cursive elongation for that run.
2090+
Otherwise, if the UA cannot expand text from a <i>cursive script</i>
2091+
without breaking its cursive connections,
2092+
it <em>must not</em> apply spacing
2093+
between any pair of that script's <i>letters</i> at all.
20962094

20972095
<h2 id="edge-effects">
20982096
Edge Effects</h2>

css-writing-modes/Overview.src.html

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,30 +2209,28 @@ <h3 id="text-combine-horizontal">
22092209
Value: none | all | [ digits &lt;integer>? ]
22102210
Initial: none
22112211
Applies to: non-replaced inline elements
2212-
Inherited: <a href="http://lists.w3.org/Archives/Public/www-style/2013Jul/0154.html" class="issue">???</a>
2212+
Inherited: yes
22132213
Percentages: n/a
22142214
Media: visual
22152215
Computed value: specified keyword, plus integer if ''digits''
22162216
Animatable: no
22172217
Canonical order: n/a
22182218
</pre>
22192219

2220-
<p>This property allows the combination of multiple characters into the
2221-
space of a single character. This property only has an effect
2222-
in vertical writing modes. Values have the following meanings:</p>
2220+
<p>This property specifies the combination of multiple characters into the space of a single character.
2221+
If the combined text is wider than 1em, the UA must fit the contents within 1em, see below.
2222+
The resulting composition is treated as a single glyph for the purposes of layout and decoration.
2223+
This property only has an effect in vertical writing modes. Values have the following meanings:
22232224

22242225
<dl>
22252226
<dt><dfn value for=text-combine-horizontal>none</dfn>
22262227
<dd>No special processing.</dd>
22272228

22282229
<dt><dfn value for=text-combine-horizontal>all</dfn>
22292230
<dd>In vertical writing modes,
2230-
attempt to display the text contents of the element horizontally within the vertical line box.
2231-
If the contents are wider than 1em, the UA must fit the contents within 1em, see below.
2232-
The resulting composition is treated as a single glyph for the purposes
2233-
of layout and decoration.
2234-
If the content contains any element boundaries this is treated as
2235-
''text-combine-horizontal: none'' on the element and any descendants.
2231+
attempt to typeset all consecutive <i>characters</i> within the element
2232+
horizontally within the vertical line box,
2233+
such that they take up the space of a single character.
22362234
<!--
22372235
<dt><dfn value for=text-combine-horizontal>numeric</dfn>
22382236
<dd>Within the element, each sequence of consecutive horizontal numbers
@@ -2245,9 +2243,9 @@ <h3 id="text-combine-horizontal">
22452243
-->
22462244
<dt><dfn value for=text-combine-horizontal>digits <var>&lt;integer></var>?</dfn>
22472245
<dd>Within the element, each maximal sequence of consecutive ASCII digits (U+0030&ndash;U+0039)
2248-
that has as many or fewer characters than the integer given is treated
2249-
as if it were in an anonymous inline box with
2250-
''text-combine-horizontal: all''.
2246+
that has as many or fewer characters than the integer given
2247+
is typeset horizontally within the vertical line box,
2248+
such that it takes up the space of a single character.
22512249
When the integer is omitted, 2 is used.
22522250
Integers outside the range 2-4 are invalid.
22532251
<!--
@@ -2314,6 +2312,30 @@ <h3 id="text-combine-horizontal">
23142312
<p class="caption">Example of mis-applied <i lang="ja" title=''>tate-chu-yoko</i></p>
23152313
</div>
23162314
</div>
2315+
<!--
2316+
<h4 id="text-combine-runs">
2317+
Text Run Rules</h4>
2318+
2319+
<p>This feature can only combine plain text,
2320+
therefore each combined text run must contain only text: no element boundaries.
2321+
Because the property inherits,
2322+
the UA must ensure that the contents of the element effecting the combination
2323+
are not part of a sequence of the specified character pattern
2324+
that happens to begin or end outside the element;
2325+
if so, then the text is laid out normally, as if 'text-combine-horizontal' were ''none''.
2326+
2327+
<div class="example">
2328+
<p>For example, the following sequence of “1234” would be combined:
2329+
<pre>&lt;tcy>&lt;span>1234&lt;/span>&lt;/tcy></pre>
2330+
<p>However, the next example would not result in any combined text,
2331+
even though the inner span (which has inherited a value of ''digits 4'') contains only text,
2332+
because “12“ and “34” are both part of the larger sequence “1234”
2333+
<pre>&lt;tcy>12&lt;span>34&lt;/span>&lt;/tcy></pre>
2334+
<p>Similarly,
2335+
</div>
2336+
-->
2337+
<h4 id="text-combine-compression">
2338+
Compression Rules</h4>
23172339

23182340
<p>In order to preserve typographic color when compressing the text to 1em,
23192341
when the combined text consists of more than one <i>character</i>,
@@ -2469,9 +2491,9 @@ <h3 class="no-num" id="changes-201211">
24692491
2012 CSS Writing Modes Module Level 3 <abbr title="Working Draft">WD</abbr></a></h3>
24702492
<ul>
24712493
<li>Added back ''digits'' value of 'text-combine-horizontal' and tightened up rules for compressing text.
2494+
<li>Defined better analysis of text to be combined.
24722495
<li>Various fixes/clarifications to orthogonal flows.
24732496
<li>Updated references to UTR50 and how this specification use its values.
2474-
<li>Removed interaction of 'text-combine-horizontal' and 'font-variant: full-width' and added a note instead.
24752497
</ul>
24762498

24772499
<h3 class="no-num" id="changes-201205">

0 commit comments

Comments
 (0)