Hi Volker,
Things seem to work now...
I read the doc...
I wrote a JSON-generator script (using good old bash).
I could manage to change title with a conversion table
Now the remaining issues are minor:
(1) I could not avoid the insertion of the title page - is it possible
? (Otherwise I will use pdftk to solve this.)
(2) the TOC - later possibly
Find in annex my bash script : It contains both the data (page title
and PDF title and numbering) and all used code. It is certainly NOT
standard, and probably not robust, but it works fine for me : covering
what we discussed and some more.
I just expect from you a possible answer to (1) above.
Thanks for all your time and help.
Best regards,
Philippe
Volker Haas wrote:
Hi
pg wrote:
- remaining : title conversion between wiki and PDF - major issue. I
would like to use a flat file containing a simple conversion table...
This is currently only supported if the collection extension is used. If
not, some programming is involved - but this can be done in a language
of your choice: you need to look at the metabook spec (referenced below)
which basically is a json encoded dictionary. You only need a simple
programm (like the one I attached to my mail earlier) to generate this
format.
- remaining : TOC construction (but for now it is a NTH - but I am
eager to see later your version declared "stable")
Regarding the metabook doc, I could not find it in the "site-packages"
subtree.
It is somewhere else ? Where ?
That depends on how you installed mwlib. Did you check out the sources
with mercurial? Or do you use the mwlib version from the python package
index (http://pypi.python.org/pypi)?
In any case you can find the latest version of the metabook
documentation here:
http://code.pediapress.com/hg/mwlib/file/tip/docs/metabook.txt
Regarding your py script, I got this message:
p...@mmm:~$ python metabookgenerator.py
Traceback (most recent call last):
File "metabookgenerator.py", line 4, in <module>
import simplejson
ImportError: No module named simplejson
simplejson is a python module which you need to install. if you have
easy_install you simply need to do:
easy_install simplejson
How would I solve this ?
*So I am still looking for the metabook / json format !*
see above
Regards,
Volker
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "mwlib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---
|
wikipdf.sh
Description: Bourne shell script