|
54 | 54 | </p>
|
55 | 55 | <h1 class="p-name no-ref" id=title>CSS Ruby Layout Module Level 1</h1>
|
56 | 56 | <h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
|
57 |
| - <span class=dt-updated><span class=value-title title=20140711>11 July 2014</span></span></span></h2> |
| 57 | + <span class=dt-updated><span class=value-title title=20140712>12 July 2014</span></span></span></h2> |
58 | 58 | <div data-fill-with=spec-metadata><dl>
|
59 | 59 | <dt>This version:
|
60 | 60 | <dd><a class=u-url href=http://dev.w3.org/csswg/css-ruby-1/>http://dev.w3.org/csswg/css-ruby-1/</a>
|
@@ -147,7 +147,7 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
|
147 | 147 | <ul class=toc>
|
148 | 148 | <li><a href=#break-between><span class=secno>3.3.1</span> Breaking Between Bases</a>
|
149 | 149 | <li><a href=#break-within><span class=secno>3.3.2</span> Breaking Within Bases</a></ul>
|
150 |
| - <li><a href=#ruby-bidi><span class=secno>3.4</span> Bidi Reordering</a> |
| 150 | + <li><a href=#bidi><span class=secno>3.4</span> Bidi Reordering</a> |
151 | 151 | <li><a href=#line-height><span class=secno>3.5</span> Line Spacing</a></ul>
|
152 | 152 | <li><a href=#ruby-props><span class=secno>4</span> Ruby Formatting Properties</a>
|
153 | 153 | <ul class=toc>
|
@@ -909,16 +909,46 @@ <h4 class="heading settled heading" data-level=3.3.2 id=break-within><span class
|
909 | 909 |
|
910 | 910 | <p>Ruby alignment takes place within each fragment, after line-breaking.
|
911 | 911 |
|
912 |
| -<h3 class="heading settled heading" data-level=3.4 id=ruby-bidi><span class=secno>3.4 </span><span class=content> |
913 |
| -Bidi Reordering</span><a class=self-link href=#ruby-bidi></a></h3> |
| 912 | +<h3 class="heading settled heading" data-level=3.4 id=bidi><span class=secno>3.4 </span><span class=content> |
| 913 | +Bidi Reordering</span><a class=self-link href=#bidi></a></h3> |
914 | 914 |
|
915 |
| - <p class=issue id=issue-abee447f><a class=self-link href=#issue-abee447f></a> |
916 |
| - Constraints: |
917 |
| - Text within a ruby base must remain contiguous, |
918 |
| - and bases belonging to a single annotation must remain contiguous. |
919 |
| - Still figuring out exactly to enforce these limitations in a sensible manner. |
| 915 | + <p>The Unicode bidirectional algorithm reorders logically-stored text for visual presentation |
| 916 | + when characters from scripts of opposing directionalities are mixed |
| 917 | + within a single paragraph. |
920 | 918 |
|
921 |
| -</p> |
| 919 | + <p>To preserve the correspondance of <a data-link-type=dfn href=#ruby-annotation-box title="ruby annotations">ruby annotations</a> |
| 920 | + to their respective <a data-link-type=dfn href=#ruby-base-box title="ruby bases">ruby bases</a>, |
| 921 | + a few restrictions must be imposed: |
| 922 | + <ul> |
| 923 | + <li>The contents of a <a data-link-type=dfn href=#ruby-base-box title="ruby base">ruby base</a> or <a data-link-type=dfn href=#ruby-annotation-box title="ruby annotation">ruby annotation</a> must remain contiguous. |
| 924 | + <li>All <a data-link-type=dfn href=#ruby-base-box title="ruby bases">ruby bases</a> spanned by a single <a data-link-type=dfn href=#ruby-annotation-box title="ruby annotation">ruby annotation</a> must remain contiguous. |
| 925 | + </ul> |
| 926 | + |
| 927 | + <p>To this end, |
| 928 | + <ul> |
| 929 | + <li> |
| 930 | + Bidi isolation is forced on all <a data-link-type=dfn href=#internal-ruby-boxes title="internal ruby boxes">internal ruby boxes</a> and the <a data-link-type=dfn href=#ruby-container title="ruby container">ruby container</a>: |
| 931 | + the <span class=css data-link-type=maybe title=normal>normal</span> and <span class=css data-link-type=maybe title=embed>embed</span> values of <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-writing-modes-3/#propdef-unicode-bidi title=unicode-bidi>unicode-bidi</a> compute to <span class=css data-link-type=maybe title=isolate>isolate</span>, |
| 932 | + and <span class=css data-link-type=maybe title=bidi-override>bidi-override</span> computes to <span class=css data-link-type=maybe title=isolate-override>isolate-override</span>. |
| 933 | + <li> |
| 934 | + During layout, <a data-link-type=dfn href=#ruby-segments title="ruby segments">ruby segments</a>, <a data-link-type=dfn href=#ruby-annotation-box title="ruby annotations">ruby annotations</a>, and <a data-link-type=dfn href=#ruby-base-box title="ruby bases">ruby bases</a> |
| 935 | + are ordered within their respective containers |
| 936 | + by the <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-writing-modes-3/#propdef-direction title=direction>direction</a> property of their <a data-link-type=dfn href=#ruby-container title="ruby container">ruby container</a>. |
| 937 | + The <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-writing-modes-3/#propdef-direction title=direction>direction</a> property on <a data-link-type=dfn href=#ruby-base-container-box title="ruby base containers">ruby base containers</a> and <a data-link-type=dfn href=#ruby-annotation-container-box title="ruby annotation containers">ruby annotation containers</a> |
| 938 | + is ignored for the purpose of layout. |
| 939 | + (However, it can still inherit into the container’s children |
| 940 | + and thereby affect the <a data-link-type=dfn href=http://dev.w3.org/csswg/css-writing-modes-3/#inline-base-direction title="inline base direction">inline base direction</a> |
| 941 | + of any <a data-link-type=dfn href=#ruby-base-box title="ruby bases">ruby bases</a> or <a data-link-type=dfn href=#ruby-annotation-box title="ruby annotations">ruby annotations</a> it contains.) |
| 942 | + </ul> |
| 943 | + |
| 944 | + <p class=note> |
| 945 | + Note this means that implicit bidi reordering does not work across ruby bases, |
| 946 | + so authors will need to ensure that the <a data-link-type=dfn href=#ruby-container title="ruby container">ruby container</a>’s declared directionality |
| 947 | + does indeed match its contents. |
| 948 | + |
| 949 | + <p>See <a data-biblio-type=informative data-link-type=biblio href=#biblio-css3-writing-modes title=biblio-css3-writing-modes>[CSS3-WRITING-MODES]</a> for a more in-depth discussion of bidirectional text in CSS. |
| 950 | + |
| 951 | + |
922 | 952 |
|
923 | 953 | <h3 class="heading settled heading" data-level=3.5 id=line-height><span class=secno>3.5 </span><span class=content>
|
924 | 954 | Line Spacing</span><a class=self-link href=#line-height></a></h3>
|
@@ -1621,6 +1651,7 @@ <h3 class="no-num no-ref heading settled heading" id=informative><span class=con
|
1621 | 1651 | <div data-fill-with=informative-references><dl>
|
1622 | 1652 | <dt id=biblio-css3-fonts title=CSS3-FONTS><a class=self-link href=#biblio-css3-fonts></a>[CSS3-FONTS]<dd>John Daggett. <a href=http://www.w3.org/TR/2013/WD-css3-fonts-20130212/>CSS Fonts Module Level 3</a>. 12 February 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css3-fonts-20130212/>http://www.w3.org/TR/2013/WD-css3-fonts-20130212/</a></dd>
|
1623 | 1653 | <dt id=biblio-css3-text-decor title=CSS3-TEXT-DECOR><a class=self-link href=#biblio-css3-text-decor></a>[CSS3-TEXT-DECOR]<dd>Elika J. Etemad; Koji Ishii. <a href=http://www.w3.org/TR/2013/CR-css-text-decor-3-20130801/>CSS Text Decoration Module Level 3</a>. 1 August 2013. W3C Candidate Recommendation. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/CR-css-text-decor-3-20130801/>http://www.w3.org/TR/2013/CR-css-text-decor-3-20130801/</a></dd>
|
| 1654 | +<dt id=biblio-css3-writing-modes title=CSS3-WRITING-MODES><a class=self-link href=#biblio-css3-writing-modes></a>[CSS3-WRITING-MODES]<dd>Elika J. Etemad; Koji Ishii. <a href=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>CSS Writing Modes Module Level 3</a>. 15 November 2012. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/</a></dd> |
1624 | 1655 | <dt id=biblio-css3val title=CSS3VAL><a class=self-link href=#biblio-css3val></a>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <a href=http://www.w3.org/TR/2013/CR-css3-values-20130730/>CSS Values and Units Module Level 3</a>. 30 July 2013. W3C Candidate Recommendation. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/CR-css3-values-20130730/>http://www.w3.org/TR/2013/CR-css3-values-20130730/</a></dd>
|
1625 | 1656 | <dt id=biblio-jis4051 title=JIS4051><a class=self-link href=#biblio-jis4051></a>[JIS4051]<dd>???. <a href=None>Formatting rules for Japanese documents (『日本語文書の組版方法』)</a>. 2004. In Japanese URL: <a href=None>None</a></dd>
|
1626 | 1657 | <dt id=biblio-jlreq title=JLREQ><a class=self-link href=#biblio-jlreq></a>[JLREQ]<dd>Yasuhiro Anan; et al. <a href=http://www.w3.org/TR/2012/NOTE-jlreq-20120403/>Requirements for Japanese Text Layout</a>. 3 April 2012. W3C Working Group Note. URL: <a href=http://www.w3.org/TR/2012/NOTE-jlreq-20120403/>http://www.w3.org/TR/2012/NOTE-jlreq-20120403/</a></dd>
|
@@ -1726,15 +1757,7 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
|
1726 | 1757 | A spanning <div class=issue>
|
1727 | 1758 | Insert scanned example so people don’t think this is just the ramblings of an insane spec-writer.
|
1728 | 1759 |
|
1729 |
| - <a href=#issue-14d7c6b1> ↵ </a></div><div class=issue> |
1730 |
| - Constraints: |
1731 |
| - Text within a ruby base must remain contiguous, |
1732 |
| - and bases belonging to a single annotation must remain contiguous. |
1733 |
| - Still figuring out exactly to enforce these limitations in a sensible manner. |
1734 |
| - |
1735 |
| -<a href=#issue-abee447f> ↵ </a></div> |
1736 |
| - |
1737 |
| -<div class=issue><span class=issuehead>Issue-107: </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=&hdr-1-name=subject&hdr-1-query=ruby-position%3A+undesirable+default+value+%27before%27+for+complex+ruby&hdr-2-name=from&hdr-2-query=&hdr-3-name=message-id&hdr-3-query=&period_month=&period_year=&index-grp=Public__FULL&index-type=t&type-index=www-style&resultsperpage=20&sortby=date">this thread</a> and <a href="http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&hdr-1-name=subject&hdr-1-query=Styling+of+complex+Ruby&hdr-2-name=from&hdr-2-query=&hdr-3-name=message-id&hdr-3-query=&period_month=&period_year=&index-grp=Public__FULL&index-type=t&type-index=public-i18n-core&resultsperpage=20&sortby=date">this one</a>.<a href=#issue-8b54b949> ↵ </a></div> |
| 1760 | + <a href=#issue-14d7c6b1> ↵ </a></div><div class=issue><span class=issuehead>Issue-107: </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=&hdr-1-name=subject&hdr-1-query=ruby-position%3A+undesirable+default+value+%27before%27+for+complex+ruby&hdr-2-name=from&hdr-2-query=&hdr-3-name=message-id&hdr-3-query=&period_month=&period_year=&index-grp=Public__FULL&index-type=t&type-index=www-style&resultsperpage=20&sortby=date">this thread</a> and <a href="http://www.w3.org/Search/Mail/Public/advanced_search?keywords=&hdr-1-name=subject&hdr-1-query=Styling+of+complex+Ruby&hdr-2-name=from&hdr-2-query=&hdr-3-name=message-id&hdr-3-query=&period_month=&period_year=&index-grp=Public__FULL&index-type=t&type-index=public-i18n-core&resultsperpage=20&sortby=date">this one</a>.<a href=#issue-8b54b949> ↵ </a></div> |
1738 | 1761 | <div class=issue>Add a paragraph explaining how to distribute space in situations with spanning annotations.
|
1739 | 1762 |
|
1740 | 1763 | <a href=#issue-356ec075> ↵ </a></div><div class=issue>
|
|
0 commit comments