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
--
RichardDonkin - 13 Nov 2002
See existing converters
GenericWikiToTWikiAddOn,
DolphinToTWikiAddOn,
JSPwikiToTWikiAddOn,
KwikiToTWikiAddOn,
ZwikiToTWikiAddOn.
--
PeterThoeny - 06 Mar 2005