A build of the complex scripts branch can be found at
http://people.apache.org/~spepping/. Glenn's GIT repository contains
new work beyond the code that is in the complex scripts branch.

Feedback is very welcome.

Simon

On Thu, May 05, 2011 at 01:33:06PM +0200, Pascal Sancho wrote:
> I cannot say yes or no.
> 
> This feature is a big one, still in development, and needs always feedback.
> 
> Le 05/05/2011 12:02, Bas van den Broek a écrit :
> > Thanks, I'll look around a bit to see if I can get this to work.
> > Will this be integrated into FOP at some point? Any timeline that you know 
> > of?
> > 
> > Kind regards,
> > 
> > Bas van den Broek
> > 
> > 
> > 
> > -----Original Message-----
> > From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
> > Sent: Thursday, May 05, 2011 11:30
> > To: fop-users@xmlgraphics.apache.org
> > Subject: Re: Arabic text being 'transformed' into something that looks 
> > Arabic but is not exactly the same as what I put in
> > 
> > Hi Bas,
> > 
> > FOP currently doesn't support non-latin scripts.
> > Fortunately, Glenn Adams is working on this topic and has made a great job.
> > 
> > You can download sources from various locations (you'll have to build
> > FOP yourself):
> >  - complex scripts FOP branch:
> > https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ComplexScripts
> > 
> >  - Glenn's GIT:
> > git://github.com/skynavga/fop.git.
> > 
> > 
> > You can get further information here:
> >  - Glenn's Wiki:
> > https://skynav.trac.cvsdude.com/fop/wiki/ComplexScripts
> > 
> >  - Bugzilla FOP complex scripts entry:
> > https://issues.apache.org/bugzilla/show_bug.cgi?id=49687
> > 
> > 
> > 
> > 
> > Le 05/05/2011 11:03, Bas van den Broek a écrit :
> >> Hi all,
> >>
> >> I recently received a ticket from an Arabic client that text being 
> >> transformed using FOP was not quite the same as the input was. So I made a 
> >> testproject and this is the XSL I'm putting into FOP:
> >>
> >> <?xml version="1.0" encoding="UTF-8"?><fo:root 
> >> xmlns:fo="http://www.w3.org/1999/XSL/Format";>
> >>   <fo:layout-master-set>
> >>     <fo:simple-page-master master-name="MyPage" page-height="11.693in" 
> >> page-width="8.268in">
> >>       <fo:region-body margin-bottom="0.5in" margin-left="0.5in" 
> >> margin-right="0.5in" margin-top="0.5in"/>
> >>       <fo:region-before display-align="before" extent="0.5in" 
> >> region-name="xsl-region-before"/>
> >>       <fo:region-after display-align="after" extent="0.5in" 
> >> region-name="xsl-region-after"/>
> >>       <fo:region-start extent="0.5in"/>
> >>       <fo:region-end extent="0.5in"/>
> >>     </fo:simple-page-master>
> >>   </fo:layout-master-set>
> >>   <fo:page-sequence master-reference="MyPage">
> >>     <fo:flow flow-name="xsl-region-body">
> >>       <fo:block color="#000000" font-family="tahoma" font-size="10pt" 
> >> font-style="normal" font-weight="normal">
> >>         <fo:block>
> >>           <fo:table border-collapse="separate" border-spacing="0pt" 
> >> padding="0pt" table-layout="fixed" text-align="left" width="100%">
> >>             <fo:table-column column-width="50%"/>
> >>             <fo:table-column column-width="50%"/>
> >>             <fo:table-body>
> >>               <fo:table-row>
> >>                 <fo:table-cell display-align="before" text-align="left">
> >>                   <fo:block white-space-collapse="false" 
> >> wrap-option="wrap">
> >>                     <fo:block linefeed-treatment="preserve" 
> >> white-space-collapse="false" wrap-option="wrap">عربي</fo:block>
> >>                   </fo:block>
> >>                 </fo:table-cell>
> >>                 <fo:table-cell display-align="before" text-align="left">
> >>                   <fo:block white-space-collapse="false" 
> >> wrap-option="wrap"/>
> >>                 </fo:table-cell>
> >>               </fo:table-row>
> >>               <fo:table-row>
> >>                 <fo:table-cell display-align="before" text-align="left">
> >>                   <fo:block white-space-collapse="false" 
> >> wrap-option="wrap">
> >>                     <fo:block linefeed-treatment="preserve" 
> >> white-space-collapse="false" wrap-option="wrap">عربي</fo:block>
> >>                   </fo:block>
> >>                 </fo:table-cell>
> >>                 <fo:table-cell display-align="before" text-align="left">
> >>                   <fo:block white-space-collapse="false" 
> >> wrap-option="wrap"/>
> >>                 </fo:table-cell>
> >>               </fo:table-row>
> >>             </fo:table-body>
> >>           </fo:table>
> >>         </fo:block>
> >>         <fo:block id="terminator"/>
> >>       </fo:block>
> >>     </fo:flow>
> >>   </fo:page-sequence>
> >> </fo:root>
> >>
> >> (Apologies for the overly long XSL, this is being generated)
> >>
> >> Notice the Arabic text in 2 of the cells (I don't know what the word means 
> >> btw)
> >> I'm using Tahoma which is capable of showing these characters, and this 
> >> font has been put into the font options.
> >>
> >>    <font kerning="yes" embed-url="tahoma.ttf">
> >>           <font-triplet name="tahoma" style="normal" weight="normal"/>
> >>           <font-triplet name="tahomaMT" style="normal" weight="normal"/>
> >>       </font>
> >>
> >> I used other fonts this way and this does not seem to be the problem 
> >> anyway.
> >>
> >> Also, using rl-tb instead of lr-tb does not solve the issue, it only does 
> >> what you would expect, reverse the text.
> >>
> >> The result looks like this:
> >>
> >> يبرع
> >> يبرع
> >>
> >> Which certainly looks Arabic but is not quite the same as what I put in.
> >>
> >> If I use another library (XFC) to transform the XSL to Word, it does show 
> >> the Arabic text correctly.
> >>
> >>
> >> Would be appreciated if anyone could help me out here.
> >>
> >> Kind regards,
> >>
> >> Bas van den Broek
> > 
> 
> -- 
> Pascal
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to