View Single Post
Old 03-22-2024, 03:36 PM   #27
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,190
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jackie_w View Post
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.
Given that a lot of eBooks shove an unneeded justify all over the place in CSS, I suppose removing the !important would not work. If justify was just in body, then !important could be removed.
JSWolf is online now   Reply With Quote