Hello from New York, New York!
The features I've seen in DbWiki are very inspiring - I would be pleased to help on the team to create an English version.
Also, if there is interest I'd like to help with the wiki -> DocBook -> pdf workflow.
Interested? Contribute here!
Hello and Welcome ^^
Accoding to the summary(below), transformation flow is like this:
wiki -> xhtml -> docbook -> pdf
In case of DbWiki, it can output a well-formed or valid DocBook document by itself. So the flow can be like this;
dbwiki -> docbook -> html, pdf, and so on..
It is more ideal process for docbook, and it works actually (but manually). So I hope DbWiki will support this automatically.
Ryu Gwang (류광) is the project manager and a core developer of dbwiki. When he comes back (he is off-line state temporarily), we can discuss more technical details of DbWiki.
Thanks ^^
Thank you for your interest, Micki. You can download the DbWiki source code with CVS.
cvs -d:pserver:anonymous@cvs.docbook.kldp.net:/cvsroot/docbook login cvs -z3 -d:pserver:anonymous@cvs.docbook.kldp.net:/cvsroot/docbook co dbwiki
Just press Enter for the password.
The best way to contribute (at least for now) is to upload patches through our project homepage (http://kldp.net/patch/?group_id=8). Since most menus are in English, I don't expect you will have any difficulty using them.
I like to see your work merged into DbWiki, especially using IncludePage to create a book. Nice work!
Here is what I have thus far: it works wonderfully. Good luck to you!
xhtml -> xml -> fo -> pdf
Two ways it can/should be integrated, that I can think of.
(you'll need to install everything in Installation).
#! wiki2pdf.cgi
#!/bin/sh
curl -o /tmp/$1.html 'http://{wikidir}/'$1
/usr/bin/html2db -i /tmp/$1.html -o /tmp/$1.xml
/usr/bin/xsltproc --stringparam fop.extensions 1 /docbook/fo/docbook.xsl /tmp/$1.xml > /tmp/$1.fo
/usr/bin/fop/fop.sh -q /tmp/$1.fo /tmp/$1.pdf
echo "Content-Type: application/pdf"
echo ""
cat < /tmp/$1.pdf
|&nbsp;<a href="http://{wikidir}/wiki2pdf.cgi/
<?=$page->getName()?>.pdf?
<?=$page->getName()?>
" target=blank class="wiki"><b>PDF</b></a>
and bingo. Automagically named, fresh pdf's.
You will need to install the following packages and their dependencies (please note I do not have advice here yet about overcoming error messages from missing dependencies:
http://www.michael-a-fuchs.de/ You will only need to use the standalone 'html2db' executable.
If you've got them all in place, you're good to go!
A few basic things, and then we'll get started:
Issue the following commands (my shell is tcsh, yours may vary!).
setenv JAVA_HOME /Your/Java/Home
html2db -i /tmp/{filename}.html -o /tmp/{filename}.xml
Here you may want to grep and insert <chapter> tags where phpwiki put <p> tags around the includepage main headers.
You will also need to fix any duplicate anchor names as html2db doesn't yet ensure they're unique.
Next the --stringparam fop.extension 1 parameter is a real help. It generates nice PDF Bookmarks for each chapter and section.
xsltproc --stringparam fop.extensions 1 ../fo/docbook.xsl /tmp/{filename}.xml > /tmp/{filename}.fo
./fop.sh /tmp/{filename}.fo /tmp/{filename}.pdf
Sounds great! I'll be compiling some stuff to provide (believe it or not i currently have no code at all involved and am going completely off public domain stylesheeta and apps/executables. - I can however document my process. And as the build scripts are being written I'll pass em along too.
I have a question:
Does dbwiki support the IncludePagePlugin that is present in the phpwiki 1.3.4 on sourceforge?
No, DbWiki was forked from PhpWiki 1.3.2. I think many new features of recent PhpWiki should be ported to DbWiki, and ?IncludePagePlugin is one of them. -- Min Sik Kim
So much to learn - and thanks for the warm welcome! ...Micki
More news... I've been going thru the dbwiki source code and you have done some great work. I'm still learning it, and it will take some major time, but it's an excellent work. Congratulations to the authors of dbwiki for a great job.