Difference between revisions of "Converting Various Markup to MediaWiki"

From OPeNDAP Documentation
(Using online tools)
(Converting Latex)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
=Converting HTML=
 +
 
==Using Perl on your own computer==
 
==Using Perl on your own computer==
  
Grab the HTML-WikiConverter, build it and follow the directions. You will need to supply the HTML file names on the command line and capture the output (the program writes to standard output) and then open a MediaWiki page for editing and paste the MediaWiki markup. Fairly painless unless you're working with a complex, multipage document.
+
Grab the [http://search.cpan.org/dist/HTML-WikiConverter/ HTML-WikiConverter], build it and follow the directions. You will need to supply the HTML file names on the command line and capture the output (the program writes to standard output) and then open a MediaWiki page for editing and paste the MediaWiki markup. Fairly painless unless you're working with a complex, multipage document.
  
 
NB: This coverter does not like <code>&lt;div&gt;</code> tags.
 
NB: This coverter does not like <code>&lt;div&gt;</code> tags.
Line 14: Line 16:
 
** This uses plain HTTP: http://labs.seapine.com/htmltowiki.cgi
 
** This uses plain HTTP: http://labs.seapine.com/htmltowiki.cgi
 
** This uses HTTPS: https://wiki.uww.edu/converter.php
 
** This uses HTTPS: https://wiki.uww.edu/converter.php
 +
 +
=Converting TWiKi=
 +
 +
Use [http://wiki.ittoolbox.com/index.php/Code:Twiki2mediawiki Twiki2mediawiki] to convert TWiKi pages to MediaWiki markup. Once converted, use copy and paste to move the new markup into the pages after opening the page's edit window.
 +
 +
=Converting Latex=
 +
 +
We're making modifications to Latex2MediaWiki.py so that it will support our particular latex styles. This script can be found in our subversion archive at http://scm.opendap.org:8090/trac/browser/trunk/Doc/Latex2wiki.py.
 +
 +
=More info...=
 +
 +
See the [http://en.wikipedia.org/wiki/Wikipedia:Tools/Editing_tools#Wikisyntax_conversion_utilities page on WikiPedia] about conversions like Word to MediaWiki, CSV to MediaWiki, et c.

Latest revision as of 23:23, 20 March 2007

1 Converting HTML

1.1 Using Perl on your own computer

Grab the HTML-WikiConverter, build it and follow the directions. You will need to supply the HTML file names on the command line and capture the output (the program writes to standard output) and then open a MediaWiki page for editing and paste the MediaWiki markup. Fairly painless unless you're working with a complex, multipage document.

NB: This coverter does not like <div> tags.

1.2 Using online tools

These are web pages (CGIs) which run the HTML-WikiConverter software, so any limitations of the above software apply to this as well. However, they save you the trouble of getting the code and building it.

2 Converting TWiKi

Use Twiki2mediawiki to convert TWiKi pages to MediaWiki markup. Once converted, use copy and paste to move the new markup into the pages after opening the page's edit window.

3 Converting Latex

We're making modifications to Latex2MediaWiki.py so that it will support our particular latex styles. This script can be found in our subversion archive at http://scm.opendap.org:8090/trac/browser/trunk/Doc/Latex2wiki.py.

4 More info...

See the page on WikiPedia about conversions like Word to MediaWiki, CSV to MediaWiki, et c.