View Single Post
Old 03-22-2024, 02:00 PM   #26
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by JSWolf View Post
Can the Aa menu's justification be patched to actually work properly?
Quote:
Originally Posted by Jane Eyre View Post
Good question!
I think the short answer is 'No'.

Longer answer opinion ... I don't see how it's possible because the override is a single CSS statement with '!important' stuck on the end of it. This is a crude blunt instrument at best. What single line of CSS could you create which would selectively change 'justify' to 'left' (or vice versa), whilst leaving as-is 'center' and 'right'?

What would have a better chance of success is a program which reads the whole CSS file for each book and modifies only the "relevant CSS styles" but even then there would be problems keeping everyone (or anyone?) happy. For example, I prefer main body text to be full-justified, but any (fictitious) program which auto-changed 'left' to 'justify' for CSS styles intended for poetry text would be a program I wouldn't use.

If anyone wanted to pursue this selective approach then I suspect it would be better incorporated as an option in the calibre KOBOTOUCH driver so that the CSS could be auto-modified on-the-fly during the calibre send-to-device process and the master copy of the epub would remain unchanged in the calibre library. In much the same way as the KOBOTOUCHEXTENDED driver kepubifies a standard epub during send-to-device without changing the calibre library epub.
jackie_w is offline   Reply With Quote