On Sat, Jun 28, 2008 at 07:28:06PM +0200, Michael Schutte wrote: > On Sun, Jun 29, 2008 at 01:41:27AM +1000, Trent W. Buck wrote: > > The behaviour I'd expect ("least suprise") is for the locale-specific > > papersize to be used *unless* the user supplies a stylesheet > > (--stylesheet or --stylesheet-path) that sets the paper size. > > > > Can the stylesheet (template?) abstain from specifying a papersize? > > According to the OpenDocument spec, fo:page-height and fo:page-width are > indeed optional [15.2.1]. When a document without a paper size is > opened in OpenOffice.org, it seems to infer it from the locale settings > (de_AT generates A4-sized documents while C gives Letter).
Can this be overridden with PAPERSIZE (i.e. oo.org honours PAPERSIZE) when the template doesn't specify fo:paper- values? e.g. env PAPERSIZE=A4 LC_ALL=C oowriter foo.odt If so, I think all rst2odt has to do is make sure that the default template doesn't contain the fo:paper- values. > I guess it would be elegant if rst2odt could choose the dimensions > using paperconf (or pick Letter as a last resort, if paperconf isn’t > present) when those attributes are not given in the stylesheet. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]