One of the things I was considering was we just decide on an accepted hard-coded standard between this and quality check. 5pts seems to be pretty widely accepted, additionally a right margin of around 25px seems to be common to keep ADE page numbers from overlapping the text. I'm thinking the 5pts could be completely hard-coded, and the user would need to enable whether they care about the right hand margin.
Any pt based margins which aren't 5pts(along with any variations of em/px margins)would be flagged in quality check. Modify ePub would convert px margins it encounters to 5pts, I suppose other types of margins could be converted vs deleted as well.
The alternative to hard coding might be to use Calibre's conversion pref as a central place to store the desired settings. I'll have to look at how that's stored.
I don't have a problem hard-coding it though, it makes the development effort easier, not sure what others think.
One other item, I copied the initial function from the xpgt function, but capnm discovered that it currently gives up after the first matching file encountered, is there an option to continue through the whole manifest? Some epubs have multiple CSS files.
|