I've been working on converting the JSPWiki Cocoon wiki to MoinMoin wiki. This will enable Cocoon to make use of Apache's Wiki farm.

I've now got an initial conversion in place at: http://wiki.apache.org/cocoon/

I've converted all pages (except some specifically chosen rubbish pages). I haven't yet done anything with attachments. We need to decide whether we want to enable them on the new Wiki.

I haven't done that much in terms of converting the syntax. I've been more concerned about getting the edit log and history all hanging together. There's more I've still got to do.

For those that know Perl regular expressions, here's what I do:

 s#^\*# \*#g; # Bullet lists
 s#\{{2}#\{\{\{#gm; # Inline code snippets
 s#\}{2}#\}\}\}#gm; # Inline code snippets
 s#^\s*\!\!\!(.*)$#= $1 =#gm;   # Largest Heading
 s#^\s*\!\!(.*)$#== $1 ==#gm;  # Middle Heading
 s#^\s*\!(.*)$#=== $1 ===#gm; # Smallest Heading
 s#\[([^\]]+)\|([^\]]+)\]#[$2 $1]#gm; # URIs with labels
 s/^#/ 1./g; # Numbered lists

 # Not yet done:
 # ''Italics''
 # '''bold'''
 # __underline__
 # ^superscript^
 # ,,subscript,,
 # Note:{{{ and }}} can be `backticked`

We need to get the Moin version working well, then we can work out a migration process.

Please let me know your comments, publically or privately, so that we can get this site working really well.

Regards, Upayavira




Reply via email to