Just to flag that I have a patch for this. However, it depends on the 
big "revised percentage handling" patch. So I'll hang on to it for the 
time being.

Manuel

On Tue, 30 Aug 2005 02:31 pm, Jeremias Maerki wrote:
> margin-left always stays on the left side. The FO spec makes a clear
> distinction between absolute (left, top, right, bottom) and relative
> (start, end, before, after) properties.
>
> lr: left=start, right=end
> rl: left=end, right=start
>
> So you obviously hit a bug. We haven't paid so much attention to the
> different writing modes, yet, especially since we don't support any
> of the other writing modes. For me personally, the main reason is the
> lack of knowledge about non-latin languages.
>
> On 30.08.2005 07:02:57 Manuel Mall wrote:
> > If I set the writing mode on a page master to "rl" (arabic/hebrew)
> > and than define margin-left and right on the region body where are
> > these margins suppose to appear on the output device, i.e. would
> > margin-left still be on the left side of the paper and margin-right
> > on the right side?
> >
> > A sample fo is further below. My problem is that on the generated
> > PDF the margin-left is on the right and vice versa. And I am not
> > sure if that is correct.
> >
> > Manuel
> >
> >     <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
> > xmlns:svg="http://www.w3.org/2000/svg";>
> >       <fo:layout-master-set>
> >         <fo:simple-page-master master-name="normal"
> > page-width="3in" page-height="5in" margin="18pt" writing-mode="rl">
> >           <fo:region-body margin-top="18pt" margin-bottom="12pt"
> > margin-left="15pt" margin-right="36pt" background-color="yellow" />
> >           <fo:region-before extent="18pt" background-color="blue"
> > precedence="true" />
> >           <fo:region-after extent="12pt" background-color="green"
> > precedence="true" />
> >           <fo:region-start extent="36pt" background-color="red" />
> >           <fo:region-end extent="15pt" background-color="orange" />
> >         </fo:simple-page-master>
> >       </fo:layout-master-set>
> >       <fo:page-sequence master-reference="normal"
> > white-space-collapse="true">
> >         <fo:static-content flow-name="xsl-region-before">
> >           <fo:block>
> >             r e g i o n  b e f o r e
> >           </fo:block>
> >         </fo:static-content>
> >         <fo:static-content flow-name="xsl-region-after">
> >           <fo:block>
> >             r e g i o n  a f t e r
> >           </fo:block>
> >         </fo:static-content>
> >         <fo:static-content flow-name="xsl-region-start">
> >           <fo:block>
> >             r e g i o n  s t a r t
> >           </fo:block>
> >         </fo:static-content>
> >         <fo:static-content flow-name="xsl-region-end">
> >           <fo:block>
> >             r e g i o n  e n d
> >           </fo:block>
> >         </fo:static-content>
> >         <fo:flow flow-name="xsl-region-body">
> >           <fo:block>
> >             Demonstrates an 18pt margin on the page master.
> >             The page size is 5in x 3in. On the region body we have:
> >             margin-top="18pt" margin-bottom="12pt"
> > margin-left="15pt" margin-right="36pt".
> >           </fo:block>
> >         </fo:flow>
> >       </fo:page-sequence>
> >     </fo:root>
>
> Jeremias Maerki

Reply via email to