View Single Post
Old 08-01-2012, 05:10 AM   #42
olig
Enthusiast
olig began at the beginning.
 
Posts: 32
Karma: 12
Join Date: Jul 2012
Device: Kindle 4nt 4.1.3 jailbreak
This is no ODT-only thing...

Now only style problems are left in my tests. Most annoying: margin and indent, which are transported 1:1 in the style. And because there are lots of styles involved (in a real world document), fixing it with extra_css is not easy.

I'm thinking about a scale_units option. Or perhaps a style_search_replace which allows regex replacements of style key/values? The second would be more flexible (but also less easy to use), because you will have a certain set of margins and so replacing would give more power than straight scaling. It would also allow replacing fixed units (cm in the ODT) with something more scalable like em. Could also be done as a flex_units option which replaces fixed margin/indent units to em by telling it what measure is 1em.

I just did a test with the last option, replacing 0.625cm with 1em (quick replace on the generated ePub stylesheet): looks very good.

Would this be an option you would accept?
olig is offline   Reply With Quote