It’s better with sample. 

 

Christian Pestel

christian.pes...@orange.fr


From: Christian Pestel 
Sent: Thursday, June 21, 2012 1:58 AM
To: fop-users 
Subject: Arabic text in a table / table alignment

Hi Gleen,

Text ident work fine in writing-mode=rl-tb and also for the text in table cells 
and cells order but apparently not for table position.
Is it possible to have a right aligned table and a table start-indent which 
start from the right ? 
 

 

Christian Pestel

christian.pes...@orange.fr
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:bd="http://www.bdoc.com/2001/XBD/Format";>
  <fo:layout-master-set>
    <fo:simple-page-master master-name="section1" page-width="8.268055555555555in" page-height="11.693055555555556in" margin-top="35.4pt" margin-bottom="35.4pt" margin-right="70.85pt" margin-left="70.85pt">
      <fo:region-body margin-top="35.45pt" margin-bottom="35.45pt" />
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="section1" format="1" writing-mode="rl-tb">
    <fo:flow flow-name="xsl-region-body" font-family="Helvetica" widows="2" orphans="2" font-size="10pt" white-space-collapse="false">

      <fo:block line-height="1.2">
        <fo:inline font-family="Helvetica" font-size="12pt">
          <fo:leader leader-length="0pt" />text with no indent
        </fo:inline>
      </fo:block>

      <fo:block line-height="1.2" text-indent="56.7pt">
        <fo:inline font-family="Helvetica" font-size="12pt">
          <fo:leader leader-length="0pt" />text with two cm left indent
        </fo:inline>
      </fo:block>

      <fo:block line-height="1.2">
        <fo:inline font-family="Helvetica" font-size="12pt">
          <fo:leader leader-length="0pt" /> 
        </fo:inline>
      </fo:block>

      <fo:block line-height="1.2">
        <fo:inline font-family="Helvetica" font-size="12pt">
          <fo:leader leader-length="0pt" />table with no indent
        </fo:inline>
      </fo:block>

    <fo:table table-layout="fixed">
        <fo:table-column column-number="1" column-width="120.6pt"></fo:table-column>
        <fo:table-column column-number="2" column-width="120.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="12pt">
                    <fo:leader leader-length="0pt"></fo:leader>Column 1
                  </fo:inline>
                </fo:block>              
            </fo:table-cell>
            <fo:table-cell border-style="solid" >      
            <fo:block>
                  <fo:inline font-family="ArialUnicodeMS" font-size="12pt">
                    <fo:leader leader-length="0pt"></fo:leader>Column 2
                  </fo:inline>
                </fo:block>              
            </fo:table-cell>     
     </fo:table-row>
      </fo:table-body>
      </fo:table>      

      <fo:block line-height="1.2">
        <fo:inline font-family="Helvetica" font-size="12pt">
          <fo:leader leader-length="0pt" />
        </fo:inline>
      </fo:block>

      <fo:block line-height="1.2">
        <fo:inline font-family="Helvetica" font-size="12pt">
          <fo:leader leader-length="0pt" />table with two cm start indent
        </fo:inline>
      </fo:block>
    
<fo:table table-layout="fixed" start-indent="56.7pt" >
        <fo:table-column column-number="1" column-width="120.6pt"></fo:table-column>
        <fo:table-column column-number="2" column-width="120.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="12pt">
                    <fo:leader leader-length="0pt"></fo:leader>Column 1
                  </fo:inline>
                </fo:block>              
            </fo:table-cell>
            <fo:table-cell border-style="solid" >      
            <fo:block>
                  <fo:inline font-family="ArialUnicodeMS" font-size="12pt">
                    <fo:leader leader-length="0pt"></fo:leader>Column 2
                  </fo:inline>
                </fo:block>              
            </fo:table-cell>     
     </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

Attachment: 259.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