Changes between Version 15 and Version 16 of OdtExportPlugin
- Timestamp:
- Nov 7, 2015, 12:46:15 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OdtExportPlugin
v15 v16 5 5 == Description 6 6 7 This plugin scan convert a wiki page to an [http://en.wikipedia.org/wiki/Opendocument OpenDocument] Text file (ODT).7 This plugin can convert a wiki page to an [http://en.wikipedia.org/wiki/Opendocument OpenDocument] Text file (ODT). 8 8 9 9 The file can be opened with any compatible office suite, such as !OpenOffice, KOffice, IBM Symphony, etc. Currently, it has only been tested with !OpenOffice. … … 17 17 18 18 If you have any issues, create a 19 [ http://trac-hacks.org/newticket?component=OdtExportPlugin&owner=abompardnew ticket].19 [/newticket?component=OdtExportPlugin new ticket]. 20 20 21 21 [[TicketQuery(component=OdtExportPlugin&group=type,format=progress)]] … … 23 23 == Download 24 24 25 {{{ 26 #!html 25 {{{#!html 27 26 <a href="http://flattr.com/thing/47978/Trac-ODT-export-plugin" target="_blank" 28 27 style="display:block;float:right;border:none;padding:0"><img … … 31 30 }}} 32 31 33 Download the zipped source from [ download:odtexportplugin here].32 Download the zipped source from [export:odtexportplugin here]. 34 33 35 34 == Source 36 35 37 You can check out OdtExportPlugin from [ http://trac-hacks.org/svn/odtexportplugin here] using Subversion, or [source:odtexportplugin browse the source] with Trac.36 You can check out OdtExportPlugin from [/svn/odtexportplugin here] using Subversion, or [source:odtexportplugin browse the source] with Trac. 38 37 39 38 == Installation 40 39 41 This plugin was tested with Trac version 0.11. Please ensure the following python modules are installed before installing this plugin:40 This plugin was tested with Trac version 0.11. Please ensure the following Python modules are installed before installing this plugin: 42 41 43 42 * [pypi:uTidylib python-uTidyLib] … … 45 44 * [pypi:PIL python-PIL], also known as python-imaging 46 45 47 Refer to the [trac:TracPlugins Trac plugin documentation] for details on how to build and install plugins and macros. You will probably have to enable the plugin by editing the `components` section of your `trac.ini`: 48 {{{ 49 #!ini 46 Refer to the [trac:TracPlugins Trac plugin documentation] for details on how to build and install plugins and macros. You will probably have to enable the plugin by editing the `components` section of your `trac.ini` file: 47 {{{#!ini 50 48 [components] 51 49 odtexport.* = enabled … … 56 54 == Configuration 57 55 58 In `trac.ini` ,you can set a few options :59 * '''get_remote_images''' (boolean, defaults to `true`) : whether the plugin should download the remote images 56 In `trac.ini` you can set a few options : 57 * '''get_remote_images''' (boolean, defaults to `true`) : whether the plugin should download the remote images. 60 58 * '''replace_keyword''' (string, defaults to `TRAC-ODT-INSERT`) : the string in the ODT template file to replace with the wiki page content. This keyword ''must'' be unstyled and alone on its own line. If not present, the wiki content will be appended to the template. 61 59 * '''cut_start_keyword''' (string, defaults to `TRAC-ODT-CUT-START`) and '''cut_stop_keyword''' (string, defaults to `TRAC-ODT-CUT-STOP`) : the text between these strings in the ODT template will be removed. See note below for the reason for these tags. … … 66 64 67 65 Those options must be placed under a `[odtexport]` section in the `trac.ini` file: 68 {{{ 69 #!ini 66 {{{#!ini 70 67 [odtexport] 71 68 get_remote_images = False … … 81 78 The default template is named `wikipage.odt`. You can use a custom template by creating a file with this name and putting it in the `templates` directory of your Trac instance. This template will be used by default for all the pages. 82 79 83 You can also create other ODT files to be used as templates, and put them in the same directory. Then ,you can use a special macro in the wiki page to choose the template. This macro is `OdtTemplate` and can be used as such: `[[OdtTemplate(my_other_template)]]`. The `.odt` suffix will be appended, don't put it in the macro.80 You can also create other ODT files to be used as templates, and put them in the same directory. Then you can use a special macro in the wiki page to choose the template. This macro is `OdtTemplate` and can be used as such: `[[OdtTemplate(my_other_template)]]`. The `.odt` suffix will be appended, don't put it in the macro. 84 81 85 Finally, you can simplyattach the template to the page, and use the `OdtTemplate` macro to select it.82 Finally, you can attach the template to the page, and use the `OdtTemplate` macro to select it. 86 83 87 84 The order of preference when looking for the template file is: