MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Calibre (https://www.mobileread.com/forums/forumdisplay.php?f=166)
-   -   Paragraph indents from command line (https://www.mobileread.com/forums/showthread.php?t=31604)

JSWolf 11-06-2008 02:38 PM

Paragraph indents from command line
 
What is the exact command to change the amount of the paragraph indents from the command line please? Thanks!

kovidgoyal 11-06-2008 03:21 PM

For conversion to which format?

Code:

--override-css "p {text-indent: whatever}"

JSWolf 11-06-2008 09:06 PM

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.

kovidgoyal 11-06-2008 09:22 PM

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.

JSWolf 11-06-2008 09:41 PM

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.


All times are GMT -4. The time now is 06:32 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.