Changeset 20373

Show
Ignore:
Timestamp:
11/24/04 11:55:07 (4 years ago)
Author:
madarche
Message:

Some more cleaning.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ooo2dbk/trunk/CHANGES

    r20372 r20373  
    44New features: 
    55~~~~~~~~~~~~~ 
    6 - ooo2dbk is now distributed as a product in itself and not as PortalTransforms 
    7   plugin. 
     6- The modified ooo2dbk is now distributed by Nuxeo as a product in itself and 
     7  not as PortalTransforms plugin. 
    88- Added doc. 
    99- 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). 
    1111- Running ooo2dbk with sxw filename containing spaces without -d/--dbkfile 
    1212  option like ./ooo2dbk /tmp/my doc one.sxw will result in generating output 
     
    1515~~~~~~~~~~ 
    1616- 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 ommited, 
     17  directory and output Docbook file in /tmp. Now if -d/--dbkfile is omitted, 
    1818  all generated output is stored in current directory. 
    1919- Using -z/--zipfile option spontaneously led to arising UnicodeDecodeError 
    2020  when writing to zip archive generated images. To avoid that string that 
    2121  represents path to image(filesystem path and path in zipped archive), before 
    22   using in zip archive operatins is encoded with locale preferred encoding 
    23   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()). 
    2424- Running ooo2dbk with sxw filename containing spaces without -d/--dbkfile 
    2525  option like ./ooo2dbk /tmp/my doc one.sxw  led to confusion of xsltproc, 
    2626  so it couldn't write to output file. Fixed with replacing in output Docbook 
    27   filename spaces with '_' 
     27  filename spaces with '_'. 
    2828New internal features: 
    2929~~~~~~~~~~~~~~~~~~~~~~ 
    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  
    22# OOo2DBK : OpenOffice-Writer to Docbook 
    33#=================================================== 
     4# Copyright (c) 2004 Nuxeo SARL <http://nuxeo.com> 
    45# Copyright (c) 2002 Eric Bellot <ebellot@netcourrier.com> 
    5 # Copyright (c) 2004 Nuxeo SARL <http://nuxeo.com> 
    66# 
    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> 
    910# 
    1011# This program is free software; you can redistribute it and/or modify 
  • ooo2dbk/trunk/config.xml

    r20287 r20373  
    2121]> 
    2222<!-- 
    23 ============================= 
    24 OOo2sDBK - Configuration File 
    25 ============================= 
     23============================ 
     24OOo2DBK - Configuration File 
     25============================ 
    2626--> 
    2727<config> 
  • ooo2dbk/trunk/doc/README.txt

    r20360 r20373  
    55http://docbook.org/tdg/en/html/ 
    66 
     7The original version of ooo2dbk is ooo2sdbk which still can be found at  
     8http://www.chez.com/ebellot/ooo2sdbk/ 
     9 
    710Use the "template.*.stw" OpenOffice.org template file to create your own OOo 
    811documents. 
    912 
    1013At the moment only "fr" and "en" templates are provided. 
    11  
    12  
  • ooo2dbk/trunk/doc/TODO.txt

    r20359 r20373  
    22TODO 
    33 
     4- Provide "template.*.stw" OpenOffice.org template files with the product. 
     5 
  • ooo2dbk/trunk/ooo2dbk.py

    r20370 r20373  
    11#!/usr/bin/python 
     2# Copyright (c) 2004 Nuxeo SARL <http://nuxeo.com> 
    23# Copyright (c) 2002 Eric Bellot <ebellot@netcourrier.com> 
    3 # Copyright (c) 2004 Nuxeo SARL <http://nuxeo.com> 
    44# 
    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> 
    78# 
    89# This program is free software; you can redistribute it and/or modify 
     
    2324# 
    2425# $Id$ 
    25  
    2626 
    2727import zipfile 
  • ooo2dbk/trunk/ooo2dbk.xsl

    r20358 r20373  
    44]> 
    55<!-- 
    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 
     6Copyright (c) 2004 Nuxeo SARL <http://nuxeo.com> 
     7Copyright (c) 2003 Stefan Rinke <stefan@stefan-rinke.de> 
     8Copyright (c) 2002 Eric Bellot <ebellot@netcourrier.com> 
     9 
     10Authors: 
     11  * 2004 Nuxeo SARL <http://nuxeo.com> 
     12  * 2003 Stefan Rinke <stefan@stefan-rinke.de> 
    1413  * 2002 Eric Bellot <ebellot@netcourrier.com> 
    15   * 2003 Stefan Rinke <stefan@stefan-rinke.de> 
    16   * 2004 Nuxeo  
    1714 
    1815This script is free software; you can redistribute it and/or