While working on some Model-Glue documentation we needed to convert an open office document to TracWiki format. I'm not fluent in TracWiki and I certainly didn't want to manually format 30-40 pages. Thankfully, there is an Open Office --> TracWiki conversion macro that will automate pretty much all of it. It helps if you used the Styles features of Open Office because the TracWiki will be cleaner, but no worries, it'll convert it anyways if you didn't. Here is how it works.
- Open the Open Office document you want to copy text from. We'll call it the Source document.
- Set the macro permissions to Medium or Low by going to the menu -> Tools -> Options -> Open Office.org -> Security -> Macro Security
- Download and open the Open Office Template Macro (ODT file)
- Remove all text in the newly opened ODT file.
- Highlight the text in your Source document, copy it, then paste it into the ODT file.
- Press the button with the correct format, the text will be converted to the correct wiki format and copied to the clipboard. (English is on page 2)
- Paste the text from the clipboard into the edit box in your wiki.
You now have converted Open Office document text to wiki format.
The conversion picked nearly everything. I manually cleaned up white space issues and also added in code blocks around all the source code sections, but I was very pleased with the amount of work handled by the OpenOfficeToTracWikiScript.