937
Comment: Announced first try at conversion
|
3307
Popping the trunk soon
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
* Mon 5 Sep 2005, 17:41:14 UTC: [http://wiki.wolffelaar.nl wiki.wolffelaar.nl] is the output of my current version of conversion scripts -- not much in the way of markup conversion, but revision history etc is there. Help with markup conversion badly wanted (in perl, please) --["Jeroen"] | * Mon 5 Sep 2005, 17:41:14 UTC: [http://wiki.wolffelaar.nl wiki.wolffelaar.nl] is the output of my [http://www.wolffelaar.nl/~jeroen/kwiki2moinmoin/ current version of conversion scripts] -- not much in the way of markup conversion, but revision history etc is there. Help with markup conversion badly wanted (in perl, please) --["Jeroen"] * [http://wiki.debian.net wiki.debian.net] is read-only ''(Update: as long as conversion isn't ready yet to be done, it's read/write again)'', and a dump of the database is [http://people.debian.org/~ivey available] * A script to convert the RCS files into moin moin revision files is fairly easy and will be done by ["Jeroen"]. * A script to convert the markup from kwiki to moin moin needs to be written, see below. * establish copyright/licencing situation for old and new sites (WikiLicencingTerms) (sorry) * [2005-10-02] Most is done, markup migration is good enough to really migrate now. I'm moving forward to asking the relevant admins on doing this soon --["Jeroen"] |
Line 9: | Line 14: |
* [http://wiki.debian.net wiki.debian.net] is read-only, and a dump of the database is available * A script to convert the RCS files into moin moin revision files is fairly easy and will be done by ["Jeroen"]. * A script to convert the markup from kwiki to moin moin needs to be written, see below. |
* Convert markup (see below) (mostly done!) * Test [http://wiki.wolffelaar.nl wiki.wolffelaar.nl] to spot problems in the conversion scripts by ["Jeroen"]. == Pages That Suck == === Pages That Have Sucked in the Past === * http://wiki.wolffelaar.nl/GNU * http://wiki.wolffelaar.nl/DebConf5COMASTalkScheduling * http://wiki.wolffelaar.nl/DebConf6 * http://wiki.wolffelaar.nl/DebConf6OrgSoftware |
Line 15: | Line 27: |
Any snippets appreciated. Todo: | Any snippets appreciated. Formerly to be done, now mostly done: |
Line 17: | Line 29: |
* Headers have now also a trailing set of ='s * Bold/italic/underscore are different * wikiwords that are not {{{StudlyCaps}}} are now {{{["Likethis"]}}} instead of {{{[Likethis]}}} * All the rest |
* This page looks totally ruined by the conversion: http://wiki.wolffelaar.nl/DebConf5TodoConferenceManagementSystem * The version of the script currently below fixes this page (although, WIKINAME may be overspecified below... I don't know what the actual regex is for automated links in the original wiki...) * !AbcDef must become the proper moin moin equivalent * It may be easier to just set bang_meta to true, since the methods of escaping these really suck in MoinMoin. * Some links don't convert correctly (bottom of http://wiki.wolffelaar.nl/DebConf6Meetings) * This can be fixed via something like: {{{#!perl $data =~ s/\[([^]]+) ([^] ]+)\]/[wiki:Self:$2 $1]/g; }}} * Misc other markup issues For testing the markup conversion, the following snippit may be useful: Just {{{perl foo < bleh_test|less}}} it. {{{#!/usr/bin/perl my $WIKINAME = '[A-Z]\w*[A-Z]\w*'; while (<>) { my $data = $_; #$data =~ s/_(\w)/''$1/g; #$data =~ s/(\w)_/$1''/g; # asuffield #$data =~ s/\b_(\S+)_\b/''$1''/g; # HelmutG $data =~ s/^(\*+) /' '." " x (length($1)-1) . "* "/ge; $data =~ s/^(0+) /' '." " x (length($1)-1) . "1 "/ge; $data =~ s/(_[^_]+_)/_$1_/g; $data =~ s{\[([^\]]+?)\s+($WIKINAME)\]}{qq([wiki:Self:$2 $1])}xeg; $data =~ s!\[([^]]+) ([a-z]{3,5}://[^ ]+) ([^]]+)\]!\[$2 $1 $3\]!g; # jvw $data =~ s/\*([^\n]+)\*/'''$1'''/g; #$data =~ s/^''' / \* /gm; $data =~ s/\[([a-zA-Z0-9]+)\]/["$1"]/g; #$data =~ s/\[([^]]+) ([^] ]+)\]/[wiki:Self:$2 $1]/g; $data =~ s/\[=([^]]+)\]/{{{$1}}}/g; $data =~ s/!([A-Z]a-z]+)/{{{$1}}}/g; $data =~ s/^(=+) (.*[^=])(\n)$/$1 $2 $1$3/gm; $data =~ s/\|/\|\|/g; print $data; } }}} |
Status of wiki.debian.net migration
Done
Mon 5 Sep 2005, 17:41:14 UTC: [http://wiki.wolffelaar.nl wiki.wolffelaar.nl] is the output of my [http://www.wolffelaar.nl/~jeroen/kwiki2moinmoin/ current version of conversion scripts] -- not much in the way of markup conversion, but revision history etc is there. Help with markup conversion badly wanted (in perl, please) --["Jeroen"]
[http://wiki.debian.net wiki.debian.net] is read-only (Update: as long as conversion isn't ready yet to be done, it's read/write again), and a dump of the database is [http://people.debian.org/~ivey available]
- A script to convert the RCS files into moin moin revision files is fairly easy and will be done by ["Jeroen"].
- A script to convert the markup from kwiki to moin moin needs to be written, see below.
establish copyright/licencing situation for old and new sites (?WikiLicencingTerms) (sorry)
- [2005-10-02] Most is done, markup migration is good enough to really migrate now. I'm moving forward to asking the relevant admins on doing this soon --["Jeroen"]
TODO
- Convert markup (see below) (mostly done!)
Test [http://wiki.wolffelaar.nl wiki.wolffelaar.nl] to spot problems in the conversion scripts by ["Jeroen"].
Pages That Suck
Pages That Have Sucked in the Past
Convert markup
Any snippets appreciated. Formerly to be done, now mostly done:
This page looks totally ruined by the conversion: http://wiki.wolffelaar.nl/DebConf5TodoConferenceManagementSystem
- The version of the script currently below fixes this page (although, WIKINAME may be overspecified below... I don't know what the actual regex is for automated links in the original wiki...)
AbcDef must become the proper moin moin equivalent
It may be easier to just set bang_meta to true, since the methods of escaping these really suck in MoinMoin.
Some links don't convert correctly (bottom of http://wiki.wolffelaar.nl/DebConf6Meetings)
- This can be fixed via something like:
$data =~ s/\[([^]]+) ([^] ]+)\]/[wiki:Self:$2 $1]/g;
- Misc other markup issues
For testing the markup conversion, the following snippit may be useful: Just perl foo < bleh_test|less it.
{{{#!/usr/bin/perl
my $WIKINAME = '[A-Z]\w*[A-Z]\w*';
while (<>) {
- my $data = $_;
#$data =~ s/_(\w)/$1/g; #$data =~ s/(\w)_/$1/g;
# asuffield
#$data =~ s/\b_(\S+)_\b/$1/g;
# HelmutG
- $data =~ s/^(\*+) /' '." " x (length($1)-1) . "* "/ge; $data =~ s/^(0+) /' '." " x (length($1)-1) . "1 "/ge; $data =~ s/(_[^_]+_)/_$1_/g;
$data =~ s{\[([^\]]+?)\s+($WIKINAME)\]}{qq([wiki:?$2 $1])}xeg; $data =~ s!\[([]]+) ([a-z]{3,5}://[ ]+) ([^]]+)\]!\[$2 $1 $3\]!g;
# jvw
$data =~ s/\*([^\n]+)\*/$1/g; #$data =~ s/^ / \* /gm; $data =~ s/\[([a-zA-Z0-9]+)\]/["$1"]/g; #$data =~ s/\[([]]+) ([] ]+)\]/[wiki:?$2 $1]/g; $data =~ s/\[=([^]]+)\]/$1/g; $data =~ s/!([A-Z]a-z]+)/$1/g; $data =~ s/(=+) (.*[=])(\n)$/$1 $2 $1$3/gm; $data =~ s/\|/\|\|/g; print $data;
- }
}}}