The latest stylesheet snapshot now has the writing mode implemented for the various locales. The gentext files such as common/en.xml now have an entry for "writing-mode" which indicates text direction. Most are set to "lr-tb" (left to right, top to bottom), but ar, he, and fa (Arabic, Hebrew and Farsi) use "rl-tb" (right to left, top to bottom). If there are other languages that need this change, let me know.

For the latter languages, the "start" alignment now is "right", and the "end" alignment is "left". In addition, the BODY element gets a dir="rtl" attribute, so the HTML pages are laid out right to left. This also has the effect of laying out tables with column one on the right, bullet lists with bullets on the right, etc.

These changes currently apply only to HTML and XHTML outputs. I'm going to look at the FO output next.

Bob Stayton
Sagehill Enterprises
[email protected]


----- Original Message ----- From: "Bob Stayton" <[email protected]> To: "DocBook Apps" <[email protected]>; "Muayyad AlSadi" <[email protected]>
Sent: Wednesday, December 10, 2008 9:48 AM
Subject: [docbook-apps] Re: [docbook] my patch to fix RTL problems in docbook


Not quite. The docbook-apps mailing list is where applications such as DocBook XSL are discussed, so I'm moving this over to that list. 8^)

I looked at your patch, and I think the changes you propose are appropriate. However, I'd like to implement them in a different way. I don't want to see lang values in the stylesheet modules, so I'd like to indicate the writing direction in the locale files in the common subdirectory, and use that value to enact the alignment value for each language.

Bob Stayton
Sagehill Enterprises
[email protected]


----- Original Message ----- From: "Muayyad AlSadi" <[email protected]>
To: <[email protected]>
Sent: Wednesday, December 10, 2008 2:43 AM
Subject: [docbook] my patch to fix RTL problems in docbook


hi,

is this the right place to discuss this patch
http://sourceforge.net/tracker/index.php?func=detail&aid=2402595&group_id=21935&atid=373749

and get it applied

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to