02-11-2015, 05:11 AM | #1 |
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2014
Device: kindle Paperwhite 2
|
rare case of "left align" not working - help please
Concerns: F-Secure Weblog.
For better readabilty on my kindle paperwhite I modified every calibre news recipe I am using by inserting the extra_css = 'body { text-align: left; }' command. Until now that has worked nicely to get rid of text being formatted as justified. Now I put the same into the F-Secure Weblog recipe but the result is still "justified". The recipe as such is rather simple. The problem with noncompliance of my wish may have to do with the fact that a "justify" instruction is in the original html. But I read in calibre help that "extra_css" should override most anything. So I am stuck here and ask for your help. ( I include these search keywords for Deutsche and Dutch: linksbündig blocksatz gerechtvaardigd uitlijnen uitgelijnd rechtvaardiging ) |
02-11-2015, 06:48 AM | #2 |
creator of calibre
Posts: 44,346
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
extra_css = 'body, p, div { text-align: left !important }'
Or more robustly conversion_options = { 'change_justification': 'left' } |
02-11-2015, 07:21 AM | #3 |
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2014
Device: kindle Paperwhite 2
|
Sorry to say, I tried both your suggestions, but they had no influence on the outcome?!
|
02-13-2015, 08:08 AM | #4 |
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2014
Device: kindle Paperwhite 2
|
To further specify. I put extra_css = 'p { text-align: left}' into the recipe
f_securecustom.recipe I used the command line ebook-convert f_securecustom.recipe .mobi --test -vv --debug-pipeline debug The job is done. I opened: ...\debug\structure\feed_0\article_0\index.html Now, in the code of : the file I find: ... <p align="justify"> maybe that is the reason. But still I do not know how to proceed? |
02-13-2015, 09:44 AM | #5 |
creator of calibre
Posts: 44,346
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
remove_attributes = ['align']
|
02-15-2015, 06:06 AM | #6 |
Junior Member
Posts: 9
Karma: 10
Join Date: Sep 2014
Device: kindle Paperwhite 2
|
remove_attributes = ['align'] , that did the job. Thank you.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
In case you want to turn off "Time left in book" function... | DmitryZzz | Amazon Kindle | 15 | 03-09-2019 11:13 AM |
"Doghouse Diaries" and "PHD Comics" not working | frakman1 | Recipes | 0 | 08-22-2014 11:32 AM |
timefmt, align="center", find replace | Kirk Vomit | Recipes | 0 | 04-11-2012 05:03 AM |
epub "padding left" to mobi "block quote" conversion issue | 1611mac | Conversion | 3 | 01-11-2012 02:10 PM |
align="right" problem converting html to lrf | flowoeB | Calibre | 0 | 10-06-2009 07:30 AM |