[silva-dev] silva2odt.py -- yet another update
dkuhlman at rexx.com
Tue Aug 28 00:27:53 CEST 2007
One more version of silva2odt.py You can find the latest version
I've run the standard Silva docs through silva2odt.py, and
things look the way I expected. Actually, they did after I made a
fix or two.
Thanks much to Marc Petitmermet for his work on and help with
Perhaps someone could tell me whether you think it's ready to be
submitted into the Silva SVN repository. I'd be happy to do that
if you want it there and if someone can tell me how to do it, where
to put it, etc. And, if you want me to do it, I'd need a password.
A list of recent changes is below.
- There is now a flag that enables the user to enter a scaling
factor for images. The default value is 1.0. Values larger
than 1.0 produce larger images; values smaller than 1.0 produce
- Image size/scaling -- Marc Petitmermet did some serious work
helping me with the scaling of images. Because of his help and
guidance, it looks like we've got images coming out about the
right size. Still, there is now a new command line flag
(-i/--image-scale) which can be used to adjust the size of
images. --image-scale=x with values of x greater than 1.0 make
images larger and values less than 1.0 make images smaller.
- When a URL is attached to an image, silva2odt was not generating
the hyperlink. silva2odt now wraps the image with a link. It
uses the following node attributes in the following order of
priority: (1) rewritten_link, (2) rewritten_path, (3) link.
- Table border size -- silva2odt now generates appropriate border
thickness for table types, specifically:
- plain -- no border (although oowriter shows it as a faint
grey line during editing)
- list -- 0.05pt black
- grid -- 1.00pt black
- datagrid -- 2.50pt black
- Removed extra blank lines that previously were generated before
the start of bullet and enumerated lists.
More information about the silva-dev