[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|