Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-25-2014, 03:43 AM   #1
Bigo2
Connoisseur
Bigo2 began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Oct 2010
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?

Bigo2 is offline   Reply With Quote
Old 06-25-2014, 03:47 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,861
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Moderator Notice
Moved to Conversion sub-forum.
DoctorOhh is offline   Reply With Quote
Old 06-25-2014, 04:34 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,121
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
p, div { text-indent: whatever }

in extra css.
kovidgoyal is offline   Reply With Quote
Old 06-25-2014, 06:33 AM   #4
Bigo2
Connoisseur
Bigo2 began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Oct 2010
Device: Kindle3
Quote:
Originally Posted by kovidgoyal View Post
p, div { text-indent: whatever }

in extra css.
Thanks KovidGoyal, I'm going to try...

Regards
Bigo2 is offline   Reply With Quote
Old 06-25-2014, 06:34 AM   #5
Bigo2
Connoisseur
Bigo2 began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Oct 2010
Device: Kindle3
Quote:
Originally Posted by DoctorOhh View Post
Moved to Conversion sub-forum.
Thanks
Bigo2 is offline   Reply With Quote
Old 07-12-2014, 03:11 PM   #6
andrewburt
Science Fiction Writer
andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.
 
andrewburt's Avatar
 
Posts: 122
Karma: 124158
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!
andrewburt is offline   Reply With Quote
Old 07-12-2014, 10:33 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,121
Karma: 5101571
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.
kovidgoyal is offline   Reply With Quote
Old 07-14-2014, 07:07 PM   #8
andrewburt
Science Fiction Writer
andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.andrewburt can talk all four legs off a donkey... then persuade it to go for a walk.
 
andrewburt's Avatar
 
Posts: 122
Karma: 124158
Join Date: Dec 2010
Location: Golden, CO
Device: several
Ah, ok, thanks.
andrewburt is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 09:49 AM.


MobileRead.com is a privately owned, operated and funded community.