View Single Post
Old 09-16-2009, 10:26 AM   #26
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by frabjous View Post
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 View Post
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.
Jellby is offline   Reply With Quote