> From: Trent W. Buck <[EMAIL PROTECTED]>
 > To: Dave Kuhlman <[EMAIL PROTECTED]>
 > Cc: Michael Schutte <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
 > Sent: Thursday, July 3, 2008 6:30:23 PM
 > Subject: Re: Bug#488210: odtwriter: Uses letter instead of A4 in en_AU locale
 >
 > On Thu, Jul 03, 2008 at 11:13:15AM -0700, Dave Kuhlman wrote:
 > >| On machines which support ``paperconf``, ``odtwriter`` can insert
 > >| the default page size for your locale.  In order for this to work,
 > >| the following conditions must be met:
 > >|
 > >| 1. The program ``paperconf`` must be available on your system.
 > >|    ``odtwriter`` uses ``paperconf -s`` to obtain the paper size.
 > >|    See ``man paperconf`` for more information.
 > >|
 > >| 2. The default page height and width must be removed from the
 > >|    ``styles.odt`` used to generate the document.  A Python script
 > >|    ``rst2odt_prepstyles.py`` is distributed with ``odtwriter`` and
 > >|    is installed in the ``bin`` directory.  You can remove the page
 > >|    height and width with something like the following::
 > >|
 > >|        $ rst2odt_prepstyles.py styles.odt
 > >
 > > Trent, does it fit your needs?
 >
 > I think so, yes, as long as the default styles.odt that Debian ships
 > has already had prepstyles run over it.

Good idea.  I've added that to my build script.

I've checked in a new version: 1.3a.

But, remember that if you edit styles.odt with oowriter and save
it, oowriter inserts the page size.  So, you may need to re-run
rst2odt_prepstyles.py everytime you modify styles.py with oowriter. 
You will need to do that unless oowriter inserts the page size you
want.

You may wonder why I keep emphasizing this.  You need to understand
that the implementer of odtwriter (me, Dave) is partially color
blind.  (reds and green; I can't tell a green banana or peach from
a ripe one) So, anyone who uses the styles.odt without editing it
is using a stylesheet created by someone who is color challenged. 
Someday, hopefully, odtwriter will ship with a number of different
stylesheets for different themes in the Docutils distribution.
(compare stylesheets *.css in docutils/writers/s5_html/themes/*)
But, until then, you definitely need to consider editing
styles.odt.

Trent, a question -- When you open oowriter, modify, and save a
file, what paper size does in save?  I have not figured out how to
set a default page size in oowriter.  Does it have something to do
with Templates?  Surely oowriter does not require everyone who does
not use Letter size to reset the page size for every document, or
does it?

Of course, you can also use oowriter to set the page size in
styles.odt.  And, Trent, since you mentioned that you do not have
oowriter installed on you sub-laptop, you could do that on some
other machine.

Hope this helps.

And, if I have not said so already, thank you, Trent, for
motivating us to address this problem and for keeping us focused on
it.

- Dave

--

Dave Kuhlman
http://www.rexx.com/~dkuhlman



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to