[Dovecot] wiki -> txt

Timo Sirainen tss at iki.fi
Fri Mar 16 06:48:22 EET 2007


On Thu, 2007-03-15 at 02:19 +0200, Timo Sirainen wrote:
> I've been trying to fix MoinMoin's text_plain formatter to produce
> readable output. It's almost correct, except I don't understand why I
> can't get the LF-adding rules correct. Either there are too many LFs or
> too few. And whenever I change something, something else breaks.. It's
> getting pretty annoying.

Well, rewriting the line handling rules fixed it. If someone wants to
look at the new version, it's at http://dovecot.org/tmp/text_plain.py

I think the output is pretty good now. You can get the whole wiki
as .txt from http://dovecot.org/tmp/wiki-export.tar.gz

Comments? Do you find any bugs? There used to be for example missing
spaces, but those should be fixed now.

Each file begins with page name and a fixed number of '=' characters.
Looks like that can't be changed with text_plain.py. I'll anyway change
that to something better later.

I thought I'd change the Foo/Bar wiki links to Foo.Bar. That way there
can exist both "Foo" and "Foo.Bar", which wouldn't be possible with '/'
separator. The filenames would also be changed.

I'm not sure if the files should end with .txt or not. And if they do,
should the .txt be added to wiki links?

I think the wiki pages should go to doc/wiki/ directory. Otherwise the
example configuration files get lost within all the files.

The example configs currently link to web wiki pages. Should those be
changed to doc/wiki/PageName.txt? Probably not, because the web pages
might have newer information.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070316/71038e89/attachment.pgp 


More information about the dovecot mailing list