Changeset 20373
- Timestamp:
- 11/24/04 11:55:07 (4 years ago)
- Files:
-
- ooo2dbk/trunk/CHANGES (modified) (2 diffs)
- ooo2dbk/trunk/COPYING (added)
- ooo2dbk/trunk/__init__.py (modified) (1 diff)
- ooo2dbk/trunk/config.xml (modified) (1 diff)
- ooo2dbk/trunk/copying (deleted)
- ooo2dbk/trunk/doc/README.txt (modified) (1 diff)
- ooo2dbk/trunk/doc/TODO.txt (modified) (1 diff)
- ooo2dbk/trunk/ooo2dbk.py (modified) (2 diffs)
- ooo2dbk/trunk/ooo2dbk.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ooo2dbk/trunk/CHANGES
r20372 r20373 4 4 New features: 5 5 ~~~~~~~~~~~~~ 6 - ooo2dbk is now distributed as a product in itself and not as PortalTransforms7 plugin.6 - The modified ooo2dbk is now distributed by Nuxeo as a product in itself and 7 not as PortalTransforms plugin. 8 8 - Added doc. 9 9 - Added -zFILE/--zipfile=FILE option for generating zipped archive of output 10 Docbook document with subobjecs (if any)10 Docbook document with subobjecs (if any). 11 11 - Running ooo2dbk with sxw filename containing spaces without -d/--dbkfile 12 12 option like ./ooo2dbk /tmp/my doc one.sxw will result in generating output … … 15 15 ~~~~~~~~~~ 16 16 - When running ./oo2dbk.py /tmp/mydoc.sxw images were created in current 17 directory and output Docbook file in /tmp. Now if -d/--dbkfile is om mited,17 directory and output Docbook file in /tmp. Now if -d/--dbkfile is omitted, 18 18 all generated output is stored in current directory. 19 19 - Using -z/--zipfile option spontaneously led to arising UnicodeDecodeError 20 20 when writing to zip archive generated images. To avoid that string that 21 21 represents path to image(filesystem path and path in zipped archive), before 22 using in zip archive operati ns is encoded with locale preferred encoding23 like: unicode(path_to_img).encode(locale.getpreferredencoding()) 22 using in zip archive operations is encoded with locale preferred encoding 23 like: unicode(path_to_img).encode(locale.getpreferredencoding()). 24 24 - Running ooo2dbk with sxw filename containing spaces without -d/--dbkfile 25 25 option like ./ooo2dbk /tmp/my doc one.sxw led to confusion of xsltproc, 26 26 so it couldn't write to output file. Fixed with replacing in output Docbook 27 filename spaces with '_' 27 filename spaces with '_'. 28 28 New internal features: 29 29 ~~~~~~~~~~~~~~~~~~~~~~ 30 - using optparse module instead of old custom one for command line parsing 31 - thanks to optparse module and automatic 'help' generation old stuff for 32 'help' handling is no longer necessary 33 - using standard python-mode.el formatting: 1 tab is replaced with 4 spaces all 34 over the code 35 - some renaming inside the code 36 30 - Using optparse module instead of old custom one for command line parsing. 31 - Thanks to optparse module and automatic 'help' generation old stuff for 32 'help' handling is no longer necessary. 33 - Using standard python-mode.el formatting: 1 tab is replaced with 4 spaces all 34 over the code. 35 - Some renaming inside the code. ooo2dbk/trunk/__init__.py
r20369 r20373 2 2 # OOo2DBK : OpenOffice-Writer to Docbook 3 3 #=================================================== 4 # Copyright (c) 2004 Nuxeo SARL <http://nuxeo.com> 4 5 # Copyright (c) 2002 Eric Bellot <ebellot@netcourrier.com> 5 # Copyright (c) 2004 Nuxeo SARL <http://nuxeo.com>6 6 # 7 # Authors : Eric Bellot http://www.chez.com/ebellot/ooo2sdbk/ 8 # Nuxeo SARL <http://nuxeo.com> 7 # Authors: 8 # Eric Bellot <ebellot@netcourrier.com> 9 # Nuxeo SARL <http://nuxeo.com> 9 10 # 10 11 # This program is free software; you can redistribute it and/or modify ooo2dbk/trunk/config.xml
r20287 r20373 21 21 ]> 22 22 <!-- 23 ============================ =24 OOo2 sDBK - Configuration File25 ============================ =23 ============================ 24 OOo2DBK - Configuration File 25 ============================ 26 26 --> 27 27 <config> ooo2dbk/trunk/doc/README.txt
r20360 r20373 5 5 http://docbook.org/tdg/en/html/ 6 6 7 The original version of ooo2dbk is ooo2sdbk which still can be found at 8 http://www.chez.com/ebellot/ooo2sdbk/ 9 7 10 Use the "template.*.stw" OpenOffice.org template file to create your own OOo 8 11 documents. 9 12 10 13 At the moment only "fr" and "en" templates are provided. 11 12 ooo2dbk/trunk/doc/TODO.txt
r20359 r20373 2 2 TODO 3 3 4 - Provide "template.*.stw" OpenOffice.org template files with the product. 5 ooo2dbk/trunk/ooo2dbk.py
r20370 r20373 1 1 #!/usr/bin/python 2 # Copyright (c) 2004 Nuxeo SARL <http://nuxeo.com> 2 3 # Copyright (c) 2002 Eric Bellot <ebellot@netcourrier.com> 3 # Copyright (c) 2004 Nuxeo SARL <http://nuxeo.com>4 4 # 5 # Authors : Eric Bellot http://www.chez.com/ebellot/ooo2sdbk/ 6 # Nuxeo SARL <http://nuxeo.com> 5 # Authors: 6 # Eric Bellot <ebellot@netcourrier.com> 7 # Nuxeo SARL <http://nuxeo.com> 7 8 # 8 9 # This program is free software; you can redistribute it and/or modify … … 23 24 # 24 25 # $Id$ 25 26 26 27 27 import zipfile ooo2dbk/trunk/ooo2dbk.xsl
r20358 r20373 4 4 ]> 5 5 <!-- 6 OOo2sDBK : OpenOffice-Writer to Docbook 7 8 Authors 9 * Eric Bellot http://www.chez.com/ebellot/ooo2sdbk/ 10 * Stefan Rinke http://www.stefan-rinke.de/articles/publish/ 11 * Nuxeo http://www.cps-project.org/ 12 13 Copyright 6 Copyright (c) 2004 Nuxeo SARL <http://nuxeo.com> 7 Copyright (c) 2003 Stefan Rinke <stefan@stefan-rinke.de> 8 Copyright (c) 2002 Eric Bellot <ebellot@netcourrier.com> 9 10 Authors: 11 * 2004 Nuxeo SARL <http://nuxeo.com> 12 * 2003 Stefan Rinke <stefan@stefan-rinke.de> 14 13 * 2002 Eric Bellot <ebellot@netcourrier.com> 15 * 2003 Stefan Rinke <stefan@stefan-rinke.de>16 * 2004 Nuxeo17 14 18 15 This script is free software; you can redistribute it and/or
