Skip to content

Commit 3007c4a

Browse files
committed
[css-writing-modes] Remove commented out bits of text-combine-horizontal
1 parent 16f8985 commit 3007c4a

2 files changed

Lines changed: 33 additions & 227 deletions

File tree

css-writing-modes/Overview.html

Lines changed: 18 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
124124
Table Caption Mappings: the <span class=property data-link-type=propdesc title=caption-side>caption-side</span> keywords</a></ul><li><a href=#page-direction><span class=secno>8</span>
125125
Page Flow: the page progression direction</a><li><a href=#text-combine><span class=secno>9</span>
126126
Glyph Composition</a><ul class=toc><li><a href=#text-combine-horizontal><span class=secno>9.1</span>
127-
Horizontal-in-Vertical Composition: the <span class=property data-link-type=propdesc title=text-combine-horizontal>text-combine-horizontal</span> property</a><ul class=toc><li><a href=#text-combine-sequence><span class=secno>9.1.1</span>
128-
Sequencing Rules</a><li><a href=#text-combine-layout><span class=secno>9.1.2</span>
127+
Horizontal-in-Vertical Composition: the <span class=property data-link-type=propdesc title=text-combine-horizontal>text-combine-horizontal</span> property</a><ul class=toc><li><a href=#text-combine-runs><span class=secno>9.1.1</span>
128+
Text Run Rules</a><li><a href=#text-combine-layout><span class=secno>9.1.2</span>
129129
Layout Rules</a><li><a href=#text-combine-compression><span class=secno>9.1.3</span>
130130
Compression Rules</a><ul class=toc><li><a href=#text-combine-fullwidth><span class=secno>9.1.3.1</span>
131131
Full-width Characters</a></ul></ul></ul><li><a href=#changes><span class=secno></span>Changes</a><ul class=toc><li><a href=#changes-201211><span class=secno></span>
@@ -2227,16 +2227,6 @@ <h3 class="heading settled heading" data-level=9.1 id=text-combine-horizontal><s
22272227
all consecutive <a data-link-type=dfn href=#character title=characters>characters</a> within the element
22282228
such that they take up the space of a single character
22292229
within the vertical line box.
2230-
<!--
2231-
<dt><dfn value for=text-combine-horizontal>numeric</dfn>
2232-
<dd>Within the element, each sequence of consecutive horizontal numbers
2233-
that has as many or fewer characters than the integer given is treated
2234-
as if it were in an anonymous inline box with
2235-
<span data-link-type="maybe" class="css">text-combine-horizontal: all</span>.
2236-
For this property, a <dfn>horizontal number</dfn> is any character
2237-
belonging to a Number category (N*) that does not belong to a
2238-
<a href="#script-orientations">vertical script</a>.
2239-
-->
22402230
<dt><dfn class=css-code data-dfn-for=text-combine-horizontal data-dfn-type=value data-export="" id=valuedef-digits-integer>digits <var>&lt;integer&gt;</var>?<a class=self-link href=#valuedef-digits-integer></a></dfn>
22412231
<dd>Attempt to typeset horizontally
22422232
each maximal sequence of consecutive ASCII digits (U+0030–U+0039)
@@ -2245,30 +2235,6 @@ <h3 class="heading settled heading" data-level=9.1 id=text-combine-horizontal><s
22452235
within the vertical line box.
22462236
If the integer is omitted, it computes to 2.
22472237
Integers outside the range 2-4 are invalid.
2248-
<!--
2249-
<dt><dfn value for=text-combine-horizontal>alpha</dfn>
2250-
<dd>Within the element, each sequence of consecutive horizontal letters
2251-
that has as many or fewer characters than the integer given is treated
2252-
as if it were in an anonymous inline box with
2253-
<span data-link-type="maybe" class="css">text-combine-horizontal: all</span>.
2254-
For this property, a <dfn>horizontal letter</dfn> is any character belonging
2255-
to a Letter category (L*) that does not belong to a
2256-
<a href="#script-orientations">vertical script</a>.
2257-
<dt><dfn value for=text-combine-horizontal>latin</dfn>
2258-
<dd>Within the element, each sequence of Latin letters
2259-
that has as many or fewer characters than the integer given is treated
2260-
as if it were in an anonymous inline box with
2261-
<span data-link-type="maybe" class="css">text-combine-horizontal: all</span>.
2262-
For this property, a <dfn>Latin letter</dfn> is any character belonging to
2263-
a Letter category (L*) that also belongs to the Latin script.
2264-
<p class="issue">This definition could replace <span data-link-type="maybe" class="css">alpha</span> as a simplification.
2265-
However, it wouldn’t work for greek or mixtures of greek and latin (e.g. &mu;m).
2266-
<dt><dfn value for=text-combine-horizontal>alphanumeric</dfn>
2267-
<dd>Within the element, each sequence of consecutive horizontal digits and/or
2268-
letters that has as many or fewer characters than the integer given is treated
2269-
as if it were in an anonymous inline box with
2270-
<span data-link-type="maybe" class="css">text-combine-horizontal: all</span>.
2271-
-->
22722238
</dl>
22732239

22742240
<div class=example>
@@ -2302,42 +2268,26 @@ <h3 class="heading settled heading" data-level=9.1 id=text-combine-horizontal><s
23022268
<p class=caption>Example of mis-applied <i lang=ja title="">tate-chu-yoko</i></p>
23032269
</div>
23042270
</div>
2305-
<!--
2306-
<h4 id="text-combine-runs">
2307-
Text Run Rules</h4>
2308-
2309-
<p>This feature can only combine plain text,
2310-
therefore each combined text run must contain only text: no element boundaries.
2311-
Because the property inherits,
2312-
the UA must ensure that the contents of the element effecting the combination
2313-
are not part of a sequence of the specified character pattern
2314-
that happens to begin or end outside the element;
2315-
if so, then the text is laid out normally, as if 'text-combine-horizontal' were <span data-link-type="maybe" class="css">none</span>.
2316-
2317-
<div class="example">
2318-
<p>For example, the following sequence of “1234” would be combined:
2319-
<pre>&lt;tcy>&lt;span>1234&lt;/span>&lt;/tcy></pre> <p>However, the next example would not result in any combined text,
2320-
even though the inner span (which has inherited a value of <span data-link-type="maybe" class="css">digits 4</span>) contains only text,
2321-
because “12“ and “34” are both part of the larger sequence “1234”
2322-
<pre>&lt;tcy>12&lt;span>34&lt;/span>&lt;/tcy></pre> <p>Similarly,
2323-
</div>
2324-
-->
23252271

2326-
<h4 class="heading settled heading" data-level=9.1.1 id=text-combine-sequence><span class=secno>9.1.1 </span><span class=content>
2327-
Sequencing Rules</span><a class=self-link href=#text-combine-sequence></a></h4>
2272+
<h4 class="heading settled heading" data-level=9.1.1 id=text-combine-runs><span class=secno>9.1.1 </span><span class=content>
2273+
Text Run Rules</span><a class=self-link href=#text-combine-runs></a></h4>
23282274

23292275
<p>To avoid complexity in the rendering and layout,
2330-
<a class=property data-link-type=propdesc href=#propdef-text-combine-horizontal title=text-combine-horizontal>text-combine-horizontal</a> only combines consecutive <a data-link-type=dfn href=#character title=characters>characters</a>
2331-
that are not interrupted by an element boundary.
2332-
Therefore the UA must evaluate for combination
2333-
only uninterrupted runs of text.
2334-
2335-
<p>However, to avoid combining only part of a sequence,
2336-
if the boundary of a run is due only to one or more inline element boundaries,
2276+
<a class=property data-link-type=propdesc href=#propdef-text-combine-horizontal title=text-combine-horizontal>text-combine-horizontal</a> can only combine plain text:
2277+
consecutive <a data-link-type=dfn href=#character title=characters>characters</a> that are not interrupted by an element boundary.
2278+
2279+
<p>However, because the property inherits,
2280+
the UA must ensure that the contents of the element effecting the combination
2281+
are not part of an otherwise-combinable sequence
2282+
that happens to begin or end outside the element;
2283+
if so, then the text is laid out normally, as if <a class=property data-link-type=propdesc href=#propdef-text-combine-horizontal title=text-combine-horizontal>text-combine-horizontal</a> were <a class=css data-link-type=maybe href=#valuedef-none title=none>none</a>.
2284+
To avoid combining only part of a sequence:
2285+
if the boundary of a potentially-combinable run
2286+
is due only to one or more inline element boundaries,
23372287
the UA must inspect any <a data-link-type=dfn href=#character title=characters>characters</a> that appear
2338-
immediately before and immediately after the run.
2339-
If these characters would, without the intervening element,
2340-
form a sequence that could (if it were not too long) combine,
2288+
immediately before and immediately after the run,
2289+
and if these characters would, without the intervening element,
2290+
form a sequence that would (if it were not too long) combine,
23412291
then the candidate run does not combine.
23422292

23432293
<p class=note>The above paragraph is at-risk. Comments from implementors are welcome.</p>
@@ -2465,46 +2415,6 @@ <h5 class="heading settled heading" data-level=9.1.3.1 id=text-combine-fullwidth
24652415
can potentially affect the selection of variants for characters included in combined text runs.
24662416
Authors are advised to use these properties with care when <a class=property data-link-type=propdesc href=#propdef-text-combine-horizontal title=text-combine-horizontal>text-combine-horizontal</a> is also used.
24672417

2468-
<!--
2469-
<h3 id="text-combine-mode">
2470-
Horizontal-in-Vertical Glyph Scaling: the 'text-combine-mode' property</h3>
2471-
2472-
<table class='propdef'><tr><th>Name:<td>text-combine-mode<tr><th>Value:<td>auto | compress | [ no-compress || use-glyphs ]<tr><th>Initial:<td>auto<tr><th>Applies to:<td>non-replaced inline elements<tr><th>Inherited:<td>yes<tr><th>Media:<td>visual<tr><th>Computed value:<td>specified value<tr><th>Canonical order:<td>n/a<tr><th>Percentages:<td>n/a<tr><th>Animatable:<td>no</table>
2473-
<p>This property controls how multiple characters are combined into the
2474-
space of a single character when specified to do so via
2475-
'text-combine-horizontal'. Values have the following meanings:</p>
2476-
2477-
<dl dfn-for=text-combine-mode dfn-type=value>
2478-
<dt><dfn>auto</dfn>
2479-
<dd>If the contents are wider than 1em, the UA must attempt to fit the
2480-
contents within 1em, but may use any method to do so.
2481-
<dt><dfn>compress</dfn>
2482-
<dd>Compress the composition (horizontally) as a whole until it fits within 1em.
2483-
Do not substitute alternate-width glyphs.
2484-
<dt><dfn>use-glyphs</dfn>
2485-
<dd>Attempt to substitute narrower glyphs as necessary to make the
2486-
composition fit within 1em:
2487-
<ul>
2488-
<li>a two-character composition uses 1/2-em or proportional glyphs
2489-
<li>a three-character composition uses 1/3-em glyphs (if the font
2490-
supports this feature, else fall back to 1/2-em or proportional glyphs)
2491-
<li>etc.
2492-
</ul>
2493-
<p>Since even fonts that have fractional-width glyphs available do
2494-
not have such glyphs for all characters, the UA must ensure the
2495-
expected advance width for <span data-link-type="maybe" class="css">use-glyphs</span> by either compressing or
2496-
padding (equally on both sides) each glyph individually if it does
2497-
not match the required advance width. (This step does not apply if
2498-
<span data-link-type="maybe" class="css">no-compress</span> is specified.)
2499-
<dt><dfn>no-compress</dfn>
2500-
<dd>Do not compress the composition or perform any glyph substitution
2501-
in order to make the composition fit within 1em.
2502-
When combined with <span data-link-type="maybe" class="css">use-glyphs</span>, however, this indicates to perform
2503-
glyph substitution if possible per <span data-link-type="maybe" class="css">use-glyphs</span> but not to compress
2504-
the glyphs if they do not fit the size requirements.
2505-
This value may cause the glyphs to overflow the line significantly.
2506-
</dl>
2507-
-->
25082418
<h2 class="no-num heading settled heading" id=changes><span class=content>Changes</span><a class=self-link href=#changes></a></h2>
25092419
<h3 class="no-num heading settled heading" id=changes-201211><span class=content>
25102420
Changes since the <a href=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>November

css-writing-modes/Overview.src.html

Lines changed: 15 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,16 +2235,6 @@ <h3 id="text-combine-horizontal">
22352235
all consecutive <i>characters</i> within the element
22362236
such that they take up the space of a single character
22372237
within the vertical line box.
2238-
<!--
2239-
<dt><dfn value for=text-combine-horizontal>numeric</dfn>
2240-
<dd>Within the element, each sequence of consecutive horizontal numbers
2241-
that has as many or fewer characters than the integer given is treated
2242-
as if it were in an anonymous inline box with
2243-
''text-combine-horizontal: all''.
2244-
For this property, a <dfn>horizontal number</dfn> is any character
2245-
belonging to a Number category (N*) that does not belong to a
2246-
<a href="#script-orientations">vertical script</a>.
2247-
-->
22482238
<dt><dfn value for=text-combine-horizontal>digits <var>&lt;integer></var>?</dfn>
22492239
<dd>Attempt to typeset horizontally
22502240
each maximal sequence of consecutive ASCII digits (U+0030&ndash;U+0039)
@@ -2253,30 +2243,6 @@ <h3 id="text-combine-horizontal">
22532243
within the vertical line box.
22542244
If the integer is omitted, it computes to 2.
22552245
Integers outside the range 2-4 are invalid.
2256-
<!--
2257-
<dt><dfn value for=text-combine-horizontal>alpha</dfn>
2258-
<dd>Within the element, each sequence of consecutive horizontal letters
2259-
that has as many or fewer characters than the integer given is treated
2260-
as if it were in an anonymous inline box with
2261-
''text-combine-horizontal: all''.
2262-
For this property, a <dfn>horizontal letter</dfn> is any character belonging
2263-
to a Letter category (L*) that does not belong to a
2264-
<a href="#script-orientations">vertical script</a>.
2265-
<dt><dfn value for=text-combine-horizontal>latin</dfn>
2266-
<dd>Within the element, each sequence of Latin letters
2267-
that has as many or fewer characters than the integer given is treated
2268-
as if it were in an anonymous inline box with
2269-
''text-combine-horizontal: all''.
2270-
For this property, a <dfn>Latin letter</dfn> is any character belonging to
2271-
a Letter category (L*) that also belongs to the Latin script.
2272-
<p class="issue">This definition could replace ''alpha'' as a simplification.
2273-
However, it wouldn't work for greek or mixtures of greek and latin (e.g. &mu;m).
2274-
<dt><dfn value for=text-combine-horizontal>alphanumeric</dfn>
2275-
<dd>Within the element, each sequence of consecutive horizontal digits and/or
2276-
letters that has as many or fewer characters than the integer given is treated
2277-
as if it were in an anonymous inline box with
2278-
''text-combine-horizontal: all''.
2279-
-->
22802246
</dl>
22812247

22822248
<div class="example">
@@ -2317,44 +2283,26 @@ <h3 id="text-combine-horizontal">
23172283
<p class="caption">Example of mis-applied <i lang="ja" title=''>tate-chu-yoko</i></p>
23182284
</div>
23192285
</div>
2320-
<!--
2286+
23212287
<h4 id="text-combine-runs">
23222288
Text Run Rules</h4>
23232289

2324-
<p>This feature can only combine plain text,
2325-
therefore each combined text run must contain only text: no element boundaries.
2326-
Because the property inherits,
2327-
the UA must ensure that the contents of the element effecting the combination
2328-
are not part of a sequence of the specified character pattern
2329-
that happens to begin or end outside the element;
2330-
if so, then the text is laid out normally, as if 'text-combine-horizontal' were ''none''.
2331-
2332-
<div class="example">
2333-
<p>For example, the following sequence of “1234” would be combined:
2334-
<pre>&lt;tcy>&lt;span>1234&lt;/span>&lt;/tcy></pre>
2335-
<p>However, the next example would not result in any combined text,
2336-
even though the inner span (which has inherited a value of ''digits 4'') contains only text,
2337-
because “12“ and “34” are both part of the larger sequence “1234”
2338-
<pre>&lt;tcy>12&lt;span>34&lt;/span>&lt;/tcy></pre>
2339-
<p>Similarly,
2340-
</div>
2341-
-->
2342-
2343-
<h4 id="text-combine-sequence">
2344-
Sequencing Rules</h4>
2345-
23462290
<p>To avoid complexity in the rendering and layout,
2347-
'text-combine-horizontal' only combines consecutive <i>characters</i>
2348-
that are not interrupted by an element boundary.
2349-
Therefore the UA must evaluate for combination
2350-
only uninterrupted runs of text.
2351-
2352-
<p>However, to avoid combining only part of a sequence,
2353-
if the boundary of a run is due only to one or more inline element boundaries,
2291+
'text-combine-horizontal' can only combine plain text:
2292+
consecutive <i>characters</i> that are not interrupted by an element boundary.
2293+
2294+
<p>However, because the property inherits,
2295+
the UA must ensure that the contents of the element effecting the combination
2296+
are not part of an otherwise-combinable sequence
2297+
that happens to begin or end outside the element;
2298+
if so, then the text is laid out normally, as if 'text-combine-horizontal' were ''none''.
2299+
To avoid combining only part of a sequence:
2300+
if the boundary of a potentially-combinable run
2301+
is due only to one or more inline element boundaries,
23542302
the UA must inspect any <i>characters</i> that appear
2355-
immediately before and immediately after the run.
2356-
If these characters would, without the intervening element,
2357-
form a sequence that could (if it were not too long) combine,
2303+
immediately before and immediately after the run,
2304+
and if these characters would, without the intervening element,
2305+
form a sequence that would (if it were not too long) combine,
23582306
then the candidate run does not combine.
23592307

23602308
<p class="note">The above paragraph is at-risk. Comments from implementors are welcome.</p>
@@ -2490,58 +2438,6 @@ <h5 id="text-combine-fullwidth">
24902438
can potentially affect the selection of variants for characters included in combined text runs.
24912439
Authors are advised to use these properties with care when 'text-combine-horizontal' is also used.
24922440

2493-
<!--
2494-
<h3 id="text-combine-mode">
2495-
Horizontal-in-Vertical Glyph Scaling: the 'text-combine-mode' property</h3>
2496-
2497-
<pre class='propdef'>q
2498-
Name: text-combine-mode
2499-
Value: auto | compress | [ no-compress || use-glyphs ]
2500-
Initial: auto
2501-
Applies to: non-replaced inline elements
2502-
Inherited: yes
2503-
Percentages: n/a
2504-
Media: visual
2505-
Computed value: specified value
2506-
Animatable: no
2507-
Canonical order: n/a
2508-
</pre>
2509-
2510-
<p>This property controls how multiple characters are combined into the
2511-
space of a single character when specified to do so via
2512-
'text-combine-horizontal'. Values have the following meanings:</p>
2513-
2514-
<dl dfn-for=text-combine-mode dfn-type=value>
2515-
<dt><dfn>auto</dfn>
2516-
<dd>If the contents are wider than 1em, the UA must attempt to fit the
2517-
contents within 1em, but may use any method to do so.
2518-
<dt><dfn>compress</dfn>
2519-
<dd>Compress the composition (horizontally) as a whole until it fits within 1em.
2520-
Do not substitute alternate-width glyphs.
2521-
<dt><dfn>use-glyphs</dfn>
2522-
<dd>Attempt to substitute narrower glyphs as necessary to make the
2523-
composition fit within 1em:
2524-
<ul>
2525-
<li>a two-character composition uses 1/2-em or proportional glyphs
2526-
<li>a three-character composition uses 1/3-em glyphs (if the font
2527-
supports this feature, else fall back to 1/2-em or proportional glyphs)
2528-
<li>etc.
2529-
</ul>
2530-
<p>Since even fonts that have fractional-width glyphs available do
2531-
not have such glyphs for all characters, the UA must ensure the
2532-
expected advance width for ''use-glyphs'' by either compressing or
2533-
padding (equally on both sides) each glyph individually if it does
2534-
not match the required advance width. (This step does not apply if
2535-
''no-compress'' is specified.)
2536-
<dt><dfn>no-compress</dfn>
2537-
<dd>Do not compress the composition or perform any glyph substitution
2538-
in order to make the composition fit within 1em.
2539-
When combined with ''use-glyphs'', however, this indicates to perform
2540-
glyph substitution if possible per ''use-glyphs'' but not to compress
2541-
the glyphs if they do not fit the size requirements.
2542-
This value may cause the glyphs to overflow the line significantly.
2543-
</dl>
2544-
-->
25452441
<h2 class="no-num" id="changes">Changes</h2>
25462442
<h3 class="no-num" id="changes-201211">
25472443
Changes since the <a href="http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/">November

0 commit comments

Comments
 (0)