View Single Post
Old 09-14-2009, 01:31 PM   #15
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,563
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by frabjous View Post
1. Dont' know what linux distro you're using, but dos2unix does not come standard on Ubuntu Jaunty; fixed by installing the tofrodos package. (Actually I did that earlier for your other script.)
I'm using Mandriva, and it wasn't standard here either, but I installed it with urpmi This is one of the things that need some work, at the moment I process the spine with sed scripts, which rely on "correct" newlines (that's why I needed dos2unix in some cases). Ideally, the .opf file should be processed with some XML tool, do you know any?

Quote:
2. Right now, if the CSS of the ePub chooses a different font/font size/justification setting, etc., it overrides the settings in default.css; this is perhaps as it should be, but a setting that would make default.css override these would be great. (This would be tougher to code, and perhaps dangerous in certain circumstances, depending its aggression level...)
The standard .epub settings (not those in the "special" pdf-style file) can be overriden by adding !important to the default.css file, at least according to the documentation. I could add another option to specify highes-priority rules (it would be just adding another .css after the book-specific one in the prince command-line).

Quote:
3. Defaulting to a 9.9pt font seems a little small...
Well, I'd expect each user customizing his/her own default.css Some want headers, some don't; some like margins, some don't; some like serif, some sans... I just included my preferences.

Quote:
A port to something like python to make it a bit more platform-
independent, though personally a bash script works fine for me.
Yes, feel free to code it Actually, I have a vanishingly small experience with coding python, perl, or any other platform-independent script language (I've done some perl scripts, but nothing in python), so I'm afraid I'm not the right one to do it. As you see, the script working is very simple, so it shouldn't be too hard to translate it to anything else.

Quote:
A minimal GUI wrapper for editing default.css (or creating a new custom .css) in which you can choose page sizes (maybe even from a list of standard ones), borders, fonts, etc. I might work on this if no one else is interested. But maybe it's not worthwhile before it's ported. (Linux users may well be happy without one.)
Oooh... a GUI, it makes me shudder I think that's quite beyond my goal at the moment, but of course, it would be welcome.

For the moment, let's see if the introduction of this <meta name="pdf-style"> has any acceptance...
Jellby is offline   Reply With Quote