{"id":9,"date":"2011-03-31T01:03:59","date_gmt":"2011-03-31T08:03:59","guid":{"rendered":"http:\/\/www.lorrin.org\/blog\/?p=9"},"modified":"2012-03-16T23:37:10","modified_gmt":"2012-03-17T06:37:10","slug":"jspwiki-translate-perl-and-htmlwikiconverter-moinmoin","status":"publish","type":"post","link":"https:\/\/www.lorrin.org\/blog\/2011\/03\/31\/jspwiki-translate-perl-and-htmlwikiconverter-moinmoin\/","title":{"rendered":"JSPWiki-translate-perl and HTML::WikiConverter-MoinMoin"},"content":{"rendered":"<p><a href=\"http:\/\/www.lorrin.org\/blog\/2011\/03\/30\/introducing-moinmoin-client-crypt\/\">moinmoin-client-crypt<\/a> was the fun part of a recent Wiki migration project I did. The tedious prelude was getting the content out of an aging <a href=\"http:\/\/www.jspwiki.org\/\">JSPWiki<\/a> version and into <a href=\"http:\/\/moinmo.in\/\">MoinMoin<\/a>.<\/p>\n<p>After some aborted attempts at translating the JSPWiki source from scratch, I decided the path of least resistance would be to leverage <a href=\"http:\/\/search.cpan.org\/dist\/HTML-WikiConverter\/lib\/HTML\/WikiConverter.pm\">HTML::WikiConverter<\/a> to translate the HTML output of JSPWiki. This turned out to be time consuming as well. To anyone else going down this path I offer up:<\/p>\n<ol>\n<li><a href=\"https:\/\/github.com\/lorrin\/HTML-WikiConverter-MoinMoin\">A patched version of HTML::WikiConverter-MoinMoin<\/a> that includes fixes for intra-wiki links, inline images, horizontal rules, and definition lists.<\/li>\n<li>A collection of scripts, dubbed <a href=\"https:\/\/github.com\/lorrin\/JSPWiki-translate-perl\">JSPWiki-translate-perl<\/a>, for retrieving HTML from JSPWiki, pre-processing it to make it more palatable for HTML::WikiConverter, and for generating a MoinMoin-style directory layout to contain it.<\/li>\n<\/ol>\n<p>The original author of HTML::WikiConverter-MoinMoin seems to have abandoned it. I can sympathize; I certainly hope to avoid translating another Wiki any time soon!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>moinmoin-client-crypt was the fun part of a recent Wiki migration project I did. The tedious prelude was getting the content out of an aging JSPWiki version and into MoinMoin. After some aborted attempts at translating the JSPWiki source from scratch, I decided the path of least resistance would be to leverage HTML::WikiConverter to translate the <a href='https:\/\/www.lorrin.org\/blog\/2011\/03\/31\/jspwiki-translate-perl-and-htmlwikiconverter-moinmoin\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[48],"tags":[7,5,8,56],"_links":{"self":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/9"}],"collection":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":5,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/9\/revisions\/169"}],"wp:attachment":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}