css-ruby/Overview.src.html

Thu, 20 Jun 2013 15:32:56 -0700

author
fantasai <fantasai.cvs@inkedblade.net>
date
Thu, 20 Jun 2013 15:32:56 -0700
changeset 8526
eae28530e7d7
parent 8509
7720e9e6db0b
child 8527
47abcae337d2
permissions
-rw-r--r--

[css-ruby] Clean up wording, markup, issues for ruby properties.

fantasai@8526 1 <!--
fantasai@8526 2
fantasai@8526 3 Issues:
fantasai@8526 4 white space
fantasai@8526 5 line breaking
fantasai@8526 6 bidi
fantasai@8526 7
fantasai@8526 8 -->
fantasai@8526 9
fantasai@8479 10 <!DOCTYPE html>
fantasai@8479 11 <html lang="en">
ishida@1665 12 <head>
fantasai@8493 13 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
fantasai@8493 14 <title>CSS Ruby Module Level 1</title>
fantasai@8493 15 <link rel=contents href="#contents">
fantasai@8493 16 <link rel=index href="#index">
fantasai@8493 17 <link rel="stylesheet" type="text/css" href="../default.css">
fantasai@8493 18 <link href="../csslogo.ico" rel="shortcut icon" type="image/x-icon">
fantasai@8493 19 <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-[STATUS].css">
ishida@1665 20 </head>
ishida@1665 21
fantasai@8479 22 <body class="h-entry">
ishida@1665 23
ishida@1665 24 <div class="head">
fantasai@8479 25 <!--logo-->
ishida@1665 26
fantasai@8479 27 <h1 class="p-name">CSS Ruby Module Level 1</h1>
ishida@1665 28
fantasai@8479 29 <h2 class="no-num no-toc">[LONGSTATUS] <time class="dt-updated" datetime="[CDATE]">[DATE]</time> <!-- for HTML4 doctype: <span class="value-title" title="[CDATE]">[DATE]</span></span> --> </h2>
ishida@1665 30 <dl>
fantasai@8493 31 <dt>This version:
fantasai@8493 32 <dd><a class="u-url" href="[VERSION]">[VERSION]</a>
fantasai@7857 33
fantasai@8493 34 <dt>Latest version:
fantasai@8493 35 <dd><a href="http://www.w3.org/TR/[SHORTNAME]/">http://www.w3.org/TR/css3-ruby/</a>
fantasai@8479 36
fantasai@8493 37 <dt>Editor's draft:
fantasai@8493 38 <dd><a href="http://dev.w3.org/csswg/[SHORTNAME]/">http://dev.w3.org/csswg/[SHORTNAME]/</a>
fantasai@8493 39 (<a href="https://dvcs.w3.org/hg/csswg/log/tip/[SHORTNAME]/Overview.src.html">change log</a>)
fantasai@8479 40
fantasai@8493 41 <dt>Previous version:
fantasai@8493 42 <dd><a href="http://www.w3.org/TR/2011/WD-css3-ruby-20110630/">
fantasai@8493 43 http://www.w3.org/TR/2011/WD-css3-ruby-20110630/</a>
fantasai@8479 44
fantasai@8493 45 <dt>Issue Tracking:</dt>
fantasai@8493 46 <dd><a rel="issues" href="http://www.w3.org/Style/CSS/Tracker/products/FIXME">http://www.w3.org/Style/CSS/Tracker/products/FIXME</a>
fantasai@8479 47
fantasai@8493 48 <dt>Feedback:</dt>
fantasai@8493 49 <dd><a href="mailto:www-style@w3.org?subject=%5BSHORTNAME%5D%20feedback"
fantasai@8493 50 >www-style@w3.org</a>
fantasai@8493 51 with subject line &ldquo;<kbd>[[SHORTNAME]]
fantasai@8493 52 <var>&hellip; message topic &hellip;</var></kbd>&rdquo;
fantasai@8493 53 (<a rel="discussion" href="http://lists.w3.org/Archives/Public/www-style/"
fantasai@8493 54 >archives</a>)
fantasai@8479 55
fantasai@8493 56 <dt>Editors:
fantasai@8493 57 <dd class="p-author h-card vcard">
fantasai@8493 58 <a class="p-name fn u-url url" rel="author"
fantasai@8493 59 href="http://fantasai.inkedblade.net/contact">Elika J. Etemad</a>,
fantasai@8493 60 <a class="p-org org h-org" href="http://www.mozilla.org/">Mozilla</a>
fantasai@8493 61 <dd class="p-author h-card vcard">
fantasai@8493 62 <a class="p-name fn u-url url" rel="author"
fantasai@8493 63 href="mailto:koji.a.ishii@mail.rakuten.com">Koji Ishii</a>,
fantasai@8493 64 <span class="p-org org">Rakuten, Inc.</span>
fantasai@8493 65 <dd class="p-author h-card vcard">
fantasai@8493 66 <a class="p-name fn u-url url" rel="author"
fantasai@8493 67 href="mailto:ishida@w3.org">Richard Ishida</a>,
fantasai@8493 68 <span class="p-org org">W3C</span>
fantasai@8479 69
fantasai@8493 70 <dt>Former editors:
fantasai@8493 71 <dd>Michel Suignard, Microsoft
fantasai@8493 72 <dd>Marcin Sawicki, Microsoft
ishida@1665 73 </dl>
ishida@1665 74
fantasai@8479 75 <!--copyright-->
ishida@1665 76
fantasai@8479 77 <hr title="Separator for header">
ishida@1665 78 </div>
ishida@1665 79
fantasai@8479 80 <h2 class="no-num no-toc" id="abstract">Abstract</h2>
ishida@1665 81
fantasai@8493 82 <p>
fantasai@8493 83 <span class="p-summary">
fantasai@8493 84 “Ruby” are short runs of text alongside the base text,
fantasai@8493 85 typically used in East Asian documents to indicate pronunciation
fantasai@8493 86 or to provide a short annotation.
fantasai@8493 87 This module describes the rendering model and formatting controls
fantasai@8493 88 related to displaying ruby annotations in CSS.
fantasai@8493 89 </span>
fantasai@8493 90
fantasai@8493 91 <a href="http://www.w3.org/TR/CSS/">CSS</a> is a language for describing
fantasai@8493 92 the rendering of structured documents (such as HTML and XML) on screen, on
fantasai@8493 93 paper, in speech, etc.
ishida@1665 94
fantasai@8479 95 <h2 class="no-num no-toc" id="status">Status of this document</h2>
ishida@1665 96
fantasai@8479 97 <!--status-->
fantasai@8479 98
fantasai@8479 99 <p>The following features are at risk: &hellip;
fantasai@8479 100
fantasai@8479 101 <h2 class="no-num no-toc" id="contents">
fantasai@8479 102 Table of Contents</h2>
fantasai@8479 103
fantasai@8479 104 <!--toc-->
fantasai@8479 105
fantasai@8479 106 <h2 id="intro">
fantasai@8479 107 Introduction</h2>
fantasai@8479 108
fantasai@8493 109 <p><em>This section is not normative.</em>
fantasai@8479 110
fantasai@8479 111 <h3 id="placement">
fantasai@8479 112 Module interactions</h3>
fantasai@8479 113
fantasai@8493 114 <p>This module extends the inline box model of CSS Level 2 [[!CSS21]]
fantasai@8493 115 to support ruby.
fantasai@8479 116
fantasai@8493 117 <p>None of the properties in this module apply to the <code>::first-line</code> or
fantasai@8493 118 <code>::first-letter</code> pseudo-elements.
fantasai@8479 119
fantasai@8479 120 <h3 id="values">
fantasai@8479 121 Values</h3>
fantasai@8479 122
fantasai@8493 123 <p>This specification follows the
fantasai@8493 124 <a href="http://www.w3.org/TR/CSS21/about.html#property-defs">CSS property
fantasai@8493 125 definition conventions</a> from [[!CSS21]]. Value types not defined in
fantasai@8493 126 this specification are defined in CSS Level 2 Revision 1 [[!CSS21]].
fantasai@8493 127 Other CSS modules may expand the definitions of these value types: for
fantasai@8493 128 example [[CSS3VAL]], when combined with this module, expands the
fantasai@8493 129 definition of the <var>&lt;length&gt;</var> value type as used in this specification.</p>
fantasai@8493 130
fantasai@8493 131 <p>In addition to the property-specific values listed in their definitions,
fantasai@8493 132 all properties defined in this specification also accept the
fantasai@8493 133 <a href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a>
fantasai@8493 134 keyword as their property value. For readability it has not been repeated
fantasai@8493 135 explicitly.
fantasai@8479 136
fantasai@8479 137 <h3 id="conventions">
fantasai@8479 138 Document conventions</h3>
ishida@1665 139
fantasai@8492 140 <p>Many typographical conventions in East Asian typography depend
fantasai@8492 141 on whether the character rendered is wide (CJK) or narrow (non-CJK).
fantasai@8492 142 There are a number of illustrations in this document
fantasai@8492 143 for which the following legend is used:
ishida@1665 144
fantasai@8492 145 <dl>
fantasai@8492 146 <dt><img alt="Symbolic wide-cell glyph representation" width="39" height="39" src="images/fullwidth.gif">
fantasai@8492 147 <dd>Wide-cell glyph (e.g. Han) that is the <var>n</var>th character in the text run.
fantasai@8492 148 They are typically sized to 50% when used as annotations.
fantasai@8492 149 <dt><img alt="Symbolic narrow-cell glyph representation" width="19" height="39" src="images/halfwidth.gif">
fantasai@8492 150 <dd>Narrow-cell glyph (e.g. Roman) which is the <var>n</var>th glyph in the text run.
fantasai@8526 151 </dl>
ishida@1665 152
fantasai@8492 153 <p>The orientation which the above symbols assume in the diagrams
fantasai@8492 154 corresponds to the orientation that the glyphs they represent
fantasai@8492 155 are intended to assume when rendered by the user agent.
fantasai@8492 156 Spacing between these characters in the diagrams is incidental,
fantasai@8492 157 unless intentionally changed to make a point.
ishida@1665 158
fantasai@8479 159 <h3 id="ruby-def">
fantasai@8479 160 What is ruby?</h3>
ishida@1665 161
fantasai@8492 162 <p><dfn>Ruby</dfn> is the commonly-used name for a run of text
fantasai@8492 163 that appears alongside another run of text (referred to as the “base”)
fantasai@8492 164 and serves as an annotation or a pronunciation guide associated with that run of text.
ishida@1665 165
fantasai@8492 166 <p>The following figures show two examples of Ruby,
fantasai@8492 167 a simple case and one with more complicated structure.
ishida@1665 168
fantasai@8492 169 <div class="example">
fantasai@8492 170 <p>In this first example, a single annotation is used to annotate the base text.
fantasai@8492 171 <div class="figure">
fantasai@8492 172 <p><img src="images/licence.png"
fantasai@8492 173 alt="Example of ruby applied on top of a Japanese expression">
fantasai@8492 174 <p class="caption">Example of ruby used in Japanese (simple case)
fantasai@8492 175 </div>
fantasai@8492 176 <p>In Japanese typography, this case is sometimes called
fantasai@8492 177 <i lang="ja">taigo</i> ruby or group-ruby (per-word ruby),
fantasai@8492 178 because the annotation as a whole is associated
fantasai@8492 179 with multi-character word (as a whole).
fantasai@8492 180 </div>
ishida@1665 181
fantasai@8492 182 <div class="example">
fantasai@8492 183 <p>In this second example,
fantasai@8492 184 two levels of annotations are attached to a base sequence:
fantasai@8492 185 the hiragana characters on top refer to the pronunciation of each of the base kanji characters,
fantasai@8492 186 while the words “Keio” and “University” on the bottom are annotations describing the English translation.
fantasai@8492 187 <div class="figure">
fantasai@8492 188 <p><img src="images/ruby-univ.gif"
fantasai@8492 189 alt="Example showing complex ruby with annotation text over and under the base characters">
fantasai@8492 190 <p class="caption">Complex ruby with annotation text over and under the base characters
fantasai@8492 191 </div>
fantasai@8492 192 <p>
fantasai@8492 193 <p>Notice that to allow correct association between the hiragana characters and
fantasai@8492 194 their corresponding Kanji base characters,
fantasai@8492 195 the spacing between these Kanji characters is adjusted.
fantasai@8492 196 (This happens around the fourth Kanji character in the figure above.)
fantasai@8492 197 To avoid variable spacing between the Kanji characters in the example above
fantasai@8492 198 the hiragana annotations can be styled as a <i>collapsed annotation</i>,
fantasai@8492 199 which will look more like the group-ruby example earlier.
fantasai@8492 200 However because the base-annotation pairings are recorded in the ruby structure,
fantasai@8492 201 if the text breaks across lines, the annotation characters will stay
fantasai@8492 202 correctly paired with their respective base characters.
fantasai@8492 203 </div>
ishida@1665 204
fantasai@8526 205 <p><i>Ruby</i> formatting as used in Japanese is described in JIS X-4051 [[JIS4051]] (in Japanese)
fantasai@8492 206 and in Requirements for Japanese Text Layout [[JLREQ]] (in English and Japanese)].
fantasai@8492 207 In HTML, ruby structure and markup to represent it is described
fantasai@8492 208 in the Ruby Markup Extension specification.
fantasai@8492 209 This module describes the CSS rendering model
fantasai@8492 210 and formatting controls relevant to ruby layout of such markup.
ishida@1665 211
fantasai@8479 212 <h2 id="ruby-model">
fantasai@8479 213 Ruby Formatting Model</h2>
ishida@1665 214
fantasai@8492 215 <p>The CSS ruby model is based on
fantasai@8492 216 the <a href="http://darobin.github.io/html-ruby/">HTML Ruby Markup Extension</a>
fantasai@8492 217 and <a href="http://www.w3.org/TR/ruby/">XHTML Ruby Annotation Recommendation</a> [[RUBY]].
fantasai@8492 218 In this model, a ruby structure consists of
fantasai@8492 219 one or more <dfn>ruby base</dfn> elements representing the base (annotated) text,
fantasai@8492 220 associated with one or more levels of <dfn>ruby annotation</dfn> elements representing the annotations.
fantasai@8492 221 The structure of ruby is similar to that of a table:
fantasai@8492 222 there are “rows” (the base text level, each annotation level)
fantasai@8492 223 and “columns” (each <i>ruby base</i> and its corresponding <i>ruby annotations</i>).
ishida@1665 224
fantasai@8492 225 <p>Consecutive bases and annotations are grouped together into <dfn>ruby segments</dfn>.
fantasai@8492 226 Within a <i>ruby segment</i>, a <i>ruby annotation</i> may span multiple <i>ruby bases<i>.
ishida@1665 227
fantasai@8492 228 <p class="note">In HTML, a single <code>&lt;ruby&gt;</code> element may contain multiple <i>ruby segments</i>.
fantasai@8492 229 (In the XHTML Ruby model, a single <code>&lt;ruby&gt;</code> element can only contain one <i>ruby segment</i>.)
ishida@1665 230
fantasai@8492 231 <h3 id="ruby-display">
fantasai@8492 232 Ruby-specific 'display' property values</h3>
ishida@1665 233
fantasai@8492 234 <p>For document languages (such as XML applications) that do not have pre-defined ruby elements,
fantasai@8492 235 authors must map document language elements to ruby elements;
fantasai@8492 236 this is done with the 'display' property.
fantasai@8492 237
fantasai@8492 238 <table class="propdef">
fantasai@8492 239 <tr>
fantasai@8492 240 <th>Name:
fantasai@8492 241 <td>display
fantasai@8492 242 <tr>
fantasai@8492 243 <th><a href="#values">New Values</a>:
fantasai@8492 244 <td>ruby | ruby-base | ruby-text | ruby-base-container | ruby-text-container
fantasai@8492 245 </table>
fantasai@8492 246
fantasai@8492 247 <p>The following new 'display' values assign ruby layout roles to an arbitrary element:
fantasai@8492 248
fantasai@8492 249 <dl>
fantasai@8492 250 <dt>''ruby''
fantasai@8504 251 <dd>Specifies that an element generates a <dfn title="ruby container | ruby container box">ruby container box</dfn>.
fantasai@8492 252 (Corresponds to HTML/XHTML <code>&lt;ruby&gt;</code> elements.)
fantasai@8492 253 <dt>''ruby-base''
fantasai@8504 254 <dd>Specifies that an element generates a <dfn title="ruby base box | ruby base">ruby base box</dfn>.
fantasai@8492 255 (Corresponds to HTML/XHTML <code>&lt;rb&gt;</code> elements.)
fantasai@8492 256 <dt>''ruby-text''
fantasai@8504 257 <dd>Specifies that an element generates a <dfn title="ruby annotation box | ruby annotation">ruby annotation box</dfn>.
fantasai@8492 258 (Corresponds to HTML/XHTML <code>&lt;rt&gt;</code> elements.)
fantasai@8492 259 <dt>''ruby-base-container''
fantasai@8504 260 <dd>Specifies that an element generates a <dfn title="ruby base container box | ruby base container">ruby base container box</dfn>.
fantasai@8492 261 (Corresponds to XHTML <code>&lt;rbc&gt;</code> elements; always implied in HTML.)
fantasai@8492 262 <dt>''ruby-text-container''
fantasai@8504 263 <dd>Specifies that an element generates a <dfn title="ruby annotation container box | ruby annotation container">ruby annotation container box</dfn>.
fantasai@8492 264 (Corresponds to HTML/XHTML <code>&lt;ruby&gt;</code> elements.)
fantasai@8492 265 </dl>
fantasai@8492 266
fantasai@8504 267 <h3 id="box-fixup">
fantasai@8504 268 Anonymous Ruby Box Generation</h3>
fantasai@8504 269
fantasai@8492 270 <p>The CSS model does not require that the document language
fantasai@8492 271 include elements that correspond to each of these components.
fantasai@8504 272 Missing parts of the structure are implied through the anonymous box generation rules
fantasai@8504 273 <a href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes">similar to those used to normalize tables</a>. [[!CSS21]]
fantasai@8492 274
fantasai@8504 275 <ol>
fantasai@8504 276 <li>Any in-flow block-level boxes directly contained by a
fantasai@8504 277 <i>ruby container</i>,
fantasai@8504 278 <i>ruby base container</i>,
fantasai@8504 279 <i>ruby annotation container</i>,
fantasai@8504 280 <i>ruby base box</i>,
fantasai@8504 281 or <i>ruby annotation box</i>
fantasai@8504 282 are forced to be inline-level boxes,
fantasai@8504 283 and their 'display' value computed accordingly.
fantasai@8504 284 For example,
fantasai@8504 285 the 'display' property of an in-flow element with ''display: block''
fantasai@8504 286 parented by an element with ''display: ruby-text''
fantasai@8504 287 computes to ''inline-block''.
fantasai@8504 288 This computation occurs after any intermediary anonymous-box fixup
fantasai@8504 289 (such as that required by internal table elements).
fantasai@8504 290
fantasai@8504 291 <li>Any consecutive sequence of <i>ruby bases</i> not parented by a <i>ruby base container</i>
fantasai@8504 292 is wrapped in an anonymous <i>ruby base container</i>.
fantasai@8504 293 Similarly, any consecutive sequence of <i>ruby annotations</i> not parented by a <i>ruby annotation container</i>
fantasai@8504 294 is wrapped in an anonymous <i>ruby annotation container</i>.
fantasai@8504 295
fantasai@8504 296 <li>Within each <i>ruby base container</i>,
fantasai@8504 297 each sequence of inline-level boxes is wrapped in an anonymous <i>ruby base box</i>.
fantasai@8504 298 Similarly, within each <i>ruby annotation container</i>,
fantasai@8504 299 each sequence of inline-level boxes is wrapped in an anonymous <i>ruby annotation box</i>.
fantasai@8504 300
fantasai@8504 301 <li>A sequence of <i>ruby base containers</i> and/or <i>ruby annotation containers</i>
fantasai@8504 302 not parented by a <i>ruby container</i>
fantasai@8504 303 is wrapped in an anonymous <i>ruby container</i>.
fantasai@8504 304 </ol>
fantasai@8504 305
fantasai@8504 306 <p>At this point, all ruby layout structures are properly parented,
fantasai@8504 307 and the UA can start to associate bases with their annotations.
fantasai@8504 308
fantasai@8504 309 <p class="note">
fantasai@8504 310 Note that the UA is not required to create any of these anonymous boxes in its internal structures,
fantasai@8504 311 as long as pairing and layout behaves as if they existed.
fantasai@8504 312
fantasai@8504 313 <h3 id="pairing">
fantasai@8504 314 Ruby Pairing and Annotation Levels</h3>
fantasai@8504 315
fantasai@8504 316 <p>Within a ruby structure,
fantasai@8504 317 each <i>ruby bases</i> are associated with <i>ruby annotations</i>
fantasai@8504 318 and vice versa.
fantasai@8504 319 A <i>ruby base</i> can be associated with at most one <i>ruby annotation</i> per annotation level.
fantasai@8504 320 If there are multiple annotation levels, it can therefore be associated with multiple <i>ruby annotations</i>.
fantasai@8504 321 A <i>ruby annotation</i> is associated with one or more <i>ruby bases</i>;
fantasai@8504 322 annotations can span multiple bases.
fantasai@8504 323
fantasai@8504 324 <p><dfn>Annotation pairing</dfn> is the process of associating
fantasai@8504 325 <i>ruby annotations</i> with <i>ruby bases</i>.
fantasai@8504 326
fantasai@8504 327 <ol>
fantasai@8504 328 <li>
fantasai@8504 329 <p>First, the ruby structure is divided into <i>ruby segments</i>,
fantasai@8504 330 each consisting of a single <i>ruby base container</i>
fantasai@8504 331 followed by one or more <i>ruby annotation containers</i>.
fantasai@8504 332 If the first child of a <i>ruby container</i> is a <i>ruby annotation container</i>,
fantasai@8504 333 an anonymous, empty <i>ruby base container</i> is assumed to exist before it.
fantasai@8504 334 Similarly, if the <i>ruby container</i> contains consecutive <i>ruby base containers</i>,
fantasai@8504 335 anonymous, empty <i>ruby annotation containers</i> are assumed to exist between them.
fantasai@8504 336 The <i>ruby base container</i> in each segment is thus associated
fantasai@8504 337 with each of the <i>ruby annotation containers</i> in that segment.
fantasai@8504 338
fantasai@8504 339 <p>Each <i>ruby annotation containers</i> in a <i>ruby segment</i>
fantasai@8504 340 represents one <dfn title="annotation level | level">level</dfn> of annotation:
fantasai@8504 341 the first one represents the first level of annotation,
fantasai@8504 342 the second one represents the second level of annotation,
fantasai@8504 343 and so on.
fantasai@8504 344
fantasai@8504 345 <li>Within each <i>ruby segment</i>,
fantasai@8504 346 each <i>ruby base box</i> in the <i>ruby base container</i>
fantasai@8504 347 is paired with one <i>ruby annotation box</i>
fantasai@8504 348 from each <i>ruby annotation container</i> in its <i>ruby segment</i>.
fantasai@8504 349 If there are not enough <i>ruby annotations</i> in a <i>ruby annotation container</i>,
fantasai@8504 350 the last one is associated with any excess <i>ruby bases</i>.
fantasai@8504 351 (If there are not any in the <i>ruby annotation container</i>, an anonymous empty one is assumed to exist.)
fantasai@8504 352 If there are not enough <i>ruby bases</i>,
fantasai@8504 353 any remaining <i>ruby annotations</i> are assumed to be associated
fantasai@8504 354 with empty, anonymous bases inserted at the end of the <i>ruby base container</i>.
fantasai@8506 355
fantasai@8506 356 <p>If an implementation supports ruby markup with explicit spanning
fantasai@8506 357 (e.g. XHTML Complex Ruby Annotations),
fantasai@8506 358 it must adjust the pairing rules to pair spanning annotations to multiple bases
fantasai@8506 359 appropriately.
fantasai@8504 360 </ol>
fantasai@8504 361
fantasai@8504 362 <p>A this point, ruby “columns” are defined,
fantasai@8504 363 each represented by a single <i>ruby base</i>
fantasai@8504 364 and associated with one <i>ruby annotation</i> (possibly an empty, anonymous one)
fantasai@8504 365 from each <i>annotation level</i>.
fantasai@8504 366
fantasai@8504 367 <h4 id="nested-pairing">
fantasai@8504 368 Nested Ruby</h4>
fantasai@8504 369
fantasai@8504 370 <p>When <i>ruby containers</i> are nested,
fantasai@8504 371 pairing begins with the deepest <i>ruby container</i>,
fantasai@8504 372 then expands out,
fantasai@8504 373 treating each <i>ruby container</i> nested within another <i>ruby container</i>
fantasai@8504 374 as a <i>ruby base</i>,
fantasai@8504 375 and associating each <i>ruby annotation</i>
fantasai@8504 376 associated with the nested <i>ruby container</i>
fantasai@8504 377 as being associated with (spanning) all of its <i>ruby bases</i>.
fantasai@8504 378
fantasai@8504 379 <p>Using nested <i>ruby containers</i> thus allows the representation
fantasai@8504 380 of complex spanning relationships.
fantasai@8504 381
fantasai@8504 382 <p class="issue">This shouldn't belong in Level 1. But HTML5 allows it, so we have to handle it. Yay HTML5.
fantasai@8504 383
fantasai@8504 384 <h3 id="box-model">
fantasai@8504 385 Generating Ruby Structure</h3>
fantasai@8504 386
fantasai@8504 387 <p>
ishida@1665 388
fantasai@8479 389 <h3 id="box-model">
fantasai@8479 390 Ruby box model</h3>
ishida@1665 391
ishida@1665 392 <p>In the following description, the elements specified by Ruby
fantasai@8479 393 Annotation [[RUBY]] are used to describe the box model. As mentioned
ishida@1665 394 earlier, a user agent can obtain the same results by using the Ruby specific 'display'
ishida@1665 395 property values. </p>
ishida@1665 396
ishida@1665 397 <p>For a user agent that supports the ruby markup, the ruby structure consists of three or more
ishida@1665 398 boxes. The outermost container is the <a
ishida@1665 399 href="http://www.w3.org/TR/ruby/#ruby"><samp>ruby</samp></a> element itself.
ishida@1665 400 In the simple case, it is a container for two non-overlapping boxes: the ruby
ishida@1665 401 text box (<a href="http://www.w3.org/TR/ruby/#rt"><samp>rt</samp></a> element)
ishida@1665 402 and the ruby base box (<a
ishida@1665 403 href="http://www.w3.org/TR/ruby/#rb"><samp>rb</samp></a> element). The
ishida@1665 404 positioning of these two boxes relative to each other is controlled by the <a
ishida@1665 405 href="#rubypos">'ruby-position'</a> property.</p>
ishida@1665 406
ishida@1665 407 <div class="figure">
ishida@1665 408 <img class="example" width="223" height="93"
ishida@1665 409 alt="Diagram of the ruby box model consisting of two boxes, one on top of the other, enclosed within a third box representing the ruby element"
ishida@1666 410 src="images/r-box-t.gif" />
ishida@1665 411
ishida@1665 412 <p><b>Figure 3.2.1</b>: Ruby box model (simple case)</p>
ishida@1665 413 </div>
ishida@1665 414
ishida@1665 415 <p>In the case of complex ruby, the ruby element is a container for two or
ishida@1665 416 three non-overlapping boxes: one ruby base collection (<a
ishida@1665 417 href="http://www.w3.org/TR/ruby/#rbc"><samp>rbc</samp></a> element), and one
ishida@1665 418 or two ruby text collections (<a
ishida@1665 419 href="http://www.w3.org/TR/ruby/#rtc"><samp>rtc</samp></a> element). The
ishida@1665 420 <samp>rbc</samp> element is itself a container for one or several ruby base
ishida@1665 421 box (<samp>rb</samp> element), while each <samp>rtc</samp> element is a
ishida@1665 422 container for one or several ruby text box (rt element). The position of the
ishida@1665 423 <samp>rtc</samp> element in relation to the related <samp>rbc</samp> element
ishida@1665 424 is controlled by the <a href="#rubypos">'ruby-position'</a> property. The two
ishida@1665 425 following figures show examples of these complex ruby.</p>
ishida@1665 426
ishida@1665 427 <div class="figure">
ishida@1666 428 <img src="images/r-box-g.gif"
ishida@1665 429 alt="Diagram of a group ruby with a full ruby text above and partial ruby text below" width="408" height="170" />
ishida@1665 430
ishida@1665 431 <p><b>Figure 3.2.2</b>: Ruby box model (complex ruby with an empty rt element
ishida@1665 432 after)</p>
ishida@1665 433 </div>
ishida@1665 434
ishida@1665 435 <p>In the example above, the ruby text after (below) the ruby bases contains two <samp>rt</samp> elements with the first one
ishida@1665 436 being empty, the empty <samp>rt</samp> element corresponds to the first part
ishida@1665 437 of the ruby base collection (the first part is identified by the first <samp>rb</samp> element
ishida@1665 438 within the <samp> rbc</samp> element).</p>
ishida@1665 439
ishida@1665 440 <div class="figure">
ishida@1666 441 <img src="images/r-box-h.gif"
ishida@1665 442 alt="Diagram of a group ruby with a spanning ruby text above and partial ruby text below" width="400" height="173" />
ishida@1665 443
ishida@1665 444 <p><b>Figure 3.2.3</b>: Ruby box model (complex ruby with a spanning ruby text
ishida@1665 445 element)</p>
ishida@1665 446 </div>
ishida@1665 447
ishida@1665 448 <p>In the example above, the ruby text before (above) the ruby bases spans the whole ruby base collection. The
ishida@1665 449 ruby text after (below) the ruby bases still contain two <samp>rt</samp> elements, one of
ishida@1665 450 which is empty. The spanning behavior of <samp>rt</samp> text elements is
ishida@1665 451 controlled by the <a
ishida@1665 452 href="http://www.w3.org/TR/ruby/#ruby"><samp>rbspan</samp></a> attribute in a
ishida@1665 453 way similar to the <samp>colspan</samp> attribute used for table column.</p>
ishida@1665 454
ishida@1665 455 <p class="issue"><span class="issuehead">Issue:&nbsp;</span> The examples above contain the term 'group ruby', which is not used elsewhere in this specification. It appears to be used in a way that is different to the use of the term in JLREQ. I propose to replace it with just 'ruby'.</p>
ishida@1665 456 <p class="note"><span class="note-label">Note:</span> The visual description of the ruby elements does not refer
ishida@1665 457 necessarily to the logical orders of the elements</p>
ishida@1665 458
ishida@1665 459 <p>The width of the ruby box is by default determined by its widest child
ishida@1665 460 element, whose width in turn is determined by its content. The width of all direct
ishida@1665 461 children of the <samp>ruby</samp> element is the width of the widest children. In this respect, the ruby
ishida@1665 462 box is much like a two or three row <samp>table</samp> element, with the
ishida@1665 463 following exceptions:</p>
ishida@1665 464 <ul>
ishida@1665 465 <li>the ruby box is an inline element, like an image, even though it itself,
ishida@1665 466 like a table, is a container of other boxes</li>
ishida@1665 467 <li>the equivalent of the cells: the <samp>rb</samp> element and the
ishida@1665 468 <samp>rt</samp> text element can only contain inline-level elements.</li>
ishida@1665 469 <li>the content of each 'cell' is always measured at its maximum width</li>
ishida@1665 470 <li>unlike a table, a ruby element doesn't have to fit in a line, the ruby
ishida@1665 471 box may be split into several boxes at line boundary, depending of the
ishida@1665 472 spanning of the ruby texts. This is however only possible for the complex
ishida@1665 473 ruby and can only happen at the boundary of non spanning elements.</li>
ishida@1665 474 <li>both the ruby text and the ruby base boxes may overlap with adjacent
ishida@1665 475 text (outside of the ruby element) if an appropriate <a
ishida@1665 476 href="#rubyover">'ruby-overhang'</a> parameter is set via CSS. Note
ishida@1665 477 however that the actual content of the ruby base cannot overlap with that
ishida@1665 478 adjacent text. The distribution of the content of the ruby base within the
ishida@1665 479 ruby base box is controlled by the <a href="#rubyalign">'ruby-align'</a>
ishida@1665 480 property.</li>
ishida@1665 481 </ul>
ishida@1665 482
ishida@1665 483 <p>If the ruby text is not allowed to overhang, then the ruby behaves like a
ishida@1665 484 traditional box, i.e. only its contents are rendered within its boundaries and
ishida@1665 485 adjacent elements do not cross the box boundary:</p>
ishida@1665 486
ishida@1665 487 <div class="figure">
ishida@1665 488 <p><img class="example" width="220" height="91"
ishida@1665 489 alt="Diagram showing the ruby boxes interacting with adjacent text"
ishida@1666 490 src="images/ro-n.gif" /></p>
ishida@1665 491
ishida@1665 492 <p><b>Figure 3.2.4</b>: Simple ruby whose text is not allowed to overhang
ishida@1665 493 adjacent text</p>
ishida@1665 494 </div>
ishida@1665 495
ishida@1665 496 <p>However, if ruby text is allowed to overhang adjacent elements and it
ishida@1665 497 happens to be wider than its base, then the adjacent content is partially
ishida@1665 498 rendered within the area of the ruby base box, while the ruby text may be
ishida@1665 499 partially overlapping with the upper blank parts of the adjacent content:</p>
ishida@1665 500
ishida@1665 501 <div class="figure">
ishida@1665 502 <p><img class="example" width="177" height="91"
ishida@1665 503 alt="Diagram showing the ruby boxes interacting with adjacent text"
ishida@1666 504 src="images/ro-a.gif" /></p>
ishida@1665 505
ishida@1665 506 <p><b>Figure 3.2.5</b>: Simple ruby whose text is allowed to overhang adjacent
ishida@1665 507 text</p>
ishida@1665 508 </div>
ishida@1665 509
ishida@1665 510 <p>The ruby text related to a ruby base can never overhang another ruby
ishida@1665 511 base.</p>
ishida@1665 512
ishida@1665 513 <p>The alignment of the contents of the base or the ruby text is not affected
ishida@1665 514 by the overhanging behavior. The alignment is achieved the same way regardless
ishida@1665 515 of the overhang behavior setting and it is computed before the space available
ishida@1665 516 for overlap is determined. It is controlled by the <a
ishida@1665 517 href="#rubyalign">'ruby-align'</a> property.</p>
ishida@1665 518
ishida@1665 519 <p>The exact circumstances in which the ruby text will overhang other
ishida@1665 520 elements, and to what degree it will do so, will be controlled by the <a
ishida@1665 521 href="#rubyover">'ruby-overhang'</a> property.</p>
ishida@1665 522
ishida@1665 523 <p>This entire logic applies the same way in vertical ideographic layout, only
ishida@1665 524 the dimension in which it works in such a layout is vertical, instead of
ishida@1665 525 horizontal.</p>
ishida@1665 526
fantasai@8479 527 <p class="note"><span class="note-label">Note:</span> Because the purpose of the XHTML <samp>rp</samp> element
fantasai@8479 528 [[RUBY]] is to allow pre-existing user agents
ishida@1665 529 to parenthesize ruby text content, an XHTML user agent should use a styling rule
ishida@1665 530 for these elements that avoids rendering them such as&nbsp; <samp>rp {display:
ishida@1665 531 none}</samp>.</p>
ishida@1665 532
fantasai@8479 533 <h3 id="ruby-line-height">
fantasai@8479 534 Ruby box and line stacking</h3>
ishida@1665 535
ishida@1665 536 <p>The interaction of the ruby box and line stacking is controlled by the
ishida@1665 537 'line-stacking-ruby' property described in the CSS3 Line Module. That property
ishida@1665 538 takes two values: 'include-ruby' and 'exclude-ruby. Depending on the property
ishida@1665 539 value, the ruby box is considered or excluded for line stacking. Even if the
ishida@1665 540 ruby box is considered for line stacking, some values of the
ishida@1665 541 'line-stacking-strategy' property (also described in the CSS3 Line module) can
ishida@1665 542 still create occurrences where a the ruby box will eventually be ignored (e.g.
ishida@1665 543 case where the 'line-stacking-strategy' value is 'block-line-height').</p>
ishida@1665 544
ishida@1665 545 <p>In the following figure, each line box is shown with leading space
ishida@1665 546 distributed before and after the two text segments ('Previous line' and 'Ruby
ishida@1665 547 base'); the dotted lines show the line box for each line. The
ishida@1665 548 'line-stacking-ruby' property is set to 'exclude-ruby'. The achieved effect is
ishida@1665 549 that the ruby box does not affect the line to line spacing. It is however the
ishida@1665 550 responsibility of the style author to avoid 'bleeding' effects between the ruby
ishida@1665 551 text and the surrounding text of images.</p>
ishida@1665 552
ishida@1665 553 <div class="figure">
ishida@1665 554 <p>
ishida@1665 555 <img class="example"
ishida@1665 556 alt="Diagram showing the ruby text using 2 half leading"
ishida@1666 557 src="images/rlh-a.gif" width="210" height="138" /></p>
ishida@1665 558
ishida@1665 559 <p><b>Figure 3.3.1</b>: Excluded Ruby text</p>
ishida@1665 560 </div>
ishida@1665 561
ishida@1665 562
ishida@1665 563 <p>In the following figure, the line boxes have no extra leading space. The
ishida@1665 564 'line-stacking-ruby' property is set to 'include-ruby' and the
ishida@1665 565 'line-stacking-strategy' property is set to a value where inline boxes are
ishida@1665 566 considered for line stacking. In this case, the line box with
ishida@1665 567 the ruby text is affected and has its 'stack-height' increased by the amount
ishida@1665 568 necessary to fit the ruby text.</p>
ishida@1665 569
ishida@1665 570 <div class="figure">
ishida@1665 571 <p>
ishida@1665 572 <img class="example"
ishida@1665 573 alt="Diagram showing the ruby text expanding above base text"
ishida@1666 574 src="images/rlh-b.gif" width="210" height="111" /></p>
ishida@1665 575
ishida@1665 576 <p><b>Figure 3.3.2</b>: Ruby text increasing line height</p>
ishida@1665 577 </div>
ishida@1665 578 <p>This mechanism allows rendering of evenly spaced lines of text within a
ishida@1665 579 block-level element, whether a line contains ruby or not. The authors need
ishida@1665 580 only to set for the block-level element a line height value larger than the
ishida@1665 581 computed line-height of the largest ruby element within the block.</p>
ishida@1665 582
fantasai@8479 583 <h3 id="ruby-line-breaking">
fantasai@8479 584 Ruby box and line breaking</h3>
ishida@1665 585
ishida@1665 586 <p>When a ruby falls at the end of a line where there is not sufficient room for the entire ruby to fit on the line, the complex ruby may be broken at locations where boxes of the ruby container align. Some examples are provided below to provide more clarity.</p>
ishida@1665 587
ishida@1665 588 <p>
ishida@1665 589 <img class="example"
ishida@1665 590 alt="Diagram showing the line breaking opportunity in a complex ruby"
ishida@1666 591 src="images/r-break-a.gif" width="408" height="201" /></p>
ishida@1665 592
ishida@1665 593 <p><b>Figure 3.4.1</b>: Complex ruby line breaking opportunity</p>
ishida@1665 594
ishida@1665 595 <p>
ishida@1665 596 <img class="example"
ishida@1665 597 alt='Diagram showing the line breaking opportunity in a "Bopomofo" ruby'
ishida@1666 598 src="images/r-break-b.gif" width="300" height="90" /></p>
ishida@1665 599
ishida@1665 600 <p><b>Figure 3.4.1</b>: "Bopomofo" ruby line breaking opportunity</p>
ishida@2228 601 <p class="issue"><span class="issuehead">Issue:&nbsp;</span> Line breaks should only be allowed within ruby if the ruby base text can be broken at that point. E.g. if complex Ruby is used to annotate the two morphemes of &quot;butterfly&quot;, the fact that we have added ruby annotations should not cause a line breaking opportunity to be present between &quot;butter&quot; and &quot;fly&quot; </p>
fantasai@8479 602 <h2 id="ruby-props">
fantasai@8479 603 Ruby Properties</h2>
ishida@1665 604
fantasai@8526 605 <p>The following properties are introduced to control ruby positioning and alignment.
fantasai@8526 606
fantasai@8479 607 <h3 id="rubypos">
fantasai@8479 608 Ruby positioning: the 'ruby-position' property</h3>
ishida@1665 609
kojiishi@8496 610 <table class="propdef">
kojiishi@8496 611 <tr>
kojiishi@8496 612 <th>Name:
kojiishi@8496 613 <td><dfn>ruby-position</dfn>
kojiishi@8496 614 <tr>
kojiishi@8496 615 <th><a href="#values">Value</a>:
kojiishi@8496 616 <td>[ over | under | inter-character ] && [ right | left ]
kojiishi@8496 617 <tr>
kojiishi@8496 618 <th>Initial:
kojiishi@8496 619 <td>over right
kojiishi@8496 620 <tr>
kojiishi@8496 621 <th>Applies to:
fantasai@8526 622 <td>ruby annotation containers
kojiishi@8496 623 <tr>
kojiishi@8496 624 <th>Inherited:
kojiishi@8496 625 <td>yes
kojiishi@8496 626 <tr>
kojiishi@8496 627 <th>Percentages:
kojiishi@8496 628 <td>N/A
kojiishi@8496 629 <tr>
kojiishi@8496 630 <th>Media:
kojiishi@8496 631 <td>visual
kojiishi@8496 632 <tr>
kojiishi@8496 633 <th>Computed value:
fantasai@8526 634 <td>specified value
kojiishi@8496 635 <tr>
kojiishi@8496 636 <th>Animatable:
kojiishi@8496 637 <td>no
kojiishi@8496 638 <tr>
kojiishi@8496 639 <th>Canonical order:
kojiishi@8496 640 <td><abbr title="follows order of property value definition">per grammar</abbr>
kojiishi@8496 641 </table>
fantasai@8526 642
fantasai@8526 643 <p>This property controls position of the ruby text with respect to its base.
fantasai@8526 644 Values have the following meanings:
fantasai@8526 645
kojiishi@8496 646 <p class="issue"><span class="issuehead">Issue-107:&nbsp;</span> Roland Steiner has requested the addition of an auto value as default. See <a href="http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&amp;hdr-1-name=subject&amp;hdr-1-query=ruby-position%3A+undesirable+default+value+%27before%27+for+complex+ruby&amp;hdr-2-name=from&amp;hdr-2-query=&amp;hdr-3-name=message-id&amp;hdr-3-query=&amp;period_month=&amp;period_year=&amp;index-grp=Public__FULL&amp;index-type=t&amp;type-index=www-style&amp;resultsperpage=20&amp;sortby=date">this thread</a> and <a href="http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&amp;hdr-1-name=subject&amp;hdr-1-query=Styling+of+complex+Ruby&amp;hdr-2-name=from&amp;hdr-2-query=&amp;hdr-3-name=message-id&amp;hdr-3-query=&amp;period_month=&amp;period_year=&amp;index-grp=Public__FULL&amp;index-type=t&amp;type-index=public-i18n-core&amp;resultsperpage=20&amp;sortby=date">this one</a>.</p>
kojiishi@8496 647 <dl>
fantasai@8526 648 <dt><dfn title="ruby-position:over">''over''</dfn>
fantasai@8526 649 <dd>The ruby text appears <i>over</i> the base in horizontal text.
ishida@1665 650
kojiishi@8496 651 <div class="figure">
fantasai@8526 652 <p><img src="images/shinkansen-top.gif"
fantasai@8526 653 alt="Diagram of ruby glyph layout in horizontal mode with ruby text appearing above the base">
fantasai@8526 654 <p class="caption">Ruby over Japanese base text in horizontal layout
kojiishi@8496 655 </div>
kojiishi@8496 656 </dd>
ishida@1665 657
fantasai@8526 658 <dt><dfn title="ruby-position:right">''right''</dfn>
kojiishi@8496 659 <dd>The ruby text appears on the right side of the base in vertical text.
kojiishi@8496 660 <div class="figure">
fantasai@8526 661 <p><img src="images/shinkansen-right.gif" width="33"
fantasai@8526 662 alt="Diagram of ruby glyph layout in vertical mode with ruby text apearing vertically on the right of the base">
fantasai@8526 663 <p class="caption">Ruby to the right of Japanese base text in vertical layout
kojiishi@8496 664 </div>
kojiishi@8496 665 </dd>
ishida@1665 666
fantasai@8526 667 <dt><dfn title="ruby-position:under">''under''</dfn>
kojiishi@8496 668 <dd>The ruby text appears under the base in horizontal text.
kojiishi@8496 669 This is a relatively rare setting used in ideographic East Asian writing systems,
kojiishi@8496 670 most easily found in educational text.
ishida@1665 671
kojiishi@8496 672 <div class="figure">
fantasai@8526 673 <p><img src="images/shinkansen-bottom.gif"
fantasai@8526 674 alt="Diagram of ruby glyph layout in horizontal mode with ruby text appearing below the base">
fantasai@8526 675 <p class="caption">Ruby under Japanese base text in horizontal layout
kojiishi@8496 676 </div>
kojiishi@8496 677 </dd>
ishida@1665 678
fantasai@8526 679 <dt><dfn title="ruby-position:left">''left''</dfn>
kojiishi@8496 680 <dd>The ruby text appears on the left side of the base in vertical text.
kojiishi@8496 681
kojiishi@8496 682 <div class="figure">
fantasai@8526 683 <p><img src="images/shinkansen-left.gif"
fantasai@8526 684 alt="Diagram of ruby glyph layout in vertical mode with ruby text apearing vertically on the left of the base">
fantasai@8526 685 <p class="caption">Ruby to the left of Japanese base text in vertical layout
kojiishi@8496 686 </div>
kojiishi@8496 687 </dd>
kojiishi@8496 688
kojiishi@8496 689 <dt><dfn title="ruby-position:inter-character">''inter-character''</dfn></dt>
kojiishi@8496 690 <dd>
kojiishi@8496 691 <p>The ruby text appears on the right of the base in horizontal text.
fantasai@8526 692 This value forces the 'writing-mode' of the <i>ruby annotation</i> to be vertical.
fantasai@8526 693
fantasai@8526 694 <p>This value is provided for the special case of traditional Chinese
fantasai@8526 695 as used especially in Taiwan:
fantasai@8526 696 ruby (made of <a href="#g-bopomofo">bopomofo</a> glyphs) in that context
fantasai@8526 697 appears vertically along the right side of the base glyph,
fantasai@8526 698 even when the layout of the base characters is horizontal:
kojiishi@8496 699
kojiishi@8496 700 <div class="figure">
fantasai@8526 701 <p><img src="images/bopomofo.gif"
fantasai@8526 702 alt="Example of Taiwanese-style ruby">
fantasai@8526 703 <p class="caption">“Bopomofo” ruby in traditional Chinese
fantasai@8526 704 (ruby text shown in blue for clarity) in horizontal layout
kojiishi@8496 705 </div>
fantasai@8526 706 <p class="note">
fantasai@8526 707 Note that the user agent is responsible for ensuring the correct relative alignment and positioning of the glyphs,
fantasai@8526 708 including those corresponding to the tone marks, when displaying.
fantasai@8526 709 Tone marks are spacing characters that occur (in memory) at the end of the ruby text for each base character.
fantasai@8526 710 They are usually displayed in a separate column to the right of the bopomofo characters,
fantasai@8526 711 and the height of the tone mark depends on the number of characters in the syllable.
fantasai@8526 712 One tone mark, however, is placed above the bopomofo, not to the right of it.
kojiishi@8496 713 <!-- See Taiwanese requirements doc for EPUB at http://epub-revision.googlecode.com/files/EGLS_TW_eng.ppt -->
kojiishi@8496 714 </dd>
kojiishi@8496 715 </dl>
ishida@1665 716
fantasai@8526 717 <p>If multiple <i>ruby annotation containers</i> have the same 'ruby-position',
fantasai@8526 718 they stack along the block axis,
fantasai@8526 719 with lower levels of annotation closer to the base text.
ishida@1665 720
fantasai@8526 721 <h3 id="collapsed-ruby">
fantasai@8526 722 Collapsed Ruby Annotations: the 'ruby-merge' property</h3>
kojiishi@8499 723
kojiishi@8499 724 <table class="propdef">
kojiishi@8499 725 <tr>
kojiishi@8499 726 <th>Name:
kojiishi@8499 727 <td><dfn>ruby-merge</dfn>
kojiishi@8499 728 <tr>
kojiishi@8499 729 <th><a href="#values">Value</a>:
kojiishi@8499 730 <td>separate | collapse | auto
kojiishi@8499 731 <tr>
kojiishi@8499 732 <th>Initial:
kojiishi@8499 733 <td>separate
kojiishi@8499 734 <tr>
kojiishi@8499 735 <th>Applies to:
fantasai@8526 736 <td>ruby annotation containers
fantasai@8526 737 <tr>
fantasai@8526 738 <th>Inherited:
fantasai@8526 739 <td>yes
fantasai@8526 740 <tr>
fantasai@8526 741 <th>Percentages:
fantasai@8526 742 <td>N/A
fantasai@8526 743 <tr>
fantasai@8526 744 <th>Media:
fantasai@8526 745 <td>visual
fantasai@8526 746 <tr>
fantasai@8526 747 <th>Computed value:
fantasai@8526 748 <td>specified value
fantasai@8526 749 <tr>
fantasai@8526 750 <th>Animatable:
fantasai@8526 751 <td>no
fantasai@8526 752 <tr>
fantasai@8526 753 <th>Canonical order:
fantasai@8526 754 <td><abbr title="follows order of property value definition">per grammar</abbr>
fantasai@8526 755 </table>
fantasai@8526 756
fantasai@8526 757 <p>
fantasai@8526 758 This property controls how ruby annotation boxes should be rendered
fantasai@8526 759 when there are more than one in a ruby container box.
fantasai@8526 760
fantasai@8526 761 <p>Possible values:</p>
fantasai@8526 762 <dl>
fantasai@8526 763 <dt><dfn title="ruby-merge:separate">''separate''</dfn>
fantasai@8526 764 <dd>
fantasai@8526 765 <p>
fantasai@8526 766 Each ruby annotation box is rendered in the same column(s) as its corresponding base box(es).
fantasai@8526 767 This style is called “mono ruby” in [[JLREQ]].
fantasai@8526 768
fantasai@8526 769 <div class="example">
fantasai@8526 770 <p>For example, the following two markups render the same:
fantasai@8526 771 <pre>&lt;ruby&gt;無&lt;rt&gt;む&lt;/ruby&gt;&lt;ruby&gt;常&lt;rt&gt;じょう&lt;/ruby&gt;</pre>
fantasai@8526 772 <p>and:
fantasai@8526 773 <pre>&lt;ruby style="ruby-merge:separate"&gt;&lt;rb&gt;無&lt;rb&gt;常&lt;rt&gt;む&lt;rt&gt;じょう&lt;/ruby&gt;</pre>
fantasai@8526 774 </div>
fantasai@8526 775 </dd>
fantasai@8526 776
fantasai@8526 777 <dt><dfn title="ruby-merge:collapse">''collapse''</dfn>
fantasai@8526 778 <dd>
fantasai@8526 779 <p>
fantasai@8526 780 All <i>ruby annotation boxes</i> within the same <i>ruby segment</i> on the same line are concatenated,
fantasai@8526 781 and laid out as if their contents belonged to a single <i>ruby annotation box</i>
fantasai@8526 782 spanning all their associated <i>ruby base boxes.
fantasai@8526 783 This style renders similar to “group ruby” in [[JLREQ]],
fantasai@8526 784 except that <i>ruby annotations</i> are kept together with their respective <i>ruby bases</i> when breaking lines.
fantasai@8526 785 </p>
fantasai@8526 786
fantasai@8526 787 <div class="example">
fantasai@8526 788 <p>The following two markups render the same both characters fit on one line:
fantasai@8526 789 <pre>&lt;ruby&gt;無常&lt;rt&gt;むじょう&lt;/ruby&gt;</pre>
fantasai@8526 790 <p>and:
fantasai@8526 791 <pre>&lt;ruby style="ruby-merge:collapse"&gt;&lt;rb&gt;無&lt;rb&gt;常&lt;rt&gt;む&lt;rt&gt;じょう&lt;/ruby&gt;</pre>
fantasai@8526 792 <p>However, the second one renders the same as ''ruby-position: separate''
fantasai@8526 793 when the two bases are split across lines.
fantasai@8526 794 </div>
fantasai@8526 795 </dd>
fantasai@8526 796
fantasai@8526 797 <dt><dfn title="ruby-merge:auto">''auto''</dfn></dt>
fantasai@8526 798 <dd>
fantasai@8526 799 <p>
fantasai@8526 800 The user agent may use any algorithm to determine how each ruby annotation box
fantasai@8526 801 is rendered to its corresponding base box.
fantasai@8526 802 <div class="example">
fantasai@8526 803 <p>
fantasai@8526 804 One possible algorithm is described as Jukugo-ruby in [[JLREQ]].
fantasai@8526 805 <p>
fantasai@8526 806 Another, more simplified algorithm of Jukugo-ruby is
fantasai@8526 807 to render as Mono-ruby if all ruby annotation boxes fit within
fantasai@8526 808 advances of their corresponding base boxes,
fantasai@8526 809 and render as Group-ruby otherwise.
fantasai@8526 810 </p>
fantasai@8526 811 </div>
fantasai@8526 812 </dd>
fantasai@8526 813 </dl>
fantasai@8526 814
fantasai@8526 815 <h3 id="rubyalign">
fantasai@8526 816 Ruby Text Distribution: the 'ruby-align' property</h3>
fantasai@8526 817
fantasai@8526 818 <table class="propdef">
fantasai@8526 819 <tr>
fantasai@8526 820 <th>Name:
fantasai@8526 821 <td><dfn>ruby-align</dfn>
fantasai@8526 822 <tr>
fantasai@8526 823 <th><a href="#values">Value</a>:
fantasai@8526 824 <td>auto | start | center |
fantasai@8526 825 distribute-letter | distribute-space
fantasai@8526 826 <tr>
fantasai@8526 827 <th>Initial:
fantasai@8526 828 <td>auto
fantasai@8526 829 <tr>
fantasai@8526 830 <th>Applies to:
fantasai@8526 831 <td>ruby bases, ruby annotations, ruby base containers, ruby annotation containers
kojiishi@8499 832 <tr>
kojiishi@8499 833 <th>Inherited:
kojiishi@8499 834 <td>yes
kojiishi@8499 835 <tr>
kojiishi@8499 836 <th>Percentages:
kojiishi@8499 837 <td>N/A
kojiishi@8499 838 <tr>
kojiishi@8499 839 <th>Media:
kojiishi@8499 840 <td>visual
kojiishi@8499 841 <tr>
kojiishi@8499 842 <th>Computed value:
kojiishi@8499 843 <td>specified value (except for initial and inherit)
kojiishi@8499 844 </table>
kojiishi@8499 845
fantasai@8526 846 <p>This property specifies how text is distributed within the various ruby boxes
fantasai@8526 847 when their text contents exactly fill their respective boxes.
kojiishi@8499 848
fantasai@8526 849 <p>Values have the following meanings:
kojiishi@8496 850 <p class="issue"><span class="issuehead">Issue:&nbsp;</span> Tony Graham has <a href="http://www.w3.org/Style/XSL/Group/FO/wiki/Ruby#Treat_CSS3_.22ruby-align.22_As_Shorthand.3F">suggested </a>that distribute-letter and distribute-space be values of a ruby-group-distribution property, and line-edge be moved to a ruby-alignment-edge property, and that the rest be gathered under a ruby-alignment property. And that ruby-align become a shorthand.</p>
kojiishi@8496 851 <dl>
kojiishi@8496 852 <dt><dfn title="ruby-align:auto">''auto''</dfn></dt>
kojiishi@8496 853 <dd>
kojiishi@8496 854 <p>The user agent determines how the ruby contents are aligned.
kojiishi@8496 855 This is the initial value.
kojiishi@8496 856 The behavior recommended by [[JLREQ]] is for wide-cell ruby to be aligned in the 'distribute-space' mode:
kojiishi@8496 857 <div class="figure">
kojiishi@8496 858 <p><img width="145" height="91"
kojiishi@8496 859 alt="Diagram of glyph layout in auto aligned ruby when ruby text is shorter than base"
kojiishi@8496 860 src="images/ra-ds.gif" /><img width="145" height="91"
kojiishi@8496 861 alt="Diagram of glyph layout in auto aligned ruby when ruby text is longer than base"
kojiishi@8496 862 src="images/ra-ds-rb.gif" /></p>
kojiishi@8496 863 <p><b>Figure 4.2.1</b>: Wide-cell text in 'auto' ruby alignment is
kojiishi@8496 864 'distribute-space' justified</p>
kojiishi@8496 865 </div>
ishida@1665 866
kojiishi@8496 867 <p>The recommended behavior for narrow-cell glyph ruby is to be
kojiishi@8496 868 aligned in the 'center' mode.</p>
kojiishi@8496 869 <div class="figure">
kojiishi@8496 870 <p><img
kojiishi@8496 871 alt="Diagram of glyph layout in auto aligned ruby when halfwidth ruby text is shorter than base"
kojiishi@8496 872 width="145" height="91"
kojiishi@8496 873 src="images/ra-c-h.gif" /><img
kojiishi@8496 874 alt="Diagram of character layout in auto aligned ruby when ruby text is longer than narrow-width base"
kojiishi@8496 875 width="145" height="91"
kojiishi@8496 876 src="images/ra-c-rb-h.gif" /></p>
kojiishi@8496 877 <p><b>Figure 4.2.2</b>: Narrow-width ruby text in 'auto' ruby alignment
kojiishi@8496 878 is centered</p>
kojiishi@8496 879 </div>
kojiishi@8496 880 </dd>
ishida@1665 881
kojiishi@8496 882 <dt><dfn title="ruby-align:start">''start''</dfn></dt>
fantasai@8526 883 <dd>The ruby annotation content is aligned with the start edge of the base.
kojiishi@8496 884 <div class="figure">
kojiishi@8496 885 <p><img
kojiishi@8496 886 alt="Diagram of glyph layout in left aligned ruby when ruby text is shorter than base"
kojiishi@8496 887 width="145" height="91" src="images/ra-l.gif" /><img
kojiishi@8496 888 width="145" height="91"
kojiishi@8496 889 alt="Diagram of glyph layout in left aligned ruby when ruby text is longer than base"
kojiishi@8496 890 src="images/ra-l-rb.gif" /></p>
kojiishi@8496 891 <p><b>Figure 4.2.3</b>: Start ruby alignment</p>
kojiishi@8496 892 </div>
kojiishi@8496 893 </dd>
kojiishi@8496 894
kojiishi@8496 895 <dt><dfn title="ruby-align:center">''center''</dfn></dt>
kojiishi@8496 896 <dd>The ruby text content is centered within the width of the base. If the
kojiishi@8496 897 length of the base is smaller than the length of the ruby text, then the
kojiishi@8496 898 base is centered within the width of the ruby text.
kojiishi@8496 899
kojiishi@8496 900 <div class="figure">
kojiishi@8496 901 <p><img width="145" height="91"
kojiishi@8496 902 alt="Diagram of glyph layout in center aligned ruby when ruby text is shorter than base"
kojiishi@8496 903 src="images/ra-c.gif" /><img width="145" height="91"
kojiishi@8496 904 alt="Diagram of glyph layout in center aligned ruby when ruby text is longer than base"
kojiishi@8496 905 src="images/ra-c-rb.gif" /></p>
kojiishi@8496 906 <p><b>Figure 4.2.4</b>: Center ruby alignment</p>
kojiishi@8496 907 </div>
kojiishi@8496 908 </dd>
kojiishi@8496 909
kojiishi@8496 910 <!--
ishida@1665 911 <dt><strong>right</strong></dt>
ishida@1665 912 <dd>The ruby text content is aligned with the end edge of the base.
ishida@3034 913 <p class="issue"><span class="issuehead">Issue:&nbsp;</span> The i18n WG feels that end and right should not be synonymous, and proposed to drop right (there is no left/right in overhang)? See <a href="http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&amp;hdr-1-name=subject&amp;hdr-1-query=[CSS3+Ruby]%20left/start+and+right/end&amp;hdr-2-name=from&amp;hdr-2-query=&amp;hdr-3-name=message-id&amp;hdr-3-query=&amp;index-grp=Member__FULL+Public__FULL&amp;index-type=t&amp;type-index=public-i18n-core%40w3.org&amp;resultsperpage=20&amp;sortby=date">this thread</a>.</p>
ishida@1665 914 <div class="figure">
ishida@1665 915 <p><img class="example" width="145" height="91"
ishida@1665 916 alt="Diagram of glyph layout in right aligned ruby when ruby text is shorter than base"
ishida@1666 917 src="images/ra-r.gif" /><img class="example" width="145" height="91"
ishida@1665 918 alt="Diagram of glyph layout in right aligned ruby when ruby text is longer than base"
ishida@1666 919 src="images/ra-r-rb.gif" /></p>
ishida@1665 920 <p><b>Figure 4.2.5</b>: End ruby alignment</p>
ishida@1665 921 </div>
ishida@1665 922 </dd>
kojiishi@8496 923 -->
ishida@1665 924
kojiishi@8496 925 <dt><dfn title="ruby-align:distribute-letter">''distribute-letter''</dfn></dt>
kojiishi@8496 926 <dd>If the width of the ruby text is smaller than that of the base, then
kojiishi@8496 927 the ruby text contents are evenly distributed across the width of the
kojiishi@8496 928 base, with the first and last ruby text glyphs lining up with the
kojiishi@8496 929 corresponding first and last base glyphs. If the width of the ruby text
kojiishi@8496 930 is at least the width of the base, then the letters of the base are
kojiishi@8496 931 evenly distributed across the width of the ruby text.
kojiishi@8496 932
kojiishi@8496 933 <div class="figure">
kojiishi@8496 934 <p><img width="145" height="91"
kojiishi@8496 935 alt="Diagram of glyph layout in distribute-letter aligned ruby when ruby text is shorter than base"
kojiishi@8496 936 src="images/ra-dl.gif" /><img width="145" height="91"
kojiishi@8496 937 alt="Diagram of glyph layout in distribute-letter aligned ruby when ruby text is longer than base"
kojiishi@8496 938 src="images/ra-dl-rb.gif" /></p>
kojiishi@8496 939 <p><b>Figure 4.2.6</b>: Distribute-letter ruby alignment</p>
kojiishi@8496 940 </div>
kojiishi@8496 941 </dd>
kojiishi@8496 942
kojiishi@8496 943 <dt><dfn title="ruby-align:distribute-space">''distribute-space''</dfn></dt>
kojiishi@8496 944 <dd>If the width of the ruby text is smaller than that of the base, then
kojiishi@8496 945 the ruby text contents are evenly distributed across the width of the
kojiishi@8496 946 base, with a certain amount of white space preceding the first and
kojiishi@8496 947 following the last character in the ruby text. That amount of white
kojiishi@8496 948 space is normally equal to half the amount of inter-character space of
kojiishi@8496 949 the ruby text. If the width of the ruby text is at least the width of
kojiishi@8496 950 the base, then the same type of space distribution applies to the base.
kojiishi@8496 951 In other words, if the base is shorter than the ruby text, the base is
kojiishi@8496 952 distribute-space aligned. This type of alignment
kojiishi@8496 953 is described by [[JLREQ]].
kojiishi@8496 954
kojiishi@8496 955 <div class="figure">
kojiishi@8496 956 <p><img width="145" height="91"
kojiishi@8496 957 alt="Diagram of glyph layout in distribute-space aligned ruby when ruby text is shorter than base"
kojiishi@8496 958 src="images/ra-ds.gif" /><img width="145" height="91"
kojiishi@8496 959 alt="Diagram of glyph layout in distribute-space aligned ruby when ruby text is longer than base"
kojiishi@8496 960 src="images/ra-ds-rb.gif" /></p>
kojiishi@8496 961 <p><b>Figure 4.2.7</b>: Distribute-space ruby alignment</p>
kojiishi@8496 962 </div>
kojiishi@8496 963 </dd>
kojiishi@8496 964
kojiishi@8496 965 <!--
ishida@1665 966 <dt><strong>line-edge</strong></dt>
ishida@1665 967 <dd>If the ruby text is not adjacent to a line edge, it is aligned as in
ishida@1665 968 'auto'. If it is adjacent to a line edge, then it is still aligned as in
ishida@1665 969 auto, but the side of the ruby text that touches the end of the line is
ishida@1665 970 lined up with the corresponding edge of the base. This type of alignment
fantasai@8479 971 is described by [[JLREQ]]. This type of alignment is
ishida@1665 972 relevant only to the scenario where the ruby text is longer than the
ishida@1665 973 ruby base. In the other scenarios, this is just 'auto'.
ishida@1665 974 <div class="figure">
ishida@1665 975 <p><img class="example" width="146" height="109"
ishida@1665 976 alt="Diagram of glyph layout in line-edge aligned ruby when ruby text is shorter than base"
ishida@1666 977 src="images/ra-le-l.gif" /><img class="example" width="146"
ishida@1665 978 height="110"
ishida@1665 979 alt="Diagram of glyph layout in line-edge aligned ruby when ruby text is longer than base"
ishida@1666 980 src="images/ra-le-r.gif" /></p>
ishida@1665 981 <p><b>Figure 4.2.8</b>: Line edge ruby alignment</p>
ishida@1665 982 </div>
ishida@1665 983 </dd>
kojiishi@8496 984 -->
kojiishi@8496 985 </dl>
ishida@1665 986
kojiishi@8496 987 <p>For a complex ruby with spanning elements, one additional consideration is
kojiishi@8496 988 required. If the spanning element spans multiple 'rows' (other rbc or rtc
kojiishi@8496 989 elements), and the ruby alignment requires space distribution among the
kojiishi@8496 990 'spanned' elements, a ratio must be determined among the 'columns' of spanned
kojiishi@8496 991 elements. This ratio is computed by taking into consideration the widest
kojiishi@8496 992 element within each column.</p>
ishida@1665 993
kojiishi@8502 994 <h2 id="rubyover">
kojiishi@8502 995 Ruby Overhang and Edge Effects</h2>
kojiishi@8502 996
kojiishi@8502 997 <p>
kojiishi@8502 998 When <i>ruby annotation box</i> is longer than its corresponding <i>ruby base box</i>,
kojiishi@8502 999 the <i>ruby annotation box</i> may partially overhang adjacent boxes.
kojiishi@8502 1000 </p>
kojiishi@8502 1001 <p>
kojiishi@8502 1002 This level of the specificaiton does not define
kojiishi@8503 1003 how much the overhang may be allowed, and under what conditions.
kojiishi@8502 1004 </p>
kojiishi@8502 1005 <div class="example">
kojiishi@8502 1006 <p>
kojiishi@8502 1007 The user agent may use [[JIS4051]] recommendation of
kojiishi@8502 1008 using one ruby text character length as the maximum overhang length.
kojiishi@8502 1009 Detailed rules for how ruby text can overhang adjacent characters for Japanese are described by [[JLREQ]].
kojiishi@8502 1010 </p>
kojiishi@8502 1011 </div>
kojiishi@8502 1012
kojiishi@8502 1013 <p>
kojiishi@8502 1014 When such <i>ruby annotation box</i> is at the start or end edge of a line,
kojiishi@8502 1015 user agent may align the side of the ruby text that touches the edge of the line
kojiishi@8502 1016 to the corresponding edge of the base.
kojiishi@8502 1017 This type of alignment is described by [[JLREQ]].
kojiishi@8502 1018 </p>
kojiishi@8502 1019 <p>
kojiishi@8502 1020 This level of the specificaiton does not provide a mechanism to control this behavior.
kojiishi@8502 1021 </p>
kojiishi@8502 1022 <div class="figure">
kojiishi@8502 1023 <p><img width="146" height="109"
kojiishi@8502 1024 alt="Diagram of glyph layout in line-edge aligned ruby when ruby text is shorter than base"
kojiishi@8502 1025 src="images/ra-le-l.gif" /><img width="146"
kojiishi@8502 1026 height="110"
kojiishi@8502 1027 alt="Diagram of glyph layout in line-edge aligned ruby when ruby text is longer than base"
kojiishi@8502 1028 src="images/ra-le-r.gif" /></p>
kojiishi@8502 1029 <p><b>Figure 4.2.8</b>: Line edge ruby alignment</p>
kojiishi@8502 1030 </div>
kojiishi@8502 1031
kojiishi@8496 1032 <!--
fantasai@8479 1033 <h3 id="rubyover">
fantasai@8479 1034 Ruby overhanging: the 'ruby-overhang' property</h3>
ishida@1665 1035
fantasai@8479 1036 <table class="propdef">
fantasai@8479 1037 <tr>
fantasai@8479 1038 <th>Name:
fantasai@8479 1039 <td><dfn>ruby-overhang</dfn>
fantasai@8479 1040 <tr>
fantasai@8479 1041 <th>Value:
fantasai@8479 1042 <td>auto | start | end | none
fantasai@8479 1043 <tr>
fantasai@8479 1044 <th>Initial:
fantasai@8479 1045 <td>none
fantasai@8479 1046 <tr>
fantasai@8479 1047 <th>Applies to:
fantasai@8479 1048 <td>the parent of elements with display: ruby-text
fantasai@8479 1049 <tr>
fantasai@8479 1050 <th>Inherited:
fantasai@8479 1051 <td>yes
fantasai@8479 1052 <tr>
fantasai@8479 1053 <th>Percentages:
fantasai@8479 1054 <td>N/A
fantasai@8479 1055 <tr>
fantasai@8479 1056 <th>Media:
fantasai@8479 1057 <td>visual
fantasai@8479 1058 <tr>
fantasai@8479 1059 <th>Computed value:
fantasai@8479 1060 <td>specified value (except for initial and inherit)
fantasai@8479 1061 </table>
ishida@1665 1062
ishida@1665 1063 <p>This property determines whether, and on which side, ruby text is allowed
ishida@1665 1064 to partially overhang any adjacent text in addition to its own base, when the
ishida@1665 1065 ruby text is wider than the ruby base. Note that ruby text is never allowed to
ishida@1665 1066 overhang glyphs belonging to another ruby base. <span class="issue"><span class="issuehead">Issue:&nbsp;</span> This rule must be broken if we are to allow support for jukugo ruby.</span> Also the user agent is free to assume
ishida@1665 1067 a maximum amount by which ruby text may overhang adjacent text. The user agent may use
fantasai@8479 1068 the [[JIS4051]] recommendation of using one ruby text character
fantasai@8479 1069 length as the maximum overhang length. Detailed rules for how ruby text can overhang adjacent characters for Japanese are described by [[JLREQ]].</p>
ishida@1665 1070
ishida@1665 1071 <p>Possible values:</p>
ishida@1665 1072 <dl>
ishida@1665 1073 <dt><strong>auto</strong></dt>
fantasai@8479 1074 <dd>The ruby text can overhang text adjacent to the base on either side. [[JLREQ]] and [[JIS4051]] specify the categories of characters that
ishida@3034 1075 ruby text can overhang. The user agent is free to follow those recommendations or specify its own classes of
ishida@1665 1076 characters to overhang. This is the initial value.
ishida@1665 1077 <div class="figure">
ishida@1665 1078 <p><img class="example" width="177" height="91"
ishida@1666 1079 alt="Diagram of glyph layout in overhanging ruby" src="images/ro-a.gif" /></p>
ishida@1665 1080 <p><b>Figure 4.3.1</b>: Ruby overhanging adjacent text</p>
ishida@1665 1081 </div>
ishida@1665 1082 </dd>
ishida@1665 1083 <dt><strong>start</strong></dt>
ishida@3034 1084 <dd>The ruby text can only overhang the text that precedes it. That means, for
ishida@3034 1085 example, that ruby cannot overhang text that is to the right of it in
ishida@3034 1086 horizontal LTR layout, and it cannot overhang text that is below it in
ishida@1665 1087 vertical-ideographic layout.
ishida@1665 1088 <div class="figure">
ishida@1665 1089 <p><img class="example" width="199" height="91"
ishida@1665 1090 alt="Diagram of glyph layout when ruby overhangs the preceding glyphs only"
ishida@1666 1091 src="images/ro-s.gif" /></p>
ishida@1665 1092 <p><b>Figure 4.3.2</b>: Ruby overhanging preceding text only</p>
ishida@1665 1093 </div>
ishida@1665 1094 </dd>
ishida@1665 1095 <dt><strong>end</strong></dt>
ishida@3034 1096 <dd>The ruby text can only overhang the text that follows it. That means, for
ishida@3034 1097 example, that ruby cannot overhang text that is to the left of it in
ishida@3034 1098 horizontal LTR layout, and it cannot overhang text that is above it in
ishida@1665 1099 vertical-ideographic layout.
ishida@1665 1100 <div class="figure">
ishida@1665 1101 <p><img class="example" width="198" height="91"
ishida@1665 1102 alt="Diagram of glyph layout when ruby overhangs the following characters only"
ishida@1666 1103 src="images/ro-e.gif" /></p>
ishida@1665 1104 <p><b>Figure 4.3.3</b>: Ruby overhanging following text only</p>
ishida@1665 1105 </div>
ishida@1665 1106 </dd>
ishida@1665 1107 <dt><strong>none</strong></dt>
ishida@1665 1108 <dd>The ruby text cannot overhang any text adjacent to its base, only its
ishida@1665 1109 own base.
ishida@1665 1110
ishida@1665 1111 <div class="figure">
ishida@1665 1112 <p><img class="example" width="220" height="91"
ishida@1665 1113 alt="Diagram of glyph layout in non-overhanging ruby"
ishida@1666 1114 src="images/ro-n.gif" /></p>
ishida@1665 1115 <p><b>Figure 4.3.4</b>: Ruby not allowed to overhang adjacent text</p>
ishida@1665 1116 </div>
ishida@1665 1117 </dd>
ishida@1665 1118 </dl>
ishida@1665 1119
fantasai@8479 1120 <h3 id="rubyspan">
fantasai@8479 1121 Ruby annotation spanning: the 'ruby-span' property</h3>
ishida@1665 1122
fantasai@8479 1123 <table class="propdef">
fantasai@8479 1124 <tr>
fantasai@8479 1125 <th>Name:
fantasai@8479 1126 <td><dfn>ruby-span</dfn>
fantasai@8479 1127 <tr>
fantasai@8479 1128 <th>Value:
fantasai@8479 1129 <td>attr(x) | none
fantasai@8479 1130 <tr>
fantasai@8479 1131 <th>Initial:
fantasai@8479 1132 <td>none
fantasai@8479 1133 <tr>
fantasai@8479 1134 <th>Applies to:
fantasai@8479 1135 <td>elements with display: ruby-text
fantasai@8479 1136 <tr>
fantasai@8479 1137 <th>Inherited:
fantasai@8479 1138 <td>no
fantasai@8479 1139 <tr>
fantasai@8479 1140 <th>Percentages:
fantasai@8479 1141 <td>N/A
fantasai@8479 1142 <tr>
fantasai@8479 1143 <th>Media:
fantasai@8479 1144 <td>visual
fantasai@8479 1145 <tr>
fantasai@8479 1146 <th>Computed value:
fantasai@8479 1147 <td>&lt;number&gt;
fantasai@8479 1148 </table>
ishida@1665 1149
ishida@1665 1150 <p>This property controls the spanning behavior of annotation elements. </p>
ishida@1665 1151
ishida@1665 1152 <p class="note"><span class="note-label">Note:</span> A XHTML user agent may also use the <samp>rbspan</samp>
ishida@1665 1153 attribute to get the same effect.</p>
ishida@1665 1154
ishida@1665 1155 <p>Possible values:</p>
ishida@1665 1156
ishida@1665 1157 <dl>
ishida@1665 1158 <dt><strong>attr(x)</strong></dt>
ishida@1665 1159 <dd>The value of attribute 'x' as a string value. The string value is
ishida@1665 1160 evaluated as a &lt;number&gt; to determine the number of ruby base elements to be
ishida@1665 1161 spanned by the annotation element. If the &lt;number&gt; is &#39;0&#39;, it is replaced by
ishida@1665 1162 &#39;1&#39;.The &lt;number&gt; is the computed value. </dd>
ishida@1665 1163 <dt>none</dt>
ishida@1665 1164 <dd>No spanning. The computed value is &#39;1&#39;.</dd>
ishida@1665 1165 </dl>
ishida@1665 1166
ishida@1665 1167 <p>The following example shows an XML example using the 'display' property
ishida@1665 1168 values associated with the 'ruby structure and the 'ruby-span' property</p>
ishida@3034 1169 <pre class="xml">myruby { display: ruby; }
ishida@1665 1170 myrbc { display: ruby-base-container; }
ishida@1665 1171 myrb { display: ruby-base; }
ishida@1665 1172 myrtc.before { display: ruby-text-container; ruby-position: before}
ishida@1665 1173 myrtc.after { display: ruby-text-container; ruby-position: after}
ishida@1665 1174 myrt { display: ruby-text; ruby-span: attr(rbspan); }
ishida@1665 1175 ...
ishida@1665 1176 &lt;myruby&gt;
ishida@1665 1177 &lt;myrbc&gt;
ishida@1665 1178 &lt;myrb&gt;10&lt;/myrb&gt;
ishida@1665 1179 &lt;myrb&gt;31&lt;/myrb&gt;
ishida@1665 1180 &lt;myrb&gt;2002&lt;/myrb&gt;
ishida@1665 1181 &lt;/myrbc&gt;
ishida@1665 1182 &lt;myrtc class=&quot;before&quot;&gt;
ishida@1665 1183 &lt;myrt&gt;Month&lt;/myrt&gt;
ishida@1665 1184 &lt;myrt&gt;Day&lt;/myrt&gt;
ishida@1665 1185 &lt;myrt&gt;Year&lt;/myrt&gt;
ishida@1665 1186 &lt;/myrtc&gt;
ishida@1665 1187 &lt;myrtc class=&quot;after&quot;&gt;
ishida@1665 1188 &lt;myrt rbspan=&quot;3&quot;&gt;Expiration Date&lt;/myrt&gt;
ishida@1665 1189 &lt;/myrtc&gt;
ishida@1665 1190 &lt;/myruby&gt;</pre>
kojiishi@8496 1191 -->
ishida@1665 1192
fantasai@8497 1193 <h2 id="default-stylesheet" class="no-num">
fantasai@8497 1194 Appendix A: Default Style Sheet</h2>
ishida@1665 1195
fantasai@8497 1196 <p><em>This section is informative.</em>
ishida@1665 1197
fantasai@8497 1198 <h3 id="default-ua-ruby" class="no-num">
fantasai@8497 1199 <span class="secno">A.1</span> Supporting Ruby Layout</h3>
ishida@1665 1200
fantasai@8497 1201 <p>The following represents a default UA style sheet
fantasai@8497 1202 for rendering HTML and XHTML ruby markup as ruby layout:
ishida@1665 1203
fantasai@8497 1204 <pre>
fantasai@8497 1205 <!-- -->ruby { display: ruby; }
fantasai@8497 1206 <!-- -->rb { display: ruby-base; white-space: nowrap; }
fantasai@8497 1207 <!-- -->rt { display: ruby-text; white-space: nowrap; font-size: 50%; }
fantasai@8497 1208 <!-- -->rbc { display: ruby-base-container; }
fantasai@8497 1209 <!-- -->rtc { display: ruby-text-container; }</pre>
fantasai@8497 1210
fantasai@8497 1211 <p>Additional rules for UAs supporting the relevant features of [[CSS3-TEXT-DECOR]] and [[CSS3-FONTS]]:
fantasai@8497 1212 <pre>rt { font-variant-east-asian: ruby; text-emphasis: none; }</pre>
fantasai@8497 1213
fantasai@8497 1214 <p class="note">Authors should not use the above rules;
fantasai@8497 1215 a UA that supports ruby layout should provide these by default.
fantasai@8497 1216
fantasai@8497 1217 <h3 id="default-inline" class="no-num">
fantasai@8497 1218 <span class="secno">A.2</span> Inlining Ruby Annotations</h3>
fantasai@8497 1219
fantasai@8497 1220 <p>The following represents a sample style sheet
fantasai@8497 1221 for rendering HTML and XHTML ruby markup as inline annotations:
fantasai@8497 1222
fantasai@8497 1223 <pre>ruby, rb, rt, rbc, rtc, rp {
fantasai@8497 1224 <!-- --> display: inline; white-space: inherit;
fantasai@8497 1225 <!-- --> font-variant-east-asian: inherit; text-emphasis: inherit; }</pre>
fantasai@8497 1226
fantasai@8497 1227 <h3 id="default-parens" class="no-num">
fantasai@8497 1228 <span class="secno">A.3</span> Generating Parentheses</h3>
fantasai@8497 1229
fantasai@8497 1230 <p>Unfortunately, because Selectors cannot match against text nodes,
fantasai@8497 1231 it's not possible with CSS to express rules that will automatically and correctly
fantasai@8497 1232 add parentheses to unparenthesized ruby annotations in HTML.
fantasai@8498 1233 (This is because HTML ruby allows implying the <i>ruby base</i> from raw text, without a corresponding element.)
fantasai@8498 1234 However, these rules will handle cases where either <code>&lt;rb&gt;</code>
fantasai@8498 1235 or <code>&lt;rtc&gt;</code> is used rigorously.
fantasai@8498 1236
fantasai@8497 1237 <pre>
fantasai@8498 1238 <!-- -->/* Parens around &lt;rtc> */
fantasai@8497 1239 <!-- -->rtc::before { content: "("; }
fantasai@8498 1240 <!-- -->rtc::after { content: ")"; }
fantasai@8497 1241
fantasai@8498 1242 <!-- -->/* Parens before first &lt;rt> not inside &lt;rtc> */
fantasai@8498 1243 <!-- -->rb + rt::before,
fantasai@8498 1244 <!-- -->rtc + rt::before { content: "("; }
fantasai@8497 1245
fantasai@8498 1246 <!-- -->/* Parens after &lt;rt> not inside &lt;rtc> */
fantasai@8498 1247 <!-- -->rb ~ rt:last-child::after,
fantasai@8498 1248 <!-- -->rt + rb::before { content: ")"; }
fantasai@8498 1249 <!-- -->rt + rtc::before { content: ")("; }</pre>
ishida@1665 1250
fantasai@8479 1251 <h2 id="glossary">
fantasai@8479 1252 Glossary</h2>
ishida@1665 1253 <dl>
ishida@1665 1254 <dt><a id="g-bopomofo"><strong><span
ishida@1665 1255 lang="zh">Bopomofo</span></strong></a></dt>
ishida@1665 1256 <dd>37 characters and 4 tone markings used as phonetics in Chinese,
ishida@1665 1257 especially standard Mandarin.</dd>
ishida@1665 1258 <dt><a id="g-hanja"><strong><span
ishida@1665 1259 lang="ko">Hanja</span></strong></a></dt>
ishida@1665 1260 <dd>Subset of the Korean writing system that utilizes ideographic
ishida@1665 1261 characters borrowed or adapted from the Chinese writing system. Also see
ishida@1665 1262 <a href="#g-kanji"><span lang="ja">Kanji</span></a>.</dd>
ishida@1665 1263 <dt><a id="g-hiragana"><strong><span
ishida@1665 1264 lang="ja">Hiragana</span></strong></a></dt>
ishida@1665 1265 <dd>Japanese syllabic script, or character of that script. Rounded and
ishida@1665 1266 cursive in appearance. Subset of the Japanese writing system, used together
ishida@1665 1267 with kanji and katakana. In recent times, mostly used to write Japanese
ishida@1665 1268 words when kanji are not available or appropriate, and word endings and
ishida@1665 1269 particles. Also see <a
ishida@1665 1270 href="#g-katakana"><span lang="ja">Katakana</span></a>.</dd>
ishida@1665 1271 <dt><a id="g-ideogram"><strong>Ideograph</strong></a></dt>
ishida@1665 1272 <dd>A character that is used to represent an idea, word, or word component,
ishida@1665 1273 in contrast to a character from an alphabetic or syllabic script. The most
ishida@1665 1274 well-known ideographic script is used (with some variation) in East Asia
ishida@1665 1275 (China, Japan, Korea,...).</dd>
ishida@1665 1276 <dt><a id="g-kana"><strong><span lang="ja">Kana</span></strong></a></dt>
ishida@1665 1277 <dd>Collective term for hiragana and katakana.</dd>
ishida@1665 1278 <dt><a id="g-kanji"><strong>Kanji</strong></a></dt>
ishida@1665 1279 <dd>Japanese term for ideographs; ideographs used in Japanese. Subset of the
ishida@1665 1280 Japanese writing system, used together with hiragana and katakana. Also see <a
ishida@1665 1281 href="#g-hanja"><span lang="ko">Hanja</span></a>.</dd>
ishida@1665 1282 <dt><a id="g-katakana"><strong><span
ishida@1665 1283 lang="ja">Katakana</span></strong></a></dt>
ishida@1665 1284 <dd>Japanese syllabic script, or character of that script. Angular in
ishida@1665 1285 appearance. Subset of the Japanese writing system,&nbsp; used together with
ishida@1665 1286 kanji and hiragana. In recent times, mainly used to write foreign words. Also see <a
ishida@1665 1287 href="#g-hiragana"><span lang="ja">Hiragana</span></a>.</dd>
ishida@1665 1288 <dt><a id="g-monoruby" name="g-monoruby"><strong>Mono-ruby</strong></a></dt>
ishida@1665 1289 <dd>In Japanese typography: Ruby associated with a single character of
ishida@1665 1290 the base text.</dd>
ishida@1665 1291 <dt><a id="g-ruby"><strong>Ruby</strong></a></dt>
ishida@1665 1292 <dd>A run of text that appears in the vicinity of another run of text and
ishida@1665 1293 serves as an annotation or a pronunciation guide for that text.</dd>
ishida@1665 1294 </dl>
ishida@1665 1295
fantasai@8479 1296 <h2 id="conformance">
fantasai@8479 1297 Conformance</h2>
fantasai@8479 1298
fantasai@8479 1299 <h3 id="conventions">
fantasai@8479 1300 Document conventions</h3>
fantasai@8479 1301
fantasai@8479 1302 <p>Conformance requirements are expressed with a combination of
fantasai@8479 1303 descriptive assertions and RFC 2119 terminology. The key words “MUST”,
fantasai@8479 1304 “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”,
fantasai@8479 1305 “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this
fantasai@8479 1306 document are to be interpreted as described in RFC 2119.
fantasai@8479 1307 However, for readability, these words do not appear in all uppercase
fantasai@8479 1308 letters in this specification.
fantasai@8479 1309
fantasai@8479 1310 <p>All of the text of this specification is normative except sections
fantasai@8479 1311 explicitly marked as non-normative, examples, and notes. [[!RFC2119]]</p>
fantasai@8479 1312
fantasai@8479 1313 <p>Examples in this specification are introduced with the words “for example”
fantasai@8479 1314 or are set apart from the normative text with <code>class="example"</code>,
fantasai@8479 1315 like this:
fantasai@8479 1316
fantasai@8479 1317 <div class="example">
fantasai@8479 1318 <p>This is an example of an informative example.</p>
fantasai@8479 1319 </div>
fantasai@8479 1320
fantasai@8479 1321 <p>Informative notes begin with the word “Note” and are set apart from the
fantasai@8479 1322 normative text with <code>class="note"</code>, like this:
fantasai@8479 1323
fantasai@8479 1324 <p class="note">Note, this is an informative note.</p>
fantasai@8479 1325
fantasai@8479 1326 <h3 id="conformance-classes">
fantasai@8479 1327 Conformance classes</h3>
fantasai@8479 1328
fantasai@8479 1329 <p>Conformance to CSS Ruby Module
fantasai@8479 1330 is defined for three conformance classes:
fantasai@8479 1331 <dl>
fantasai@8479 1332 <dt><dfn title="style sheet!!as conformance class">style sheet</dfn>
fantasai@8479 1333 <dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#style-sheet">CSS
fantasai@8479 1334 style sheet</a>.
fantasai@8479 1335 <dt><dfn>renderer</dfn></dt>
fantasai@8479 1336 <dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a>
fantasai@8479 1337 that interprets the semantics of a style sheet and renders
fantasai@8479 1338 documents that use them.
fantasai@8479 1339 <dt><dfn id="authoring-tool">authoring tool</dfn></dt>
fantasai@8479 1340 <dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a>
fantasai@8479 1341 that writes a style sheet.
fantasai@8479 1342 </dl>
fantasai@8479 1343
fantasai@8479 1344 <p>A style sheet is conformant to CSS Ruby Module
fantasai@8479 1345 if all of its statements that use syntax defined in this module are valid
fantasai@8479 1346 according to the generic CSS grammar and the individual grammars of each
fantasai@8479 1347 feature defined in this module.
fantasai@8479 1348
fantasai@8479 1349 <p>A renderer is conformant to CSS Ruby Module
fantasai@8479 1350 if, in addition to interpreting the style sheet as defined by the
fantasai@8479 1351 appropriate specifications, it supports all the features defined
fantasai@8479 1352 by CSS Ruby Module by parsing them correctly
fantasai@8479 1353 and rendering the document accordingly. However, the inability of a
fantasai@8479 1354 UA to correctly render a document due to limitations of the device
fantasai@8479 1355 does not make the UA non-conformant. (For example, a UA is not
fantasai@8479 1356 required to render color on a monochrome monitor.)
fantasai@8479 1357
fantasai@8479 1358 <p>An authoring tool is conformant to CSS Ruby Module
fantasai@8479 1359 if it writes style sheets that are syntactically correct according to the
fantasai@8479 1360 generic CSS grammar and the individual grammars of each feature in
fantasai@8479 1361 this module, and meet all other conformance requirements of style sheets
fantasai@8479 1362 as described in this module.
fantasai@8479 1363
fantasai@8479 1364 <h3 id="partial">
fantasai@8479 1365 Partial implementations</h3>
fantasai@8479 1366
fantasai@8479 1367 <p>So that authors can exploit the forward-compatible parsing rules to
fantasai@8479 1368 assign fallback values, CSS renderers <strong>must</strong>
fantasai@8479 1369 treat as invalid (and <a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignore
fantasai@8479 1370 as appropriate</a>) any at-rules, properties, property values, keywords,
fantasai@8479 1371 and other syntactic constructs for which they have no usable level of
fantasai@8479 1372 support. In particular, user agents <strong>must not</strong> selectively
fantasai@8479 1373 ignore unsupported component values and honor supported values in a single
fantasai@8479 1374 multi-value property declaration: if any value is considered invalid
fantasai@8479 1375 (as unsupported values must be), CSS requires that the entire declaration
fantasai@8479 1376 be ignored.</p>
fantasai@8479 1377
fantasai@8479 1378 <h3 id="experimental">
fantasai@8479 1379 Experimental implementations</h3>
fantasai@8479 1380
fantasai@8479 1381 <p>To avoid clashes with future CSS features, the CSS2.1 specification
fantasai@8479 1382 reserves a <a href="http://www.w3.org/TR/CSS21/syndata.html#vendor-keywords">prefixed
fantasai@8479 1383 syntax</a> for proprietary and experimental extensions to CSS.
fantasai@8479 1384
fantasai@8479 1385 <p>Prior to a specification reaching the Candidate Recommendation stage
fantasai@8479 1386 in the W3C process, all implementations of a CSS feature are considered
fantasai@8479 1387 experimental. The CSS Working Group recommends that implementations
fantasai@8479 1388 use a vendor-prefixed syntax for such features, including those in
fantasai@8479 1389 W3C Working Drafts. This avoids incompatibilities with future changes
fantasai@8479 1390 in the draft.
fantasai@8479 1391 </p>
fantasai@8479 1392
fantasai@8479 1393 <h3 id="testing">
fantasai@8479 1394 Non-experimental implementations</h3>
fantasai@8479 1395
fantasai@8479 1396 <p>Once a specification reaches the Candidate Recommendation stage,
fantasai@8479 1397 non-experimental implementations are possible, and implementors should
fantasai@8479 1398 release an unprefixed implementation of any CR-level feature they
fantasai@8479 1399 can demonstrate to be correctly implemented according to spec.
fantasai@8479 1400
fantasai@8479 1401 <p>To establish and maintain the interoperability of CSS across
fantasai@8479 1402 implementations, the CSS Working Group requests that non-experimental
fantasai@8479 1403 CSS renderers submit an implementation report (and, if necessary, the
fantasai@8479 1404 testcases used for that implementation report) to the W3C before
fantasai@8479 1405 releasing an unprefixed implementation of any CSS features. Testcases
fantasai@8479 1406 submitted to W3C are subject to review and correction by the CSS
fantasai@8479 1407 Working Group.
fantasai@8479 1408
fantasai@8479 1409 <p>Further information on submitting testcases and implementation reports
fantasai@8479 1410 can be found from on the CSS Working Group's website at
fantasai@8479 1411 <a href="http://www.w3.org/Style/CSS/Test/">http://www.w3.org/Style/CSS/Test/</a>.
fantasai@8479 1412 Questions should be directed to the
fantasai@8479 1413 <a href="http://lists.w3.org/Archives/Public/public-css-testsuite">public-css-testsuite@w3.org</a>
fantasai@8479 1414 mailing list.
fantasai@8479 1415
fantasai@8479 1416 <h2 class=no-num id="acknowledgments">
fantasai@8479 1417 Acknowledgments</h2>
ishida@1665 1418
ishida@1665 1419 <p>This specification would not have been possible without the help from:</p>
ishida@1665 1420
fantasai@8479 1421 <p>Stephen Deach, Martin Dürst,  Hideki Hiura(<span lang="ja">樋浦 秀樹</span>), Masayasu Ishikawa(<span lang="ja">石川
ishida@1665 1422 雅康</span>), Chris
fantasai@8479 1423 Pratley, Takao Suzuki(<span lang="ja">鈴木 孝雄</span>), Frank Yung-Fong Tang, Chris Thrasher, Masafumi Yabe<span lang="ja">家辺
ishida@1665 1424 勝文</span>), Steve Zilles.</p>
ishida@1665 1425
fantasai@8509 1426 <h2 class="no-num" id="changes">
fantasai@8509 1427 Changes</h2>
fantasai@8509 1428
fantasai@8509 1429 <p>The following major changes have been made since the previous Working Draft:
fantasai@8509 1430 <dl>
fantasai@8509 1431 <dt>Remove 'ruby-span' and mentions of <code>rbspan</code>.
fantasai@8509 1432 <dd>
fantasai@8509 1433 Explicit spanning is not used in HTML ruby in favor of implicit spanning.
fantasai@8509 1434 This can't handle some pathological double-sided spanning cases,
fantasai@8509 1435 but there seems to be no requirement for these at the moment.
fantasai@8509 1436 (For implementations that support full complex XHTML Ruby,
fantasai@8509 1437 they can imply spanning from the markup the same magic way
fantasai@8509 1438 that we handle cell spanning from tables. It doesn't seem
fantasai@8509 1439 necessary to include controls this in Level 1.)
fantasai@8509 1440
fantasai@8509 1441 <dt>Defer 'ruby-overhang' and ''ruby-align: line-end'' to Level 2.
fantasai@8509 1442 <dd>
fantasai@8509 1443 It's somewhat complicated, advanced feature.
fantasai@8509 1444 Proposal is to make this behavior UA-defined
fantasai@8509 1445 and provide some examples of acceptable options.
fantasai@8509 1446
fantasai@8509 1447 <dt>Close issue requesting 'display: rp': use ''display: none''.
fantasai@8509 1448 <dd>
fantasai@8509 1449 The i18nwg added an issue requesting a display value for &lt;rp> elements.
fantasai@8509 1450 They're supposed to be hidden when &tl;ruby> is displayed as ruby.
fantasai@8509 1451 But this is easily accomplished already with ''display: none''.
fantasai@8509 1452
fantasai@8509 1453 <dt>Change 'ruby-position' values to match 'text-emphasis-position'.
fantasai@8509 1454 <dd>
fantasai@8509 1455 Other than ''inter-character'', which we need to keep,
fantasai@8509 1456 it makes more sense to align ruby positions with 'text-emphasis-position',
fantasai@8509 1457 which can correctly handle various combinations of horizontal/vertical preferences.
fantasai@8509 1458
fantasai@8509 1459 <dt>Remove unused values of 'ruby-align'.
fantasai@8509 1460 <dd>
fantasai@8509 1461 'left', 'right', and 'end' are not needed.
fantasai@8509 1462
fantasai@8509 1463 <dt>Added 'ruby-merge' property to control jukugo rendering.
fantasai@8509 1464 <dd>
fantasai@8509 1465 This is a stylistic effect, not a structural one;
fantasai@8509 1466 the previous model assumed that it was structural and suggested handling it by changing markup. :(
fantasai@8509 1467
fantasai@8509 1468 <dt>Remove ''inline'' from 'ruby-position'.
fantasai@8509 1469 <dd>
fantasai@8509 1470 This is do-able via ''display: inline'' on all the ruby-related elements,
fantasai@8509 1471 see <a href="#default-inline">Appendix A</a>
fantasai@8509 1472
fantasai@8509 1473 <dt>Added <a href="#default-style">Default Style</a> rules
fantasai@8509 1474 <dd>
fantasai@8509 1475 As requested by i18nwg.
fantasai@8509 1476
fantasai@8509 1477 <dt>Wrote anonymous box generation rules
fantasai@8509 1478 <dd>
fantasai@8509 1479 And defined pairing of bases and annotations.
fantasai@8509 1480 Should now handle all the crazy proposed permutations of HTML ruby markup.
fantasai@8509 1481 </dl>
fantasai@8509 1482
fantasai@8479 1483 <h2 class=no-num id="references">
fantasai@8479 1484 References</h2>
ishida@1665 1485
fantasai@8479 1486 <h3 class="no-num" id="normative-references">
fantasai@8479 1487 Normative references</h3>
fantasai@8479 1488 <!--normative-->
ishida@1665 1489
fantasai@8479 1490 <h3 class="no-num" id="other-references">
fantasai@8479 1491 Other references</h3>
fantasai@8479 1492 <!--informative-->
ishida@1665 1493
fantasai@8479 1494 <h2 class="no-num" id="index">
fantasai@8479 1495 Index</h2>
fantasai@8479 1496 <!--index-->
ishida@1665 1497
fantasai@8479 1498 <h2 class="no-num" id="property-index">
fantasai@8479 1499 Property index</h2>
fantasai@8479 1500 <!-- properties -->
ishida@1665 1501
ishida@1665 1502 </body>
ishida@1665 1503 </html>
ishida@1665 1504 <!-- Keep this comment at the end of the file
ishida@1665 1505 Local variables:
ishida@1665 1506 mode: sgml
fantasai@8479 1507 sgml-declaration:"~/SGML/HTML4.decl"
ishida@1665 1508 sgml-default-doctype-name:"html"
ishida@1665 1509 sgml-minimize-attributes:t
ishida@1665 1510 sgml-nofill-elements:("pre" "style" "br")
fantasai@8479 1511 sgml-live-element-indicator:t
fantasai@8479 1512 sgml-omittag:nil
fantasai@8479 1513 sgml-shorttag:nil
fantasai@8479 1514 sgml-namecase-general:t
fantasai@8479 1515 sgml-general-insert-case:lower
fantasai@8479 1516 sgml-always-quote-attributes:t
fantasai@8479 1517 sgml-indent-step:nil
fantasai@8479 1518 sgml-indent-data:t
fantasai@8479 1519 sgml-parent-document:nil
fantasai@8479 1520 sgml-exposed-tags:nil
fantasai@8479 1521 sgml-local-catalogs:nil
fantasai@8479 1522 sgml-local-ecat-files:nil
ishida@1665 1523 End:
ishida@1665 1524 -->
fantasai@8479 1525

mercurial