Converting word documents into a Trac wiki format

5,754

Solution 1

Forget all those tools.

Microsoft Word allows you to export in HTML. Export HTML, copy-paste, remove 'html' 'head' and 'body' tags, and surround with HTML WikiProcessor.

If the styles don't come through well, try exporting to RTF and using an RTF to HTML converter. Then proceed.

Solution 2

OpenOffice.org has builtin functionality to export in wiki format. You can also easily convert between Word documents and OOo's .odt format prior to exporting.

File -> Export (set format to MediaWiki)

Wikipedia also has a list of Wiki Tools, coincidentally. Section 6 is what you're interested in.


Edit:

Since I was unaware that Trac uses a different format, Trac also provides some tools to convert from MediaWiki syntax to Trac syntax. You can use these after using any of the aforementioned tools.

Solution 3

Be sure and check these out:

Share:
5,754
J. Polfer
Author by

J. Polfer

Updated on September 17, 2022

Comments

  • J. Polfer
    J. Polfer over 1 year

    I'm working on a development team that uses Trac to maintain a software product that we are developing, and after working with our technical writer, we decided that we should try to put our test procedure documents into our wiki.

    Unfortunately, these are all Word docs. Mostly Word 2003. We just converted to Word 2k7, so I have its conversion abilities available.

    Does anyone know of a way that I can convert my word documents into wiki-formatted text? I tried looking at Word2Wiki but the app says it doesn't work with Word2k7.

    I'm also okay with converting our word documents to another, intermediary format, before converting it to wiki.

  • Chathuranga Chandrasekara
    Chathuranga Chandrasekara almost 15 years
  • Ivo Flipse
    Ivo Flipse almost 15 years
    Oops I only just now notice the Word2Trac script is in Arathorn's answer :-(
  • J. Polfer
    J. Polfer almost 15 years
    +1 for pointing out that you can use this HTML WikiProcessor with Trac. Very cool. However, I am running into issues with style tag that are throwing errors in Trac.
  • J. Polfer
    J. Polfer almost 15 years
    I tried using the latter option you mentioned, and its much better. Used DocFrac to convert the RTF to HTML. There were a number of characters that didn't translate that well and had to be search&replaced, but that can be automated with sed. Very useful!