Re: Margins and writing mode
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 > > > > http://www.w3.org/1999/XSL/Format"; > > xmlns:svg="http://www.w3.org/2000/svg";> > > > > > page-width="3in" page-height="5in" margin="18pt" writing-mode="rl"> > >> margin-left="15pt" margin-right="36pt" background-color="yellow" /> > >> precedence="true" /> > >> precedence="true" /> > > > > > > > > > >> white-space-collapse="true"> > > > > > > r e g i o n b e f o r e > > > > > > > > > > r e g i o n a f t e r > > > > > > > > > > r e g i o n s t a r t > > > > > > > > > > r e g i o n e n d > > > > > > > > > > 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". > > > > > > > > > > Jeremias Maerki
Re: Margins and writing mode
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. > OK, another entry on the todo list. This is really about getting the basic page, viewport, region geometry right not the details of the BIDI algorithm, glyphs, fonts, mirroring, > 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 > > > > http://www.w3.org/1999/XSL/Format"; > > xmlns:svg="http://www.w3.org/2000/svg";> > > > > > page-width="3in" page-height="5in" margin="18pt" writing-mode="rl"> > >> margin-left="15pt" margin-right="36pt" background-color="yellow" /> > >> precedence="true" /> > >> precedence="true" /> > > > > > > > > > >> white-space-collapse="true"> > > > > > > r e g i o n b e f o r e > > > > > > > > > > r e g i o n a f t e r > > > > > > > > > > r e g i o n s t a r t > > > > > > > > > > r e g i o n e n d > > > > > > > > > > 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". > > > > > > > > > > Jeremias Maerki Manuel
Re: Margins and writing mode
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 > > http://www.w3.org/1999/XSL/Format"; > xmlns:svg="http://www.w3.org/2000/svg";> > > page-height="5in" margin="18pt" writing-mode="rl"> >margin-left="15pt" margin-right="36pt" background-color="yellow" /> >precedence="true" /> >precedence="true" /> > > > > >white-space-collapse="true"> > > > r e g i o n b e f o r e > > > > > r e g i o n a f t e r > > > > > r e g i o n s t a r t > > > > > r e g i o n e n d > > > > > 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". > > > > Jeremias Maerki
Margins and writing mode
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 http://www.w3.org/1999/XSL/Format"; xmlns:svg="http://www.w3.org/2000/svg";> r e g i o n b e f o r e r e g i o n a f t e r r e g i o n s t a r t r e g i o n e n d 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".