Re: [xep-support] lr-tb

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Wed Oct 03 2007 - 03:13:02 PDT

At 2007-10-03 10:17 +0100, Dave Pawson wrote:
>I don't understand what's happening.
>
> <fo:block>
> <fo:inline-container writing-mode="rl-tb">
> <fo:block writing-mode="rl-tb">abc def, ghi.</fo:block>
> </fo:inline-container>
> <fo:inline-container writing-mode="lr-tb">
> <fo:block writing-mode="rl-tb">abc def, ghi.</fo:block>
> </fo:inline-container>
> </fo:block>
>
>The only difference is that the period is shifted to the 'end' direction,
>the text is right(or left) aligned.

Yes, as expected.

>The alignment I can understand. The movement of the period I can't.
>
>Can anyone explain it please?

The letters have a "direction and strength" in Unicode and this is
respected by XSL-FO.

The comma and spaces affected by the strength of the adjacent
characters, the period is not.

Roman letters are "strong left to right" and so regardless of the
writing direction, the letter sequence will always run left to
right. Your period is at the end of the letter sequence and so it
goes at the end of the line and the end of the line in right-to-left
printing is at the left.

If you wanted to reverse the letter sequence, you want to use
bidi-override and override the inherent Unicode direction of
characters you would use (note that writing-direction does not apply
to block, only to reference areas):

         <fo:inline-container writing-mode="rl-tb">
           <fo:block>
             <fo:bidi-override unicode-bidi="bidi-override" direction="rtl">
               abc def, ghi.
             </fo:bidi-override>
           </fo:block>
         </fo:inline-container>

I think you have a copy of my PDF book, Dave ... check out the detail
I've put in pages 305-315.

I hope this helps.

. . . . . . . . . . Ken

p.s. note that XEP does not support inline-container

--
Upcoming public training: UBL and code lists Oct 1/5; Madrid Spain
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Jul'07  http://www.CraneSoftwrights.com/f/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Wed Oct 3 03:46:23 2007

This archive was generated by hypermail 2.1.8 : Wed Oct 03 2007 - 03:46:29 PDT