IvanWalsh.com – Learn How To Run Your Business Online header image 2

Convert Microsoft Word documents to MediaWiki markup

May 28th, 2009 · View Comments · How To

This s a Word Visual Basic macro. Usage requires Microsoft Word that supports Visual Basic macros  (Word 97+).

Features
  • Replaces smart quotes/double-quotes with dumb equivalents
  • Escapes the following characters: * # { } [ ] ~ ^^ | '
  • Converts external hyperlinks
  • Converts H1-H5 headings
  • Converts bold/italic/underline/strikethrough/superscript/subscript formatting
  • Converts bulleted/numbered lists
  • Converts simple tables.
Caveats
  • No guarantees, no official support, just like the
  • No in-document hyperlink conversion
  • May not work well with documents that have highly customized styles/templates. It works best with documents written in the default "Normal" template
  • Nested tables have not been tested and may not function as expected.
  • Image/graphics/figures are not supported.
Installation
  1. Download the Word2MediaWiki macro library
  2. Start Word
  3. Bring up the Visual Basic Editor (Tools->Macro->Visual Basic Editor or Alt+F11).
  4. From the VBE, import the macro library (File->Import File…) and select the file you downloaded.
Usage
  1. Open a word document to convert
  2. Run the Word2MediaWiki macro by bringing up the Macros dialog (Tools->Macro->Macros… or Alt+F8), selecting Word2MediaWiki and clicking Run.
  3. The macro converts the document to MediaWiki markup and places a copy of the content on the system clipboard.
  4. Switch to a MediaWiki editor and paste the result.

Related posts:

  1. Using Microsoft Word to Create Large Documents – Lesson 1 I’m often asked for tips on how to write large...
  2. How to convert Microsoft Word documents into Adobe FrameMaker This article explains how to convert large files between Microsoft...
  3. Introduction to Word Templates Templates are a special type of Microsoft Word document that...
  4. Using Microsoft Word to Create Large Documents – Lesson 1 I’m often asked to give pointers on working with large...
  5. How to use Word to write large documents The main issues with creating long docs in Word tend...

Tags: ·

View Comments so far ↓

Like gas stations in rural Texas after 10 pm, comments are closed.