Tags:
create new tag
view all tags

Question

. I'd like to import pages created in http://wiki.cs.uiuc.edu/VisualWorks/WikiWorks into an existing TWiki. The problem is the formats are different. Is there any known way of doing this?

  • Web server: Apache
  • Server OS: Solaris

-- TWikiGuest - 13 Nov 2002

Answer

You will need to write some Perl code - simplest approach is to convert raw text from WikiWorks to TWiki format. For inspiration, and maybe some useful code, see UseModWikiToTWikiAddOn and DolphinToTWikiAddOn which convert from two other Wikis.

Comparing WikiWorks syntax to TWiki's TextFormattingRules is a good start. It's only worth converting the high-volume formatting by scripts, if it is complex or used on few pages it is probably quicker to edit them by hand. Finding a tame Unix/Perl coder is recommended if you aren't one, but if you know regular expressions it shouldn't be too hard...

Basically, your code can be a large set of substitute (s///) commands - if you know Unix and particularly sed, have a look at the global replace script in WindowsInstallCookbook (search for -pi on that page), this edits files in place which is particularly easy to do.

Of course, you should take backups before any conversion runs smile

-- RichardDonkin - 13 Nov 2002

See existing converters GenericWikiToTWikiAddOn, DolphinToTWikiAddOn, JSPwikiToTWikiAddOn, KwikiToTWikiAddOn, ZwikiToTWikiAddOn.

-- PeterThoeny - 06 Mar 2005

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-03-06 - 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.