Thank you Gleen,

<fo:table  writing-mode="rl" > + <fo: block> 
works fine.

but 
<fo:table  writing-mode="rltb" > + <fo: block> 
don’t work. (RLTB=RightToLeft and TopToBottom)
The text is left align in the first cell.

“This should cause the table to place the first column right-most” seems not to 
work in my attached fo sample (or I did not understand !)
Thank for your advice.

 

Christian Pestel

christian.pes...@orange.fr


From: Glenn Adams 
Sent: Wednesday, June 20, 2012 7:05 PM
To: fop-users@xmlgraphics.apache.org 
Subject: Re: Arabic text rendered without ligature in a table cell;

Sorry, that should be writing-mode="rl" or writing-mode="rltb". This should 
cause the table to place the first column right-most, and also make each 
paragraph's default bidirectional level right-to-left, thus causing right 
alignment by default.


On Wed, Jun 20, 2012 at 12:21 PM, Christian Pestel <christian.pes...@orange.fr> 
wrote:

  Thank you Gleen,

  Without language="fr",  it works fine.

  I try  

  <fo:table  writing-mode="rtl" > + <fo: block> 
  instead of 
  <fo:table  > + <fo: block  text-align="right"> 

  but this seems do not work.



  Christian Pestel

  christian.pes...@orange.fr


  From: Glenn Adams 
  Sent: Wednesday, June 20, 2012 4:51 PM
  To: fop-users@xmlgraphics.apache.org 
  Subject: Re: Arabic text rendered without ligature in a table cell;

  Remove the language="fr" attribute from <fo:table/>. The presence of the 
language attribute is to override the font table processing, effectively 
telling FOP to use the French language tables that apply to all text under 
fo:table. But there are no French language tables for the font for Arabic 
script content. 

  Also, you may wish to specify writing-mode="rtl" on either fo:page-sequence 
of fo:table (as desired), in which case  you do not need to specify 
text-align="right".


  On Wed, Jun 20, 2012 at 10:35 AM, Christian Pestel 
<christian.pes...@orange.fr> wrote:

    Arabic text seems not well rendered in a fo: table-cell although it is well 
rendered in a fo: block.
    I use Fop Trunk.


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

<?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="Section_1-Iteration_1" page-width="21cm" page-height="29.7cm" margin-top="0.5cm" margin-bottom="1cm" margin-right="2.5cm" margin-left="2.5cm">
      <fo:region-body margin-top="2cm" margin-bottom="1.5cm"/>
      <fo:region-before region-name="Section_1-Iteration_1-Head" extent="2cm"/>
      <fo:region-after region-name="Section_1-Iteration_1-Foot" extent="1.5cm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence initial-page-number="1" master-reference="Section_1-Iteration_1" >
    <fo:flow flow-name="xsl-region-body">
    <fo:block text-align="right">
                  <fo:inline font-family="ArialUnicodeMS" font-size="26pt">
                    <fo:leader leader-length="0pt"></fo:leader>لاضش
                  </fo:inline>
                </fo:block>          
    <fo:table table-layout="fixed" writing-mode="rltb" >
        <fo:table-column column-number="1" column-width="200.6pt"></fo:table-column>
        <fo:table-column column-number="é" column-width="200.6pt"></fo:table-column>
        <fo:table-body start-indent="0pt" end-indent="0pt">
        <fo:table-row>
            <fo:table-cell border-style="solid" >      
            <fo:block>
                  <fo:inline font-family="ArialUnicodeMS" font-size="26pt">
                    <fo:leader leader-length="0pt"></fo:leader>لاضش
                  </fo:inline>
                </fo:block>              
            </fo:table-cell>
            <fo:table-cell border-style="solid" >      
            <fo:block></fo:block>              
            </fo:table-cell>     
     </fo:table-row>
        </fo:table-body>
      </fo:table>
      </fo:flow>
  </fo:page-sequence>
</fo:root>

Attachment: MODELE_arabe_WithoutLanguageFr_with_WritingMode_RLTB.fo110.xml.pdf
Description: Adobe PDF document

---------------------------------------------------------------------
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