It has been completed!
Just in time for a break too.
The place to go for the source code (at the moment!) is my repository on GitHub:
https://github.com/NormanDunbar/QLWikiConverter
There you will find a README that explains it all, briefly.
The MYSQL folder has a script that can be run against the Wiki database, to extract the content to a file. This file is then fed into WikiPager to create, in the current folder, a pile of new files, one for each Wiki Page (and language). Those individual files can then be fed (one by one) into RwapWiki, along with a converter data file (much like the beloved Printer.dat used by Quill etc) and the output will be a converted Wiki Page, hopefully in the desired format.
I have provided a blank template file that you can copy and edit to create a new conversion file of your choice. I have also supplied an example convert.HTML.txt file, that can be used to convert pages from Wiki Source code to HTML pages.
At the moment you will need to compile the code yourselves. I've written it cross-platform, so it should compile on Windows and Linux, but it's only tested on Linux so far. It doesn't use anything scary except standard C++ and the STL. It compiles with GCC.
There's a project file for anyone using CodeBlocks as their IDE (That's cross platform too!) and you can still get a free C++ compiler from Embarcadero.com if you are on Windows. It is probably the best C++ compiler available (on Windows!)
Linux users already have G++.
To compile is simple:
where CPP is the name of your C++ compiler. The other utility, rwapwiki, compiles in a similar manner.
All you need to do is get hold of the output file from the "content.sql" script. I have an older version of the WIki, that Rich sent me some time back, perhaps it could be made available in a recent state? Or even better, the output from running the "content.sql" script in the MySQL folder as follows:
Code: Select all
mysql -u root -p <content.sql >wiki_content.out
The wiki_content.out is in the desired format for WikiPager to process.
Cheers,
Norm.