This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Arabic characters and FOP
- From: "Tanzila Mohammad" <tmohammad at entier-solutions dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 25 Jan 2002 12:47:52 -0000
- Subject: RE: [xsl] Arabic characters and FOP
- Reply-to: xsl-list at lists dot mulberrytech dot com
Thanks.
I tried the following in an fo file:
<fo:block font-weight="bold" space-before.optimum="5pt">
<fo:bidi-override
direction="rtl">جدول</fo:bidi-override> text
</fo:block>
I tried this and I get this error
property - "direction" is not implemented yet.
element "fo:bidi-override" is not yet implemented.
I am using FOP 0.20.1
Regards
Tanzila
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of W. Eliot
Kimber
Sent: 25 January 2002 12:13
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] Arabic characters and FOP
Tanzila Mohammad wrote:
> If you open this XML code in internet explorer it gives you a correctly
> displayed Arabic word.
> <value xml:lang="AR">جدول</value>
>
> If I insert the exact Arabic code in my XML and translate the XML into PDF
> using FOP, the pdf displays the Arabic characters back to front.
>
> If I then actually reverse the characters:
> i.e. <value xml:lang="AR">لودج</value>
>
> And re-run the process, although now in the right order the joins between
> the characters are lost.
Unicode includes the default writing mode for each character. Thus,
Arabic is automatically presented right-to-left. If you want it
presented left-to-right, you need to use the bidi-overide attriute of
fo:inline. This also allows you to embed left-to-rigth text into
right-to-left data (e.g., English words embedded in an Arabic stream).
Cheers,
Eliot
ISOGEN International, LLC
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list