Publish to wikitext with WebWorks – from Word or Frame

{ Posted on Nov 06 2007 by annegentle }

WebWorks Roundup Conference

I’m attending as many sessions as I can at the Quadralay WebWorks User Conference – called the WebWorks RoundUp. Right now I’m listening to a great demo using WebWorks to publish Word or Frame source files to wikitext.

Start with WIF

The WebWorks wiki defines WIF as WebWorks Intermediate Format – basically their Document Type Definition. Serendipitous search engine love for WebWorks. I hadn’t realized that when you Google “WIF” you’ll find there is a lot of academic call for the Wiki Interchange Format – a lowest common denominator of wiki content exchange. WIF defines a subset of XHTML as an over-the-wire format for wiki content exchange.

Keep it simple

He’s demonstrating the concept with headings and paragraphs only, but I would imagine that ordered and unordered lists would be simple, even nested indented lists are simple enough to mark up.

No tables, and I’ll admit, they’re a nightmare to markup in wikitext, so I sure wouldn’t tackle writing the XSLT to create tables from XML to wikitext.

Graphics you could create the wikitext for the file reference, as long as you take the time to upload the graphics to the location where the wiki is expecting them.

Generate the wikitext

He’s generating wiki markup using XSLT transforms that he has already set up.

Wikitext markup is really simple, using ASCII characters such as == heading text == to mark up a heading. In this example markup, more equals signs surrounding the heading indicate a deeper nesting of headings. Two equals signs indicate a heading 2, three === indicates a heading 3. Paragraphs are often not marked up at all, making them the simplest output of all. Refer to the wikimatrix.org’s markup comparison tool for more examples.

I would have liked to see examples of links and image references created, but this was an hour demo after all. :)

Put wikitext into your wiki

Finally, he’s copying and pasting the marked up wikitext into his wiki. For a long article where one page is one article, this approach makes a lot of sense. I could use a tool like this for the One Laptop Per Child project, where we have a Simplified user guide all in one wiki page. Each section is editable just because the wikitext is marked up using ==section name==, which is the markup for that particular wiki (MediaWiki).

And in his keynote the following day, Ben Allums demonstrated that he could publish to the wiki itself. Now THAT is an exciting development. I’ll dig deeper into the guts of that and report back.

Scenarios for converting to wikitext

I can think of plenty of scenarios for using this conversion process. Let’s say you need a hundred page user manual put into wiki format. This type of conversion would give you a huge leg up on the pre-population of a wiki with a user guide that is already in FrameMaker or Word. I would imagine you could somehow automate the webform population. For example, use IBM’s freely available CoScriptor to record the process where you create a new wiki page, then just run the CoScriptor script and paste when needed, then run another script that renames the new wiki page.

Because you can also publish directly to the wiki, but it seems to be in a way that doesn’t touch what’s already there, this method is a great way to continually update your wiki with fresh content.

Another great use of creating wikis with a conversion process would be for API documentation, especially if you already had a large body of work in a wiki. Let’s say you’re using DITA as your source file for your API, convert new portions to wikitext.

Any other scenarios for this conversion tool?


6 Responses to “Publish to wikitext with WebWorks – from Word or Frame”

  1. Try the CPAN wiki converter (http://search.cpan.org/~diberri/HTML-WikiConverter-0.61/lib/HTML/WikiConverter.pm 0r, online version at http://diberri.dyndns.org/wikipedia/html2wiki/). If you can create HTML, it is pretty easy to convert to Wiki markup.

    … and it does tables, too!

    I recently used it to convert a 1500 page FM docset into wiki pages.

  2. Wow, how many HTML pages did you get out of the FM docset that you had to copy and paste into the webform? I’m glad that it does tables, though. And there seem to be a lot of wiki engines that it’ll do wikitext markup for. Thanks for the tip!

  3. Just a quick note to say I just used that converter to convert the French translated version of the OLPC simplified user guide from HTML to Mediawiki wikitext, and it worked really well.

    For those of you who want to see the results, here you go. http://wiki.laptop.org/go/Simplified_user_guide/lang-fr

  4. Hi Rick-

    It’s good to see you’ve converted those long FM files to wiki. They’ve come out well as on the wiki page.

    I need to know what exactly the following names meany by, for me to do the same:

    1. HTML SOURCE text box
    2. Fetch HTML from URL
    3. Base URL for relative links
    4. URL for WIKI links
    5. Wiki Dialect

    I’m trying to convert, but I end up getting errors. Please add your expertise.

  5. Hi Todd – I can give it a try:

    1. HTML SOURCE text box – you could paste in all HTML code you want to convert here; or use the next option, Fetch HTML from URL
    2. Fetch HTML from URL – or, you could enter a URL of a page you want to convert.
    3. Base URL for relative links – enter the base URL that will be added to the beginning of all links that are only relative. For example, if the HTML looks like this download, enter an http://www.domainname.com/ URL to be put in front so the converter makes the Wikitext [http://www.domainname.com/filename.htm download]
    4. URL for WIKI links – used to determine which links are to wiki pages, so for example if you were for some reason converting HTML from a wiki to wikitext, you’d enter the URL of the wiki you were taking the content from, I believe. Read the wiki_uri description here: http://search.cpan.org/~diberri/HTML-WikiConverter/lib/HTML/WikiConverter.pm for more information.
    5. Wiki Dialect – choose which type of wikitext you want to convert to (wow, there are a lot of wiki engines to choose from there.) Each wiki engine has a slightly different wikitext syntax.

    Hope this helps!

  1. 1 Trackback(s)

  2. Quadralay, a wiki-driven company « just write click

Post a Comment