|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,088
Karma: 11502975
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Customizing recipes - justify text
Another question in order to customize recipes: Is there a way to make justification of text the default in the recipe?
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
extra_css = '* { text-align: justify !important}'
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,088
Karma: 11502975
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Once again, thank you, Kovid!
|
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,088
Karma: 11502975
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Hm, I have been quick with my eulogy. My recipe has those extra-css:
Code:
extra_css = 'td.textb {font-size: medium;}'
extra_css = '* { text-align: justify !important}'
extra_css = '* { text-decoration: none !important}'
Thus, there appears no justified text in the news source. Is there something missing? |
|
|
|
|
|
#5 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
extra_css = 'td.textb {font-size: medium;} * { text-align: justify important; text-decoration: none !important}'
|
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,088
Karma: 11502975
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Thank you, but while the text-align command appears in the css, it takes still no effect in the news source. Text-decoration, however, is still working fine.
Edit: With an exclamation mark before the "important", it works all! Thus: Code:
extra_css = 'td.textb {font-size: medium;} * { text-align: justify !important; text-decoration: none !important}'
Last edited by Leonatus; 02-06-2022 at 05:48 AM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| customizing recipes | NSILMike | Recipes | 11 | 02-04-2022 10:49 AM |
| How to automatically justify text? | cptnemo | Recipes | 9 | 11-27-2013 09:42 PM |
| Can you left justify text with the 360? | maxbookworm | PocketBook | 11 | 05-31-2010 11:49 AM |
| customizing built in recipes | jrasmussen | Calibre | 2 | 02-16-2010 12:26 AM |
| Problems getting text to justify | ficbot | Calibre | 4 | 01-13-2010 03:27 PM |