06-25-2014, 03:43 AM | #1 |
Zealot
Posts: 129
Karma: 48786
Join Date: Oct 2010
Location: Australia - Adelaide
Device: Kindle3
|
Setting indent when converting epub to mobi
When converting from epub to mobi I like to indent the first line of the paragraph.
It is possible to set the Indent size (I am using about 0.2) in Look and Feel, but it is only available together with the Remove spacing between paragraphs. The problem is that this often removes all the spacing - even between the sections... So, is there some other way how to set the Ident when converting from epub to mobi? |
06-25-2014, 03:47 AM | #2 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Moderator Notice
Moved to Conversion sub-forum. |
06-25-2014, 04:34 AM | #3 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
p, div { text-indent: whatever }
in extra css. |
06-25-2014, 06:33 AM | #4 |
Zealot
Posts: 129
Karma: 48786
Join Date: Oct 2010
Location: Australia - Adelaide
Device: Kindle3
|
|
06-25-2014, 06:34 AM | #5 |
Zealot
Posts: 129
Karma: 48786
Join Date: Oct 2010
Location: Australia - Adelaide
Device: Kindle3
|
|
07-12-2014, 03:11 PM | #6 |
Science Fiction Writer
Posts: 229
Karma: 124188
Join Date: Dec 2010
Location: Golden, CO
Device: several
|
Hi, Kovid, a followup question to this... I'm using --remove-paragraph-spacing-indent-size=1 along with --remove-paragraph-spacing, and like the results for 99% of the paragraphs.
There are a select few paragraphs for which I'd like to adjust the text-indent to 0 (such as, say, start of chapter or after a scene break). I've tried an extra-css file with (variations on) .LeftJust { text-indent: 0; } and while the LeftJust class does appear in the resulting .epub, and the paragraph is marked as class=LeftJust, the actual code above keeps getting altered to "text-indent: 1em". (Presumably from the --remove-paragraph-spacing-indent-size=1 setting.) I tried adding an "!important" but to no avail. Is there any way to get this to work? E.g., any way to use extra-css to over-override --remove-paragraph-spacing-indent-size=1 for select cases? Or have it not alter the text-indent in certain classes? Like a --remove-paragraph-spacing-IGNORE-CLASS=LeftJust option? Or, maybe, --extra-css-VERBATIM=... ??? Thanks! |
07-12-2014, 10:33 PM | #7 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, those setting will override extra css. You either use extra css alone to do it as I described earlier or you convert to azw3 instead of mobi and edit the azw3 file with calibre's editor to adjust the few paragraphs manually.
|
07-14-2014, 07:07 PM | #8 |
Science Fiction Writer
Posts: 229
Karma: 124188
Join Date: Dec 2010
Location: Golden, CO
Device: several
|
Ah, ok, thanks.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Border and text indent problem ePub to mobi | AlexBell | Conversion | 12 | 04-08-2012 08:37 AM |
Paragraph spaces in ePub to Mobi conversion disrupts indent formatting | markpearl | Conversion | 34 | 09-21-2011 02:42 PM |
Patch: Preserve language setting for mobi and epub files. | siebert | Calibre | 0 | 07-17-2011 04:29 PM |
Converting EPUB to MOBI | JLeighs | Calibre | 2 | 11-07-2010 03:03 AM |
Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) | David Derrico | Calibre | 5 | 08-04-2010 12:13 AM |