Skip to content

Commit 2daab08

Browse files
committed
[css-writing-modes] Tr rule was misplaced. Fix that and tweak the wording to make the expectations on fonts clearer.
1 parent a128a8f commit 2daab08

2 files changed

Lines changed: 29 additions & 22 deletions

File tree

css-writing-modes/Overview.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,24 +1226,18 @@ <h4 class="heading settled heading" data-level=5.1.1 id=vertical-orientations><s
12261226
<p>
12271227
<a data-biblio-type=normative data-link-type=biblio href=#utr50 title=utr50>[UTR50]</a> defines the Vertical_Orientation property for the default character orientation of mixed-orientation vertical text.
12281228
When <a class=property data-link-type=propdesc href=#propdef-text-orientation title=text-orientation>text-orientation</a> is <a class=css data-link-type=maybe href=#valuedef-mixed title=mixed>mixed</a>,
1229-
the UA must render a <a data-link-type=dfn href=#character title=character>character</a> upright if its orientation property is
1230-
<code>U</code> or <code>Tu</code>;
1229+
the UA must <a href="#typeset-upright">typeset a <a data-link-type=dfn href=#character title=character>character</a> upright</a>
1230+
if its orientation property is <code>U</code>, <code>Tu</code>, or <code>Tr</code>;
12311231
or <a href=#typeset-sideways>typeset it sideways</a> (90° clockwise from horizontal)
12321232
if its orientation property is <code>R</code>.
1233-
For <code>Tr</code> <a data-link-type=dfn href=#character title=characters>characters</a>,
1234-
which are intended to be either transformed or rotated sideways,
1235-
the UA may assume that appropriate glyphs for upright typesetting
1236-
are given in the font and render them upright;
1237-
alternately it may check for such glyphs first,
1238-
and fall back to typesetting them sideways if the appropriate glyphs are missing.
12391233

12401234
<h4 class="heading settled heading" data-level=5.1.2 id=vertical-font-features><span class=secno>5.1.2 </span><span class=content>
12411235
Vertical Typesetting and Font Features</span><a class=self-link href=#vertical-font-features></a></h4>
12421236

12431237
<p>When typesetting text in <a class=css data-link-type=maybe href=#valuedef-mixed title=mixed>mixed</a> and <a class=css data-link-type=maybe href=#valuedef-upright title=upright>upright</a> orientations:
12441238

12451239
<dl>
1246-
<dt>upright characters
1240+
<dt id="typeset-upright">upright characters
12471241
<dd>
12481242
Are typeset upright with vertical font metrics.
12491243
The UA must synthesize vertical font metrics for fonts that lack them.
@@ -1256,7 +1250,6 @@ <h4 class="heading settled heading" data-level=5.1.2 id=vertical-font-features><
12561250
<p class=note>Note that even when typeset "upright",
12571251
some glyphs should appear rotated.
12581252
For example, dashes and enclosing punctuation
1259-
(such as 〈 LEFT ANGLE BRACKET U+3008)
12601253
should be oriented relative to the inline axis.
12611254
In OpenType, this is typically handled by glyph substitution,
12621255
although not all fonts have alternate glyphs for all relevant codepoints.
@@ -1265,6 +1258,16 @@ <h4 class="heading settled heading" data-level=5.1.2 id=vertical-font-features><
12651258
Unicode published draft data on which <a data-link-type=dfn href=#character title=characters>characters</a> should appear sideways
12661259
as the SVO property in <a href=http://www.unicode.org/reports/tr50/tr50-6.Orientation.txt>this data file</a>;
12671260
however, this property has been abandoned for the current revision of <a data-biblio-type=normative data-link-type=biblio href=#utr50 title=utr50>[UTR50]</a>.
1261+
1262+
<p><a data-link-type=dfn href=#character title=characters>Characters</a>,
1263+
which are classified as <code>Tr</code> or <code>Tu</code> in <a data-biblio-type=normative data-link-type=biblio href=#utr50 title=utr50>[UTR50]</a>
1264+
are expected to have alternate glyphs or positioning for typesetting upright in vertical text.
1265+
In the case of <code>Tr</code> <a data-link-type=dfn href=#character title=characters>characters</a>,
1266+
if such vertical alternate glyphs are missing from the font,
1267+
the UA may (but is not required to)
1268+
fall back to <a href="#typeset-sideways">typesetting them sideways</a>
1269+
in order to synthesize the missing glyphs.
1270+
12681271
<dt id=typeset-sideways><a class=self-link href=#typeset-sideways></a>sideways characters
12691272
<dd>
12701273
Are typeset rotated 90° sideways with horizontal metrics,
@@ -2853,4 +2856,4 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
28532856

28542857
<a href=#issue-afa4af44></a><p class=issue>The WG would appreciate a better (more obvious + easier to type) name for this, if anyone can come up with one.
28552858

2856-
<a href=#issue-394a8f4a></a></div>
2859+
<a href=#issue-394a8f4a></a></div>

css-writing-modes/Overview.src.html

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,24 +1211,18 @@ <h4 id='vertical-orientations'>
12111211
<p>
12121212
[[!UTR50]] defines the Vertical_Orientation property for the default character orientation of mixed-orientation vertical text.
12131213
When 'text-orientation' is ''mixed'',
1214-
the UA must render a <i>character</i> upright if its orientation property is
1215-
<code>U</code> or <code>Tu</code>;
1214+
the UA must <a href="#typeset-upright">typeset a <i>character</i> upright</a>
1215+
if its orientation property is <code>U</code>, <code>Tu</code>, or <code>Tr</code>;
12161216
or <a href="#typeset-sideways">typeset it sideways</a> (90&deg; clockwise from horizontal)
12171217
if its orientation property is <code>R</code>.
1218-
For <code>Tr</code> <i>characters</i>,
1219-
which are intended to be either transformed or rotated sideways,
1220-
the UA may assume that appropriate glyphs for upright typesetting
1221-
are given in the font and render them upright;
1222-
alternately it may check for such glyphs first,
1223-
and fall back to typesetting them sideways if the appropriate glyphs are missing.
12241218

12251219
<h4 id='vertical-font-features'>
12261220
Vertical Typesetting and Font Features</h4>
12271221

12281222
<p>When typesetting text in ''mixed'' and ''upright'' orientations:
12291223

12301224
<dl>
1231-
<dt>upright characters
1225+
<dt id='typeset-upright'>upright characters
12321226
<dd>
12331227
Are typeset upright with vertical font metrics.
12341228
The UA must synthesize vertical font metrics for fonts that lack them.
@@ -1238,18 +1232,28 @@ <h4 id='vertical-font-features'>
12381232
(E.g. the OpenType ''vert'' feature must be enabled.)
12391233
Furthermore, characters from horizontal cursive scripts (such as Arabic)
12401234
are shaped in their isolated forms when typeset upright.
1235+
12411236
<p class="note">Note that even when typeset "upright",
12421237
some glyphs should appear rotated.
12431238
For example, dashes and enclosing punctuation
1244-
(such as 〈 LEFT ANGLE BRACKET U+3008)
12451239
should be oriented relative to the inline axis.
12461240
In OpenType, this is typically handled by glyph substitution,
12471241
although not all fonts have alternate glyphs for all relevant codepoints.
12481242
(East Asian fonts usually provide alternates for East Asian codepoints,
1249-
but Western fonts typically lack any vertical typesetting features.)
1243+
but Western fonts typically lack any vertical typesetting features
1244+
and East Asian fonts typically lack vertical substitutions for Western codepoints.)
12501245
Unicode published draft data on which <i>characters</i> should appear sideways
12511246
as the SVO property in <a href="http://www.unicode.org/reports/tr50/tr50-6.Orientation.txt">this data file</a>;
12521247
however, this property has been abandoned for the current revision of [[!UTR50]].
1248+
1249+
<p><i>Characters</i> which are classified as <code>Tr</code> or <code>Tu</code> in [[!UTR50]]
1250+
are expected to have alternate glyphs or positioning for typesetting upright in vertical text.
1251+
In the case of <code>Tr</code> <i>characters</i>,
1252+
if such vertical alternate glyphs are missing from the font,
1253+
the UA may (but is not required to)
1254+
fall back to <a href="#typeset-sideways">typesetting them sideways</a>
1255+
in order to synthesize the missing glyphs.
1256+
12531257
<dt id='typeset-sideways'>sideways characters
12541258
<dd>
12551259
Are typeset rotated 90&deg; sideways with horizontal metrics,

0 commit comments

Comments
 (0)