Skip to content

Commit d12ebbc

Browse files
author
John Daggett
committed
move ruby and ordinal to different subproperties
1 parent 55c7b81 commit d12ebbc

1 file changed

Lines changed: 62 additions & 52 deletions

File tree

css3-fonts/Fonts.html

Lines changed: 62 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@
111111

112112
<h1>CSS Fonts Module Level 3</h1>
113113

114-
<h2 class="no-num no-toc" id=editors>Editor's Draft 12 October 2011</h2>
114+
<h2 class="no-num no-toc" id=editors>Editor's Draft 14 October 2011</h2>
115115

116116
<dl id=authors>
117117
<dt>This version:
118118

119119
<dd><a
120120
href="http://dev.w3.org/csswg/css3-fonts/">http://dev.w3.org/csswg/css3-fonts/</a>
121-
<!-- <dd><a href="http://www.w3.org/TR/2011/ED-css3-fonts-20111012/">http://www.w3.org/TR/2011/ED-css3-fonts-20111012/</a> -->
121+
<!-- <dd><a href="http://www.w3.org/TR/2011/ED-css3-fonts-20111014/">http://www.w3.org/TR/2011/ED-css3-fonts-20111014/</a> -->
122122

123123

124124
<dt>Latest version:
@@ -325,8 +325,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
325325
the font-kerning property</a>
326326

327327
<li><a href="#font-variant-position-prop"><span class=secno>6.4
328-
</span>Subscript, superscript and ordinal forms: the
329-
font-variant-position property</a>
328+
</span>Subscript and superscript forms: the font-variant-position
329+
property</a>
330330

331331
<li><a href="#font-variant-ligatures-prop"><span class=secno>6.5
332332
</span>Ligatures: the font-variant-ligatures property</a>
@@ -2601,10 +2601,11 @@ <h3 id=font-rend-desc><span class=secno>4.6 </span>Font features: the <a
26012601
character-variant(&lt;feature-value-name&gt;
26022602
[,&lt;feature-value-name&gt;]*) || swash(&lt;feature-value-name&gt;) ||
26032603
ornaments(&lt;feature-value-name&gt;) ||
2604-
annotation(&lt;feature-value-name&gt;) || ruby || &lt;caps-value&gt; ||
2604+
annotation(&lt;feature-value-name&gt;) || &lt;caps-value&gt; ||
26052605
&lt;numeric-figure-values&gt; || &lt;numeric-spacing-values&gt; ||
2606-
&lt;numeric-fraction-values&gt; || slashed-zero ||
2607-
&lt;east-asian-variant-values&gt; || &lt;east-asian-width-values&gt; ]
2606+
&lt;numeric-fraction-values&gt; || ordinal || slashed-zero ||
2607+
&lt;east-asian-variant-values&gt; || &lt;east-asian-width-values&gt; ||
2608+
ruby ]
26082609

26092610
<tr>
26102611
<td><em>Initial:</em>
@@ -3205,8 +3206,8 @@ <h3 id=font-kerning-prop><span class=secno>6.3 </span>Kerning: the <a
32053206
spacing adjustments are made after kerning has been applied.</p>
32063207
<!-- prop: font-variant-position -->
32073208

3208-
<h3 id=font-variant-position-prop><span class=secno>6.4 </span>Subscript,
3209-
superscript and ordinal forms: the <a
3209+
<h3 id=font-variant-position-prop><span class=secno>6.4 </span>Subscript
3210+
and superscript forms: the <a
32103211
href="#propdef-font-variant-position">font-variant-position</a> property</h3>
32113212

32123213
<table class=propdef id=namefont-variant-position>
@@ -3219,7 +3220,7 @@ <h3 id=font-variant-position-prop><span class=secno>6.4 </span>Subscript,
32193220
<tr>
32203221
<td>Value:
32213222

3222-
<td>normal | sub | super | ordinal
3223+
<td>normal | sub | super
32233224

32243225
<tr>
32253226
<td>Initial:
@@ -3256,30 +3257,27 @@ <h3 id=font-variant-position-prop><span class=secno>6.4 </span>Subscript,
32563257
this name is a placeholder until the final name is resolved.
32573258

32583259
<p>This property controls the selection of alternate glyphs for use as
3259-
subscripts, superscripts and ordinals. These alternate glyphs of reduced
3260-
size are positioned within the same em-box as the default glyph and
3261-
explicitly designed to match the surrounding text and make the them more
3262-
readable without affecting the linebox.
3260+
subscripts and superscripts. These alternate glyphs of reduced size are
3261+
positioned within the same em-box as the default glyph and explicitly
3262+
designed to match the surrounding text and make the them more readable
3263+
without affecting the linebox.
32633264

32643265
<div class=figure><img alt="comparison between real subscript glyphs and
32653266
synthesized ones" src=realsubscripts.png>
32663267
<p class=caption>Subscript glyphs (top) vs. typical synthesized subscripts
32673268
(bottom)
32683269
</div>
32693270

3270-
<p>The values ‘<code class=property>sub</code>’, ‘<code
3271-
class=property>super</code>’, and ‘<code
3272-
class=property>ordinal</code>’ imply the appropriate variant glyph is
3273-
displayed when available in the font (OpenType features: <code>subs, supr,
3274-
ordn</code>). Because of the semantic nature of subscripts and
3271+
<p>The values ‘<code class=property>sub</code>’ and ‘<code
3272+
class=property>super</code>’ imply the appropriate variant glyph is
3273+
displayed when available in the font (OpenType features: <code>subs,
3274+
supr</code>). Because of the semantic nature of subscripts and
32753275
superscripts, when the value is either ‘<code
32763276
class=property>sub</code>’ or ‘<code class=property>super</code>
32773277
and a variant glyph is not available, a simulated glyph is synthesized
3278-
using a reduced form of the default glyph. If the value is ‘<code
3279-
class=property>ordinal</code>’ and a variant glyph is not available, the
3280-
normal glyph is used, no attempt is made to synthesize one. A value of
3281-
<code class=property>normal</code>’ implies use of the default glyph
3282-
at normal size.
3278+
using a reduced form of the default glyph. A value of ‘<code
3279+
class=property>normal</code>’ implies use of the default glyph at normal
3280+
size.
32833281

32843282
<p>In the case of OpenType fonts that lack subscript or superscript glyphs
32853283
for a given character, to calculate the size and offset of the synthesized
@@ -3619,7 +3617,7 @@ <h3 id=font-variant-numeric-prop><span class=secno>6.7 </span>Numerical
36193617

36203618
<td>normal | inherit | [ &lt;numeric-figure-values&gt; ||
36213619
&lt;numeric-spacing-values&gt; || &lt;numeric-fraction-values&gt; ||
3622-
slashed-zero ]
3620+
ordinal || slashed-zero ]
36233621

36243622
<tr>
36253623
<td>Initial:
@@ -3717,6 +3715,11 @@ <h3 id=font-variant-numeric-prop><span class=secno>6.7 </span>Numerical
37173715
<div class=featex><img alt="stacked fraction example" src=afrc.png></div>
37183716

37193717
<dl>
3718+
<dt><dfn id=ordinal>ordinal</dfn>
3719+
3720+
<dd>Enables display of forms used with ordinal numbers (OpenType feature:
3721+
<code>ordn</code>).
3722+
37203723
<dt><dfn id=slashed-zero>slashed-zero</dfn>
37213724

37223725
<dd>Enables display of slashed zeros (OpenType feature:
@@ -3768,7 +3771,7 @@ <h3 id=font-variant-alternates-prop><span class=secno>6.8 </span>Alternates
37683771
character-variant(&lt;feature-value-name&gt;
37693772
[,&lt;feature-value-name&gt;]*) || swash(&lt;feature-value-name&gt;) ||
37703773
ornaments(&lt;feature-value-name&gt;) ||
3771-
annotation(&lt;feature-value-name&gt;) || ruby ]
3774+
annotation(&lt;feature-value-name&gt;) ]
37723775

37733776
<tr>
37743777
<td>Initial:
@@ -3919,18 +3922,6 @@ <h3 id=font-variant-alternates-prop><span class=secno>6.8 </span>Alternates
39193922
<div class=featex><img alt="alternate annotation form example"
39203923
src=nalt.png></div>
39213924

3922-
<dl>
3923-
<dt><dfn id=ruby>ruby</dfn>
3924-
3925-
<dd>Enables display of ruby variant glyphs (OpenType feature:
3926-
<code>ruby</code>). This value only selects a glyph for use in ruby text,
3927-
it does not affect font scaling. The red ruby text below is shown with
3928-
default glyphs (top) and with ruby variant glyphs (bottom). Note the
3929-
slight difference in stroke thickness.
3930-
</dl>
3931-
3932-
<div class=featex><img alt="ruby variant example" src=rubyshinkansen.png></div>
3933-
39343925
<h3 id=font-feature-values><span class=secno>6.9 </span>Defining font
39353926
specific alternates: the @font-feature-values rule</h3>
39363927

@@ -4174,7 +4165,7 @@ <h3 id=font-variant-east-asian-prop><span class=secno>6.10 </span>East
41744165
<td>Value:
41754166

41764167
<td>normal | inherit | [ &lt;east-asian-variant-values&gt; ||
4177-
&lt;east-asian-width-values&gt; ]
4168+
&lt;east-asian-width-values&gt; || ruby ]
41784169

41794170
<tr>
41804171
<td>Initial:
@@ -4273,6 +4264,21 @@ <h3 id=font-variant-east-asian-prop><span class=secno>6.10 </span>East
42734264
<div class=featex><img alt="proportionally spaced Japanese example"
42744265
src=pwid.png></div>
42754266

4267+
<dl>
4268+
<dt><dfn id=ruby>ruby</dfn>
4269+
4270+
<dd>Enables display of ruby variant glyphs (OpenType feature:
4271+
<code>ruby</code>). Since ruby text is generally smaller than the
4272+
associated body text, font designers can design special glyphs for use
4273+
with ruby that are more readable than scaled down versions of the default
4274+
glyphs. Only glyph selection is affected, there is no associated font
4275+
scaling or other change that affects line layout. The red ruby text below
4276+
is shown with default glyphs (top) and with ruby variant glyphs (bottom).
4277+
Note the slight difference in stroke thickness.
4278+
</dl>
4279+
4280+
<div class=featex><img alt="ruby variant example" src=rubyshinkansen.png></div>
4281+
42764282
<h3 id=font-variant-prop><span class=secno>6.11 </span>Overall shorthand
42774283
for font rendering: the <a href="#propdef-font-variant">font-variant</a>
42784284
property</h3>
@@ -4295,10 +4301,11 @@ <h3 id=font-variant-prop><span class=secno>6.11 </span>Overall shorthand
42954301
character-variant(&lt;feature-value-name&gt;
42964302
[,&lt;feature-value-name&gt;]*) || swash(&lt;feature-value-name&gt;) ||
42974303
ornaments(&lt;feature-value-name&gt;) ||
4298-
annotation(&lt;feature-value-name&gt;) || ruby || &lt;caps-value&gt; ||
4304+
annotation(&lt;feature-value-name&gt;) || &lt;caps-value&gt; ||
42994305
&lt;numeric-figure-values&gt; || &lt;numeric-spacing-values&gt; ||
4300-
&lt;numeric-fraction-values&gt; || slashed-zero ||
4301-
&lt;east-asian-variant-values&gt; || &lt;east-asian-width-values&gt; ]
4306+
&lt;numeric-fraction-values&gt; || ordinal || slashed-zero ||
4307+
&lt;east-asian-variant-values&gt; || &lt;east-asian-width-values&gt; ||
4308+
ruby ]
43024309

43034310
<tr>
43044311
<td>Initial:
@@ -5403,6 +5410,8 @@ <h2 class=no-num id=index>Index</h2>
54035410
<li>oldstyle-nums, <a href="#oldstyle-nums"
54045411
title=oldstyle-nums><strong>6.7</strong></a>
54055412

5413+
<li>ordinal, <a href="#ordinal" title=ordinal><strong>6.7</strong></a>
5414+
54065415
<li>ornaments(&lt;feature-value-name&gt;), <a
54075416
href="#ornamentsltfeature-value-namegt"
54085417
title="ornaments(&lt;feature-value-name&gt;)"><strong>6.8</strong></a>
@@ -5425,7 +5434,7 @@ <h2 class=no-num id=index>Index</h2>
54255434
title="&lt;relative-size&gt; definition of"><strong>3.5</strong></a>
54265435
</ul>
54275436

5428-
<li>ruby, <a href="#ruby" title=ruby><strong>6.8</strong></a>
5437+
<li>ruby, <a href="#ruby" title=ruby><strong>6.10</strong></a>
54295438

54305439
<li>sans-serif, definition of, <a href="#sans-serif0" title="sans-serif,
54315440
definition of"><strong>#</strong></a>
@@ -5674,10 +5683,11 @@ <h2 class=no-num id=property-index>Property index</h2>
56745683
character-variant(&lt;feature-value-name&gt;
56755684
[,&lt;feature-value-name&gt;]*) || swash(&lt;feature-value-name&gt;) ||
56765685
ornaments(&lt;feature-value-name&gt;) ||
5677-
annotation(&lt;feature-value-name&gt;) || ruby || &lt;caps-value&gt; ||
5686+
annotation(&lt;feature-value-name&gt;) || &lt;caps-value&gt; ||
56785687
&lt;numeric-figure-values&gt; || &lt;numeric-spacing-values&gt; ||
5679-
&lt;numeric-fraction-values&gt; || slashed-zero ||
5680-
&lt;east-asian-variant-values&gt; || &lt;east-asian-width-values&gt; ]
5688+
&lt;numeric-fraction-values&gt; || ordinal || slashed-zero ||
5689+
&lt;east-asian-variant-values&gt; || &lt;east-asian-width-values&gt; ||
5690+
ruby ]
56815691

56825692
<td>normal
56835693

@@ -5697,9 +5707,9 @@ <h2 class=no-num id=property-index>Property index</h2>
56975707
stylistic(&lt;feature-value-name&gt;) || historical-forms ||
56985708
styleset(&lt;feature-value-name&gt; [, &lt;feature-value-name&gt;]*) ||
56995709
character-variant(&lt;feature-value-name&gt;
5700-
[,&lt;feature-value-name&gt;;]*) || swash(&lt;feature-value-name&gt;)
5701-
|| ornaments(&lt;feature-value-name&gt;) ||
5702-
annotation(&lt;feature-value-name&gt;) || ruby ]
5710+
[,&lt;feature-value-name&gt;]*) || swash(&lt;feature-value-name&gt;) ||
5711+
ornaments(&lt;feature-value-name&gt;) ||
5712+
annotation(&lt;feature-value-name&gt;) ]
57035713

57045714
<td>normal
57055715

@@ -5732,7 +5742,7 @@ <h2 class=no-num id=property-index>Property index</h2>
57325742
href="#propdef-font-variant-east-asian">font-variant-east-asian</a>
57335743

57345744
<td>normal | inherit | [ &lt;east-asian-variant-values&gt; ||
5735-
&lt;east-asian-width-values&gt; ]
5745+
&lt;east-asian-width-values&gt; || ruby ]
57365746

57375747
<td>normal
57385748

@@ -5767,7 +5777,7 @@ <h2 class=no-num id=property-index>Property index</h2>
57675777

57685778
<td>normal | inherit | [ &lt;numeric-figure-values&gt; ||
57695779
&lt;numeric-spacing-values&gt; || &lt;numeric-fraction-values&gt; ||
5770-
slashed-zero ]
5780+
ordinal || slashed-zero ]
57715781

57725782
<td>normal
57735783

@@ -5783,7 +5793,7 @@ <h2 class=no-num id=property-index>Property index</h2>
57835793
<th><a class=property
57845794
href="#propdef-font-variant-position">font-variant-position</a>
57855795

5786-
<td>normal | sub | super | ordinal
5796+
<td>normal | sub | super
57875797

57885798
<td>normal
57895799

0 commit comments

Comments
 (0)