Re: per-paragraph auto-direction, a.k.a. dir=uba

Hi.
From: Aharon (Vladimir) Lanin 
Date: Thu, 2 Sep 2010 11:02:56 +0300

> But, unless I misunderstand you, we have the problem I brought up
> originally, as in:
>> an ltr line (and thus uba paragraph).> value="b1" style="margin-start:20px" />> value="b2" style="margin-start:20px" />> AN RTL LINE (AND THUS UBA PARAGRAPH).> value="B3" style="margin-start:20px" />> value="B4" style="margin-start:20px" />> 

> B3 and B4 would inherit the CSS direction of their parent, i.e.> dir=uba> element, which would be ltr due to the way its content begins.
> Will
> B3 and B4's margins be on their left or their right? If it's on the left,> as
> per their CSS direction, they will not do what the author intends, which> is
> to put a bit of space between the button and what precedes it. And if
> it's
> on the right, the definition of start and end becomes quite esotoric, no
> longer depending on the CSS direction, but on the paragraph direction,
> which
> scripts can't even access.
> Aharon
> On Thu, Sep 2, 2010 at 12:57 AM, fantasai
> wrote:
>> On 09/01/2010 11:02 AM, Aharon (Vladimir) Lanin wrote:
>>
>>> I've had sufficient negative feedback on suggesting a new element to
>>> kill that idea.
>>>
>>> So, what do people think of the proposal that there is no restriction
>>> on
>>> the elements on which dir=uba can appear, but it will act as
>>> first-strong (not per-paragraph) on any element that has any child
>>> elements,

>>>
>>
>> I suspect this is unnecessarily difficult to implement, because it
>> means that partway through processing an element I'd have to go back
>> and change whether I'm doing per-paragraph or first-strong.
Yes this did seem complex parsing to me too.
>>
>> I think it would make more sense for dir=uba to do first-strong to
>> set the nominal direction (that can be selected against, and inherits
>> to children) but then do per-paragraph during bidi resolution for
>> each paragraph that is directly within the element.
>>
>> That way, it's defined what happens for children and I don't need
>> to recurse the uba settings, but I also don't need to swap behavior
>> as soon as someone inserts a 
. I just ignore the uba setting
>> once I'm in the 
.
>>
>> I *think* that makes more sense. It's pretty consistent with how
>> bidi-override behaves, in any case.
>>
>> ~fantasai
I agree with fantasai in this discussion.

Best,

--C. E. Whitehead
cewcathar@hotmail.com 		 	   		  

Received on Sunday, 5 September 2010 22:05:23 UTC