Re: Bidi space Q&A

Ian Hickson wrote:
> 
> On Sat, 5 Jul 2003, Ian Hickson wrote:
> >
> > If the directionality of an element is the same as its parent, then
> > nothing happens wrt bidi. Setting directionality in CSS is exactly
> > equivalent to using LRO, RLO, LRE, RLE, and PDF, depending on the values
> > of unicode-bidi and direction.
> 
> It appears I misunderstood the CSS spec, my bad. The spec already says
> what you want. The 'direction' property on inline elements has no effect
> unless 'unicode-bidi' is set to 'embed' (for LRE/RLE) or 'bidi-override'
> (for LRO/RLO). On block-level elements it sets the paragraph
> directionality as per the bidi algorithm.

Aha! ok. I read that about the block level also, but then my test page
mistakenly used spans on the embedded strings. I need to rework my test page
and recheck the results. thanks.

> >> To answer your last question, the information in the CSS 2.1 draft spec
> >> is incorrect if the element has unicode-bidi:embed set, the levels are
> >> different. The space will not travel to the front of the B. Therefore
> >> the spec should say that the description is accurate only if
> >> unicode-bidi:normal, the same way it points out white-space:normal must
> >> be set.
> >
> > Oh, right, I see. Yes, good point. I'll bring that up in the WG. Thanks.
> 
> In fact, no, the 'unicode-bidi' property has to be set to 'embed' for the
> example to be correct. (Which is actually what it says, although not
> explicitly, by saying "where the <ltr> element represents a left-to-right
> embedding and the <rtl> element represents a right-to-left embedding").

yes, that wasn't clear. thanks Ian.
tex
> 
> --
> Ian Hickson                                      )\._.,--....,'``.    fL
> "meow"                                          /,   _.. \   _\  ;`._ ,.
> http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

-- 
-------------------------------------------------------------
Tex Texin   cell: +1 781 789 1898   mailto:Tex@XenCraft.com
Xen Master                          http://www.i18nGuy.com
                         
XenCraft		            http://www.XenCraft.com
Making e-Business Work Around the World
-------------------------------------------------------------

Received on Saturday, 5 July 2003 21:21:49 UTC