![]() |
#1 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,018
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Paragraph indents from command line
What is the exact command to change the amount of the paragraph indents from the command line please? Thanks!
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,168
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
For conversion to which format?
Code:
--override-css "p {text-indent: whatever}" |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,018
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It did not actually work in this case.
mobi2lrf --top-margin=0 --bottom-margin=0 --left-margin=0 --right-margin=0 --override-css "p {text-indent: 1%}" --wordspace=1 --base-font-size=9.9 "..\Narnia 01 - The Lion, the Witch and the Wardrobe.prc" I still got a 5% margin. I've also used mobi2oeb to explode the prc and the code for the 5% margin is <p style="text-indent: 5%"> I tried html2lrf with the same options as above and it still gave me the 5% margin. Last edited by JSWolf; 11-06-2008 at 08:08 PM. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,168
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
unfortuantely for LRF conversion override-css doesn't override style declarations that are in attributes IIRC. Try converting to epub first and then to LRF.
|
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,018
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I know I can use mobi2oeb and then edit the html and convert from there. But I was hoping I could save a couple of steps.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding indents / removing line spacing for news | jubcoo | Calibre | 4 | 10-27-2010 04:39 PM |
Prevent Calibre to paragraph each line | armkbdotcom | Calibre | 3 | 05-29-2010 03:15 PM |
Sony PRS-505, text indents, paragraph spacing | pdurrant | Sigil | 7 | 08-03-2009 06:03 AM |
convert to lrf : paragraph indents, line breaks | karo02 | Calibre | 4 | 01-27-2009 09:19 AM |
last line in each paragraph centred | scgf | Calibre | 9 | 09-10-2008 02:23 PM |