MoinMoin OpenDocument Formatter

General

This formatter creates an OpenDocumentText (.odt) file from a MoinMoin page. OpenDocument is the standard file format for OpenOffice.org and KOffice and can be imported by many other applications. Furthermore, by converting the output file with OpenOffice.org you can easily create MS Word or PDF files.

After installing (please read file INSTALL.txt) you should see a new entry in your MoinMoin action menu: "Render As OpenDocument".

Version information (0.9, April 2010)

MoinMoin2ODF 0.9 is the current version, tested with MoinMoin 1.9. I'm planning to do a more feature complete version (ToC links are still missing). However since I haven't the time at the moment I wanted to release at least something working for MoinMoin 1.9.

Version information (0.8, May 2009)

MoinMoin2ODF 0.8 is the newest version, tested with MoinMoin 1.7 and 1.8. If you run older MoinMoin versions, you might be interested in MoinMoin2ODF 0.6 (tested with MoinMoin 1.6) or MoinMoin2ODF 0.5 (tested with MoinMoin 1.5).

They all can export most MoinMoin tags to OpenDocument format, including tables, lists and images. The differences are: Since 0.7 MoinMoin2ODF now properly escapes URLs, so that Weblinks like "http://foo.bar?a=1&b=2" work. Since MoinMoin2ODF 0.8 the Include macro works.

You'll find installation help in file INSTALL.txt for the following target systems:

System

Installation Help / section

MoinMoin on Linux

INSTALL.txt / Automatic Install

MoinMoin on Windows XP

INSTALL.txt / Automatic Install

MoinMoin Packages from Linux Distribution

INSTALL.txt / Manual Linux Install

MoinMoin DesktopEdition

INSTALL.txt / Manual Install for MoinMoin DesktopEdition

Known Issues:

User Feedback for MoinMoin2ODF 0.7 - 0.9

It would be nice if you could provide me with some feedback here. Thanks a lot! :)

User Feedback for MoinMoin2ODF 0.1 - 0.6

Hi Hans Peter Schaal,

thanks for working on this formatter. I guess many people will be interested in a formatter for OOo. ;) While I don't have a 1.5 testwiki here I can't try out. It would be nice to have a version for 1.6 too. Some comments about the code.

cheers ReimarBauer/Photo/img.png -- ReimarBauer 2008-02-23 22:28:57


Hi Hans-Peter, many thanks for this converter!! Cheers!


Debian developer speaking: do NOT do as documented in INSTALL.txt for Debian packages. It is incredibly complicated and puts you at risk of breaking your system. Simply ship the plugins with your MoinMoin instance, or directly in /usr/local/lib/python2.X/MoinMoin/. I also noticed some other issues:


I tried your advice and copied the MoinMoin subdirectory to /usr/local/lib/python.../ or /usr/local/lib/python.../site_packages/ but didn't succeed.

However I think your first hint is just the solution: If automatic install doesn't work, just ship both files with your MoinMoin instance. While this may be a bit costly for users with multiple wiki instances I guess that such advanced users install the original MoinMoin packages.

Hans-Peter


Note from moin2 development:

I think we could do opendocument <-> wiki markup much better and easier in moin2, but there is no real converter yet.

It is easier now to write one, as we have a "moin DOM tree" as intermediate format now, so you only need to convert opendocument to/from DOM, not to/from any other markup.

What we have already is a very simple opendocument to text/plain converter that can be used for search indexing, but it just unpacking and throwing the tags away, so not usable for anything else than indexing.

If someone is interested in working on this, join us on MoinMoinChat.

-- ThomasWaldmann 2012-01-04 16:55:16


hi, thanks for this formatter. Unfortunately it doesn't work with my installation (MoinMoin 1.9.8 with Apache 2.4 @ Debian Jessie). Webserver log files:

mod_wsgi (pid=6596): Exception occurred processing WSGI script '/usr/share/moin/server/moin.wsgi'.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 588, in __call__
return self.app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 285, in __call__
return response(environ, start_response)
File "/usr/lib/python2.7/dist-packages/werkzeug/wrappers.py", line 1207, in __call__
start_response(status, headers)
ValueError: space character present in header name

Any hint how to solve this? Thanks!

MoinMoin: FormatterMarket/MoinMoin2ODF (last edited 2015-10-06 12:21:54 by p5DD3F1C9)