Changes between Version 8 and Version 9 of PageToOdtPlugin


Ignore:
Timestamp:
Sep 20, 2007, 10:24:56 PM (7 years ago)
Author:
JasonWinnebeck
Comment:

python 2.5 ticket link, English example, tutorial on creating empty.odt, and limitations

Legend:

Unmodified
Added
Removed
Modified
  • PageToOdtPlugin

    v8 v9  
    99=== Dependencies ===
    1010
    11 The plugin uses ElementTree. If you're using python 2.4, make sure it is installed.
    12 With python 2.5, you may need to change a bit the import instruction in the source since elementtree is present in this release of python. I will fix that ASAP.
     11The plugin uses the cElementTree Python module (and not the standard elementtree). If you're using python 2.4, make sure it is installed. On Debian/Ubuntu systems you can use `apt-get install python-celementtree`.
     12With python 2.5, you may need to change a bit the import instruction in the source since elementtree is present in this release of python. I will fix that ASAP, but a patch is available at #1736.
    1313
    1414=== Enable the plugin ===
     
    2121The configuration of the plugin and the template odt file are read from a wiki page, !PageToOdtStyles.
    2222This page must exist for the plugin to work. Its content is a key/value pair list defining what attached
    23 file to use as a template and what predefined styles to use :
     23file to use as a template and what predefined styles to use. Below is an example for the French version of OpenOffice:
    2424
    2525{{{
     
    4646}}}
    4747}}}
     48
     49If using the English version, here is a template, contributed by JasonWinnebeck:
     50
     51{{{
     52{{{
     53style_standard = Text body
     54style_heading_1 = Heading 1
     55style_heading_2 = Heading 2
     56style_heading_3 = Heading 3
     57style_heading_4 = Heading 4
     58style_heading_5 = Heading 5
     59style_heading_6 = Heading 6
     60style_heading_7 = Heading 7
     61
     62style_unordered_list = List 1
     63
     64style_ordered_list = Numbering 1
     65
     66style_inline = Source Text
     67style_bold = Strong Emphasis
     68style_italic = Emphasis
     69style_bolditalic = Strong Emphasis
     70
     71template = empty.odt
     72}}}
     73}}}
     74
     75You also need to attach a file `empty.odt` to that page. You can create this file by creating a new OOo Writer document and saving the blank document as `empty.odt`, and then attaching it to the page. Because the default OOo template does not have a built-in style for bold+italic, the examples above map bold+italic to just bold. You could create such a style (or any other styles) before saying the empty.odt.
     76
     77== Limitations ==
     78
     79 * no support for exporting images
     80 * Per #2065, internal Trac links are not working
    4881
    4982== Bugs/Feature Requests ==