import1Add my vote for this tag create new tag
, view all tags

MediaWikiToTWikiAddOnDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on MediaWikiToTWikiAddOn contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on MediaWikiToTWikiAddOn

See also MediaWikiToTWikiAddOnDevArchive

Made a first release.

-- MichaelDaum - 15 Nov 2007

Excellent, thank you very much for all the contributions! Micha rocks!

-- PeterThoeny - 16 Nov 2007

Some guys in my company created mang pages the names of which are like "How:Do:You:Do", "How:Are:You". When converting these pages, I got a "DoYouDo" page and a "AreYou" page in the "How" sub web. So I got many subwebs like "How". But in fact we don't have so many namespaces in MediaWiki. It seems the addon mistook part of a page name for a namespace. Is there any way I can get it work correctly? Thanks!

-- LijiYu - 27 Dec 2007

The colon is the separator for namespaces in MediaWiki. This is mapped to webs and subwebs converting the content to TWiki by default. So using colons in the name of a MediaWiki page was quite bad in the first place. Anyway. You can correct this error while converting the data by implementing a plugin for the conversion tool. See the Empty.pm example plugin (in the lib/TWiki/Contrib/MediaWikiToTWikiAddOn/ directory). The handler that you need to implement is called handleTitle(). It takes a page object and returns a webname,topicname tuple.

-- MichaelDaum - 27 Dec 2007

I tried. It works! Thanks a lot.

-- LijiYu - 29 Dec 2007


-- MichaelDaum - 29 Dec 2007


There are some dependencies

Can't locate Unicode/MapUTF8.pm in @INC

-- PeterJones - 25 Feb 2008

There's a bit of a problem on FreeBSD. It seems the GNU 'du' has a '-b' option whereas the FreeBSD 'du' does not and throws a lot of "du: illegal option -- b" warnings. Adding GNU coreutils and editing Converter.pm to use gdu fixes problem.

-- LarryDillon - 01 Aug 2008

Images previously displayed in-line come in as attachments, but the in-line image tags seem to be in the MediaWiki format, versus being converted to TWiki format. Am I doing something wrong? Is there a fix for this?

-- LarryDillon - 14 Aug 2008

Thanks for the great plugin! Works great, I combined the MediaWikiTablePlugin to support the tables and the ImagePlugin to support the %IMAGE% tag for in-line images.

-- EdwardMoscardini - 15 Dec 2008

The docs need to be updated on a "gotcha" reported by OctavianDrulea in Support.SID-00771: The converter crashes if an XML dump (using the dumpBackup.php script) is created that contains a full backup of all revisions. It works if only the latest revision of pages are exported.

-- PeterThoeny - 2010-09-25

I got this report from Devin Cherry via e-mail:

I'm running Twiki v5.0.1, on Ubuntu 10.04 LTS (x64). I used the MediaWikiToTWikiAddOn to import from MediaWiki:

MediaWiki release notes
MediaWiki 1.16.0
This is a stable release of the !MediaWiki 1.16 branch.

MediaWikiToTWikiAddOn (here's the addon I installed, via command-line.)

The converter threw an error in two instances:

  1. if the MediaWiki XML dump was a "full" dump, it couldn't parse. A "current" dump parsed fine, however.
  2. The MediaWikiDump.pm module (included with your converter plugin) complained about a version check.

I didn't fix the 1st error, but I've attached a patch for the 2nd, which just bumps the version number being checked. The MediaWiki pages being parsed were very simple, using no tables or anything else. It seemed to import everything reasonably well. I thought you could include this in the plugin wiki page somehow.

--- lib/CPAN/lib/Parse/MediaWikiDump.pm.old
+++ lib/CPAN/lib/Parse/MediaWikiDump.pm   2011-03-03 17:03:45.751228058 -0800
@@ -267,7 +267,7 @@
          die "$i: version is a required attribute" unless
             defined($version = $$token[1]->{version});
-         die "$i: version $version unsupported" unless $version eq '0.3';
+         die "$i: version $version unsupported" unless $version eq '0.4';
          $token = $$buffer[++$i];

Thanks Devin for the patch! Probably best to remove the test on the version as suggested at http://search.cpan.org/~triddle/Parse-MediaWikiDump-1.0.6/lib/Parse/MediaWikiDump.pm - the CPAN:Parse::MediaWikiDump should eventually be replaced by CPAN:MediaWiki::DumpFile.

-- PeterThoeny - 2011-03-04

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt mediawiki_to_twiki.pl.txt r1 manage 6.1 K 2006-12-13 - 05:47 PaulJStewart Another converter, not much different.
Texttxt mw2twiki.pl.txt r1 manage 11.9 K 2006-08-28 - 14:39 JohnSupplee Program to convert MediaWiki pages to TWiki with history
Edit | Attach | Watch | Print version | History: r42 < r41 < r40 < r39 < r38 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r42 - 2011-03-04 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.