Quote:
Originally Posted by frabjous
Unfortunately, I can't test it right now because I'm having trouble installing/configuring XML starlet. (I know, I know... I'm the one who recommended it... I should really try something myself before I do that...) I'm determined to get it working though, so I'll let you know.
|
Well, I decided on using it mainly because it was so easy to install (it's on the official repositories) even on my oldest system, a Mandriva 2005.
Quote:
Originally Posted by ahi
Jellby, is the XML parsing the most complicated thing your script does?
|
Yes, it is. The rest is only checking the files exist and passing options to prince. The script boils down to:
Code:
prince -s default.css -s bookstyle.css -o output.pdf Cover.xhtml Chapter-01.xhtml Chapter-02.xhtml ...
after uncompressing the .epub and getting the correct names and paths for all these filenames.