On 12 Feb 2003, Jean-Marc Lasgouttes wrote:
> >>>>> "Christian" == Christian Ridderstr�m <[EMAIL PROTECTED]> writes:
>
> Is it possible to export a Wiki to something that could in turn be
> transformed into a LyX doc? A kind of Wiki2lyx program.
Yes, I think that's quite possible, especially since the format is quite
trivial. The raw format can be acquired like this:
wget 'http://ev-en.org/wiki/moin.cgi/LyxWikis?action=raw'
> I think that there is some interest in having the FAQ available in a
> format that does not require a network connection. It is seems also
> that your wiki is bound to be more updated than FAQ.lyx. But it would
> be nice to be able to take 'snapshots' of the wiki and put them in the
> distribution.
I played a little bit with this and the following takes a snapshot:
~>wget -r -k -p -R '*?*' http://ev-en.org/wiki/moin.cgi/LyxWikis
where all links with ? are avoided. This will however dump all wikis,
but since most of the content is related to lyx that is not a big
problem.
The result will end up in a catalog structure:
$HOME/ev-en.org
and unfortunately all the links will be wrong. This fixes that:
perl -i.bak -pe "s|/wiki/|$HOME/ev-en.org/wiki/|" ev-en.org/wiki/moin.cgi/*
and you know have a snapshot of the wiki that you can navigate with a
browser. Of course, it's likely we don't want to have the snapshop in our
home directory... but where to put it is a bit of a problem.
Hmm... I'll play around with it and let you know, I ought to be able to
fix it somehow.
However, I think we _really_ ought to have a wiki at www.lyx.org, rather
than at www.ev-en.org for backup-reasons if nothing else.
All I know about this site is that the owner didn't mind me putting the
wiki's there when I asked him (in fact, a long while ago he created the
first few lyx wikis there and sent a mail to the user's list).
Oh, and if we run our own wiki server, we could probably choose one that
is capable of exporting html-trees properly, or xml for that matter.
Unfortunately I don't know much about wiki servers, except they come in a
wide variety.
/Christian
--
Christian Ridderstr�m, +46-8-790 91 37 http://www.md.kth.se/~chr
Mechatronics lab, Dept. of Machine Design http://www.md.kth.se