Help:Converting Word Documents into Wiki Syntax
The following techniques should work with any document that can be read using the program of your choice, but generally addresses the possible needs of converting DOC and RTF files. If the following plugins do not work well for you, it is recommended that you copy/paste the text and format it with the help with the wiki toolbar.
As with the HTML converter, these converters are not perfect. You will likely have to correct small errors. For example, when converting a DOC file, you may find characters that do not convert properly, but can be easily changed with the "Replace All..." function in your text editor before copy/pasting into the wiki editing box.
Open Office (Windows and Mac)
The easiest way to convert documents for use on the UBC Wiki is to use Open Office, the free, open-source replacement for Microsoft Word. Open Office documents can be saved directly in the MediaWiki format if you have installed the Sun Wiki Publisher.
Installation
- Download the Sun Wiki Publisher plugin for OpenOffice.
- Go to Tools -> Extension Manager... and click on the "Add..." button. Find the file on your computer and click on "Open". The plugin should automatically install.
Converting
- Open the document you wish to convert.
- Go to File -> Export...
- Under "File Type:" choose "MediaWiki (.txt)" and save.
- Open the .txt file and copy/paste it into the editing box of the wiki page of your choice.
Note that images are not automatically exported. Images need to be saved then uploaded to the wiki. Placeholders for them are inserted into the exported Wiki code though.
Microsoft Word (Windows Only)
After much testing, the following plugin seems to work well with DOC files (in Word 2003), but not so well with DOCX files (in Word 2007).
Installation
- Download the Word2MediaWikiPlus plugin.
- Open Word, and go to Tools... -> Options... -> Security -> Macro Security...
- Change "Security Level" to Medium.
- On the "Trusted Publishers" tab, make sure both boxes are checked.
- Inside the file you downloaded, open Word2MediaWikiPlus_Installer.doc and hit the "Enable Macros" button when you are prompted.
- Press the "Install or updated macro" button in the document. (It should automatically install the toolbar for it.)
- Go back to "Trusted Publishers" in Macro Security and uncheck "Trust access to Visual Basic Project".
Configuring
- Image path: You can change this to your preference. This is where images will be saved on export.
- URL wiki production system: http://wiki.ubc.ca
Converting
- Open the document you wish to convert.
- Click on the "Convert to Wiki" button in the toolbar.
- Settings
- Article Name: This is the title that your article will have.
- Article Category: Optional, uncheck it if you are uncertain. You may also search the wiki for possible categories, such as "Undergraduates" or "Researching".
- Image Category: Optional. Delete any text in the second box if you are unsure of the categories.
- Additional text for image description: Optional, but might help other people searching wiki images
- Text Conversion: Generally you want to uncheck everything except "convert font size".
- Target Wiki: Production System
- Image Handling: Check "Image Extraction" if you do not already have a copy of the images as separate files.
- Image Size: Generally, choose "use full size image"
- Press Convert! then copy/paste the resulting text into the wiki editing box, and save!
- Upload any images to the wiki. If you rename any of the images before uploading, make sure to change the names on your wiki page as well.
MediaWiki.org also maintains a list of Word macros that can be installed that can help convert a Word document into wiki markup.
First draft of this page derived from: http://wiki.ubc.ca/UBC_Wiki:FAQs