fsedu-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fsedu-developers] Re: oddmuse wiki export (start of)


From: Alex Schroeder
Subject: [Fsedu-developers] Re: oddmuse wiki export (start of)
Date: Tue, 27 Jan 2004 03:04:48 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/22.0.0 (gnu/linux)

James Michael DuPont <address@hidden> writes:

> 2. to be able to export the wiki to another wiki

I think you'd be better off working with the page database directly.
In Perl, read every page file into a string, and use %Page =
ParseData($str).  The raw text is in $Page{text}.

sub ParseData {
  my $data = shift;
  my %result;
  while ($data =~ /(\S+?): (.*?)(?=\n[^\t]|\Z)/sg) {
    my ($key, $value) = ($1, $2);
    $value =~ s/\n\t/\n/g;
    $result{$key} = $value;
  }
  return %result;
}

Calling such a tiny Perl script on every page and concatenating the
result should be trivial, and much simpler than patching Oddmuse.

> 3. see some ideas from me here http://wiki.dotgnu.org/TaskRdfWiki

Did you see these two?
http://www.usemod.com/cgi-bin/mb.pl?RdfForWikis and
http://www.srcf.ucam.org/~cjp39/Peri/PeriPeri+FacetWiki:RdfForWikis

By the way, I removed Ward and Cliff from the list, assuming they're
not interested in Oddmuse...

Alex.
-- 
.O.  http://www.emacswiki.org/alex/
..O  Schroeder's fourth law:
OOO  None of your friends and coworkers share your taste in music.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]