Skip to content

Commit 8ce3a60

Browse files
committed
Attempt to address Aharon's concerns about unicode-bidi: plaintext in <http://lists.w3.org/Archives/Public/public-i18n-bidi/2012JanMar/0040.html>
1 parent 29f64c4 commit 8ce3a60

4 files changed

Lines changed: 57 additions & 57 deletions

File tree

css3-text/Overview.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232

3333
<h1>CSS Text Level 3</h1>
3434

35-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 26 March 2012</h2>
35+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 27 March 2012</h2>
3636

3737
<dl>
3838
<dt>This version:
3939

4040
<dd><a href="http://dev.w3.org/csswg/css3-text/">$Date$ (CVS
4141
$Revision$)</a> <!--
42-
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120326/">http://www.w3.org/TR/2012/WD-css3-text-20120326/</a></dd>
42+
<dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120327/">http://www.w3.org/TR/2012/WD-css3-text-20120327/</a></dd>
4343
-->
4444

4545

@@ -1978,15 +1978,15 @@ <h3 id=text-align><span class=secno>7.1. </span> Text Alignment: the
19781978
href="http://dev.w3.org/csswg/css3-text/#white-space-rules">white space
19791979
processing rules</a>.
19801980

1981-
<p>The start and end edges of line boxes are determined by the inline base
1982-
direction per "paragraph", where in this case the "paragraph" is all
1983-
consecutive line boxes not separated by a forced line break or block
1984-
boundary. In most cases, this means referring to the &lsquo;<code
1985-
class=property>direction</code>&rsquo; property of the containing block.
1986-
In the case of &lsquo;<code class=css>unicode-bidi:
1987-
plaintext</code>&rsquo;, however, this uses the implied inline base
1988-
direction of the "paragraph" (i.e. the base direction that is used for
1989-
bidi reordering).
1981+
<p>The start and end edges of a line box are determined by the inline base
1982+
direction of the "bidi paragraph" to which it belongs. In most cases, this
1983+
means using the containing block's computed &lsquo;<code
1984+
class=property>direction</code>&rsquo;. However if containing block has
1985+
&lsquo;<code class=css>unicode-bidi: plaintext</code>&rsquo; <a
1986+
href="#CSS3-WRITING-MODES"
1987+
rel=biblioentry>[CSS3-WRITING-MODES]<!--{{!CSS3-WRITING-MODES}}--></a>,
1988+
the inline base direction of its line boxes will be determined by the bidi
1989+
paragraphs it contains.
19901990

19911991
<div class=example>
19921992
<p>In the following example, every other line is right-aligned:</p>

css3-text/Overview.src.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,13 +1378,12 @@ <h3 id="text-align">
13781378
<a href="http://dev.w3.org/csswg/css3-text/#white-space-rules">white
13791379
space processing rules</a>.
13801380

1381-
<p>The start and end edges of line boxes are determined by the inline base
1382-
direction per "paragraph", where in this case the "paragraph" is all
1383-
consecutive line boxes not separated by a forced line break or block
1384-
boundary. In most cases, this means referring to the 'direction' property
1385-
of the containing block. In the case of ''unicode-bidi: plaintext'',
1386-
however, this uses the implied inline base direction of the "paragraph"
1387-
(i.e. the base direction that is used for bidi reordering).
1381+
<p>The start and end edges of a line box are determined by the inline base
1382+
direction of the "bidi paragraph" to which it belongs. In most cases,
1383+
this means using the containing block's computed 'direction'. However if
1384+
containing block has ''unicode-bidi: plaintext'' [[!CSS3-WRITING-MODES]],
1385+
the inline base direction of its line boxes will be determined by the bidi
1386+
paragraphs it contains.
13881387

13891388
<div class="example">
13901389
<p>In the following example, every other line is right-aligned:</p>

css3-writing-modes/Overview.html

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232

3333
<h1>CSS Writing Modes Module Level 3</h1>
3434

35-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 26 March 2012</h2>
35+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 27 March 2012</h2>
3636

3737
<dl>
3838
<dt>This version:
3939

4040
<dd><a
4141
href="http://dev.w3.org/csswg/css3-writing-modes/">http://dev.w3.org/csswg/css3-writing-modes/</a>
4242
<!--
43-
<dd><a href="http://www.w3.org/TR/2012/WD-css3-writing-modes-20120326/">http://www.w3.org/TR/2012/ED-css3-writing-modes-20120326/</a>
43+
<dd><a href="http://www.w3.org/TR/2012/WD-css3-writing-modes-20120327/">http://www.w3.org/TR/2012/ED-css3-writing-modes-20120327/</a>
4444
-->
4545

4646

@@ -555,9 +555,10 @@ <h2 id=text-direction><span class=secno>2. </span> Inline Direction and
555555
class=property>direction</code></a>&rsquo; and &lsquo;<a
556556
href="#unicode-bidi0"><code class=property>unicode-bidi</code></a>&rsquo;
557557
properties should in most cases be used only to map bidi information in
558-
the markup to its corresponding CSS styles. If a document language
558+
the markup to its corresponding CSS styles. <strong>If a document language
559559
provides markup features to control bidi, authors and users should use
560-
those features and not specify CSS rules to override them.
560+
those features instead</strong> and not specify CSS rules to override
561+
them.
561562

562563
<p>The HTML 4 specification (<a href="#HTML401"
563564
rel=biblioentry>[HTML401]<!--{{HTML401}}--></a>, section 8.2) defines
@@ -763,24 +764,16 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span> Embeddings and
763764
<dt><dfn id=plaintext>plaintext</dfn>
764765

765766
<dd>
766-
<p>For the purposes of the Unicode bidirectional algorithm, the base
767-
directionality of each bidi paragraph for which the element forms the
768-
containing block is determined not by the element's computed &lsquo;<a
769-
href="#direction0"><code class=property>direction</code></a>&rsquo; as
770-
usual, but by following the heuristic in rules P2 and P3 of the Unicode
771-
bidirectional algorithm. For inline elements, this value behaves as for
772-
&lsquo;<a href="#isolate"><code class=css>isolate</code></a>&rsquo;,
773-
except, as with block containers, the base directionality is determined
774-
by following the Unicode heuristic instead of by using the &lsquo;<a
775-
href="#direction0"><code class=property>direction</code></a>&rsquo;
776-
value. <span class=note>Note that &lsquo;<a href="#unicode-bidi0"><code
777-
class=property>unicode-bidi</code></a>&rsquo; does not affect the
778-
&lsquo;<a href="#direction0"><code
779-
class=property>direction</code></a>&rsquo; property even in the case of
780-
&lsquo;<a href="#plaintext"><code class=css>plaintext</code></a>&rsquo;,
781-
and thus does not affect &lsquo;<a href="#direction0"><code
782-
class=property>direction</code></a>&rsquo;-dependent layout
783-
calculations.</span>
767+
<p>This value behaves as &lsquo;<a href="#isolate"><code
768+
class=css>isolate</code></a>&rsquo; except that for the purposes of the
769+
Unicode bidirectional algorithm, the base directionality of each bidi
770+
paragraph immediately contained by the element is determined not by the
771+
element's computed &lsquo;<a href="#direction0"><code
772+
class=property>direction</code></a>&rsquo; as usual, but by following
773+
the heuristic in rules P2 and P3 of the Unicode bidirectional algorithm.
774+
An element immediately contains a bidi paragraph if it is a block
775+
container or bidi-isolating inline and no other such elements intervene
776+
between it and the bidi paragraph.
784777
</dl>
785778

786779
<p class=note>Because the &lsquo;<a href="#unicode-bidi0"><code
@@ -792,6 +785,14 @@ <h3 id=unicode-bidi><span class=secno>2.2. </span> Embeddings and
792785
best used on blocks and inlines that do not contain any block-level
793786
structures.
794787

788+
<p class=note>Note that &lsquo;<a href="#unicode-bidi0"><code
789+
class=property>unicode-bidi</code></a>&rsquo; does not affect the
790+
&lsquo;<a href="#direction0"><code
791+
class=property>direction</code></a>&rsquo; property even in the case of
792+
&lsquo;<a href="#plaintext"><code class=css>plaintext</code></a>&rsquo;,
793+
and thus does not affect &lsquo;<a href="#direction0"><code
794+
class=property>direction</code></a>&rsquo;-dependent layout calculations.
795+
795796
<p>The final order of characters within in each bidi paragraph is the same
796797
as if the bidi control codes had been added as described above, markup had
797798
been stripped, and the resulting character sequence had been passed to an

css3-writing-modes/Overview.src.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ <h2 id="text-direction">
246246

247247
<p>Because the base directionality of a text depends on the structure and
248248
semantics of the document, the 'direction' and 'unicode-bidi' properties
249-
should in most cases be
250-
used only to map bidi information in the markup to its corresponding
251-
CSS styles. If a document language provides markup features to control
252-
bidi, authors and users should use those features and not specify CSS
253-
rules to override them.</p>
249+
should in most cases be used only to map bidi information in the markup
250+
to its corresponding CSS styles.
251+
<strong>If a document language provides markup features to control
252+
bidi, authors and users should use those features instead</strong> and not
253+
specify CSS rules to override them.</p>
254254

255255
<p>The HTML 4 specification ([[HTML401]], section 8.2) defines
256256
bidirectionality behavior for HTML elements. The HTML 4 specification
@@ -413,18 +413,14 @@ <h3 id="unicode-bidi">
413413
ltr'', or RLO (U+202E), for ''direction: rtl'', at the start of the
414414
element and a PDF (U+202C) at the end of the element.</dd>
415415
<dt><dfn>plaintext</dfn></dt>
416-
<dd><p>For the purposes of the Unicode bidirectional algorithm, the
417-
base directionality of each bidi paragraph for which the element
418-
forms the containing block is determined not by the element's
419-
computed 'direction' as usual, but by following the heuristic in
420-
rules P2 and P3 of the Unicode bidirectional algorithm.
421-
For inline elements, this value behaves as for ''isolate'',
422-
except, as with block containers, the base directionality is
423-
determined by following the Unicode heuristic instead of by using
424-
the 'direction' value. <span class="note">Note that 'unicode-bidi'
425-
does not affect the 'direction' property even in the case of
426-
''plaintext'', and thus does not affect 'direction'-dependent
427-
layout calculations.</span>
416+
<dd><p>This value behaves as ''isolate'' except that for the purposes of
417+
the Unicode bidirectional algorithm, the base directionality of each
418+
bidi paragraph immediately contained by the element is determined not
419+
by the element's computed 'direction' as usual, but by following the
420+
heuristic in rules P2 and P3 of the Unicode bidirectional algorithm.
421+
An element immediately contains a bidi paragraph if it is a block
422+
container or bidi-isolating inline and no other such elements intervene
423+
between it and the bidi paragraph.
428424
</dl>
429425

430426
<p class=note>Because the 'unicode-bidi' property does not inherit,
@@ -433,6 +429,10 @@ <h3 id="unicode-bidi">
433429
used on blocks and inlines that do not contain any block-level
434430
structures.
435431

432+
<p class=note>Note that 'unicode-bidi' does not affect the 'direction'
433+
property even in the case of ''plaintext'', and thus does not affect
434+
'direction'-dependent layout calculations.</span>
435+
436436
<p>The final order of characters within in each bidi paragraph is the
437437
same as if the bidi control codes had been added as described above,
438438
markup had been stripped, and the resulting character sequence had

0 commit comments

Comments
 (0)