Automatic conversion to wiki markup

From WhyNotWiki

Jump to: navigation, search

Contents

[edit] [MediaWiki (category)]

http://en.wikipedia.org/wiki/Wikipedia:Tools/Editing_tools#Wikisyntax_conversion_utilities


[edit] From tables

[edit] From HTML

[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). Retrieved on 2007-05-11 11:18.


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/converters directory.

Converting HTML Files into Socialtext Markup (https://www.socialtext.net/open/index.cgi?converting_html_files_into_socialtext_markup). Retrieved on 2007-05-11 11:18.


  • Generate an HTML dump for each of your files to convert, reducing the files to just the part wanting conversion
  • Get HTML::WikiConverter::Socialtext
  • 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

Personal tools