Automatic conversion to wiki markup
From WhyNotWiki
Contents |
[edit] [MediaWiki (category)]
http://en.wikipedia.org/wiki/Wikipedia:Tools/Editing_tools#Wikisyntax_conversion_utilities
[edit] From tables
- User:Cacycle/wikEd editor extension functionality, see above
- The CSV to Wikipedia converter allows you to convert tables in CSV format into the MediaWiki syntax for tables (or to HTML, if you prefer). This way you can import tables directly from spreadsheet applications like Excel or from databases. For more information, see de:Benutzer:Duesentrieb/csv2wp (en). (by de:Duesentrieb).
- The HTML::WikiConverter module (mentioned below) is also capable of table conversion.
[edit] From HTML
- User:Cacycle/wikEd editor extension functionality, see above
- An AJAX interface for the HTML::WikiConverter http://labs.seapine.com/htmltowiki.cgi
- An online interface for converting plain HTML to MediaWiki syntax is available at http://diberri.dyndns.org/html2wiki.html. It is based on the Perl module HTML::WikiConverter which performs html→wiki conversion and is available on CPAN. (by en:Diberri)
- Another HTML to Wiki converter is available online at http://www.dwheeler.com/html2wikipedia/
- A Google Web Toolkit(AJAX) based HTML to Wiki converter is available online at http://www.jtidy.de
- A browser based HTML to Wiki converter Emiliano Bruni's HTML2Wiki Converter (also using Perl module HTML::WikiConverter)
[edit] From LaTeX
- LaTeX2wiki converts sections, math, and references using a web form.
[edit] From source codes
- A Google Web Toolkit(AJAX) based source code to Wiki converter is available online at http://www.jtidy.de. Code snippets from the following languages are syntax highlighted: ABAP(only for keywords in uppercase form), C#, HTML, Java, JavaScript, PHP and XML.
[edit] [Socialtext (category)]
Socialtext Conversion Toolbox (http://www.socialtext.net/open/index.cgi?socialtext_conversion_toolbox).
The Socialtext Conversion Toolbox includes tools to convert existing content and export it into Socialtext wiki workspaces. These tools are currently in beta - we are happy to work with users to improve them when issues are found.There are two main steps:
1. Converting HTML Files into Socialtext Markup 2. Using 'strut' to import files into a Socialtext Workspace
The import functionality is available on both our hosted service and in Socialtext Open.
There are additionally some conversion scripts in our repository, which can be checked out using subversion at: https://repo.socialtext.net:8999/svn/socialtext-clients/trunk
The converters are in the
rest/convertersdirectory.
Converting HTML Files into Socialtext Markup (https://www.socialtext.net/open/index.cgi?converting_html_files_into_socialtext_markup).
- Generate an HTML dump for each of your files to convert, reducing the files to just the part wanting conversion
- Get HTML::WikiConverter::Socialtext
- To see an example of how this will work, you can test conversion on the fly at http://diberri.dyndns.org/wikipedia/html2wiki/
- Make a directory for your output
- For each file:
- html2wiki --dialect Socialtext <file> > <output_dir>/filename
- Note that we do not currently have an automated way to grab the title from the file, you'll need to get that bit yourself for the later 'strut' step
Once this is done you can import the files using 'strut'
Using 'strut' to import files into a Socialtext Workspace
- Install Socialtext::Resting from cpan at http://search.cpan.org/dist/Socialtext-Resting/
- Configure your strut instance by running 'strut' with no options (it will ask for your username, password, server instance)
- For each page do:
- strut set_page workspace "Page name" filename
- You can also add attachments
- strut add_attachment workspace page_name attachment.ext
- And tags
- strut set_tags workspace page_name tag1 tag2 "tag 3"
Aliases: Conversion to wikitext, Wikitext transformation tools
