css-ruby/Overview.src.html

changeset 8854
c159c7601557
parent 8833
0bd7993fcfef
child 9108
7f542b3ebae3
     1.1 --- a/css-ruby/Overview.src.html	Thu Aug 15 16:08:14 2013 -0700
     1.2 +++ b/css-ruby/Overview.src.html	Thu Aug 15 16:26:55 2013 -0700
     1.3 @@ -642,13 +642,15 @@
     1.4  	<p class="issue">The easiest thing would be to treat each <i>ruby base</i> as an embedding of its 'direction'.
     1.5  	But this means that implicit bidi reordering is scoped to within a single base.
     1.6  
     1.7 +<!--
     1.8 +
     1.9  	<p>The Unicode bidirectional algorithm orders logically-stored text for visual presentation
    1.10  	when characters from scripts of opposing directionalities are mixed
    1.11  	within a single paragraph.
    1.12  	(See [[CSS3-WRITING-MODES]] for a more in-depth discussion of bidirectional text in CSS.)
    1.13  	Bidi reordering of ruby-annotation pairs is controlled by the ordering of the base text, as follows:
    1.14  
    1.15 -<h4 id="bidi-B">Proposal B</h4>
    1.16 +<h4 id="bidi-B">Proposal A</h4>
    1.17  
    1.18  	<p class="note">This proposal is simpler, but will require more frequent tagging of mixed-directionality content.
    1.19  
    1.20 @@ -659,14 +661,17 @@
    1.21  	to their respective <i>ruby bases</i>,
    1.22  	a few restrictions are imposed:
    1.23  	<ul>
    1.24 -		<li>The contents of a <i>ruby base</i> must remain contiguous.
    1.25 -			To this end, the contents of 
    1.26 +		<li>The contents of a <i>ruby base</i> or <i>ruby annotation</i> must remain contiguous.
    1.27 +			To this end, the contents of each <i>ruby base</i> and <i>ruby annotation</i> are treated as if within a <i>bidi isolation</i>.
    1.28 +		<li>For the purpose of ordering <i>ruby bases</i> within a <i>ruby container</i>,
    1.29 +			each <i>ruby base</i> is treated as a strong character of its specified 'direction'.
    1.30 +			(<i>Ruby annotations</i> are positioned with respect to their <i>bases</i>,
    1.31 +			so are affected by reordering, but do not themselves participate in reordering.)
    1.32  		<li>All <i>bases</i> spanned by a single <i>annotation</i> must remain contiguous.
    1.33 +			To this end, the embedding level of all bases spanned by a spanning <i>annotation</i>
    1.34 +			is increased by two prior to reordering.
    1.35  	</ul>
    1.36  
    1.37 -		<li>When a <i>ruby base</i> is moved due to bidi reordering,
    1.38 -			all of its corresponding <i>ruby annotations</i> must follow.
    1.39 -
    1.40  <h4 id="bidi-B">Proposal B</h4>
    1.41  
    1.42  	<p class="note">This preserves some aspects of implicit bidi.
    1.43 @@ -681,7 +686,6 @@
    1.44  	to their respective <i>ruby bases</i>,
    1.45  	a few restrictions are imposed:
    1.46  	<ul>
    1.47 -		<li>
    1.48  		<li>The contents of a <i>ruby base</i> must remain contiguous.
    1.49  		<li>All <i>bases</i> spanned by a single <i>annotation</i> must remain contiguous.
    1.50  	</ul>
    1.51 @@ -692,13 +696,6 @@
    1.52  	(or the embedding level assigned to the isolation, if the <i>ruby base</i> is <i>bidi-isolated</i>)
    1.53  	is further increased by two.
    1.54  
    1.55 -	<p>
    1.56 -
    1.57 -<!--
    1.58 -	<p>
    1.59 -	Each <i>ruby base</i> within a <i>ruby container</i> is treated
    1.60 -	as a strong character with the directionality of its 'direction' property.
    1.61 -	When resolving the embedding levels of 
    1.62  -->
    1.63  
    1.64  <h3 id="line-height">
    1.65 @@ -1407,7 +1404,8 @@
    1.66  <!--	-->rb   { display: ruby-base; white-space: nowrap; }
    1.67  <!--	-->rt   { display: ruby-text; white-space: nowrap; font-size: 50%; }
    1.68  <!--	-->rbc  { display: ruby-base-container; }
    1.69 -<!--	-->rtc  { display: ruby-text-container; }</pre>
    1.70 +<!--	-->rtc  { display: ruby-text-container; }
    1.71 +<!--	-->ruby, rb, rt, rbc, rtc { unicode-bidi: isolate; }</pre>
    1.72  
    1.73  	<p>Additional rules for UAs supporting the relevant features of [[CSS3-TEXT-DECOR]] and [[CSS3-FONTS]]:
    1.74  	<pre>rt { font-variant-east-asian: ruby; text-emphasis: none; }</pre>

mercurial