Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-08-2011, 02:22 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
indent size settings for Kindle

does anyone know what em values are valid for use on Kindle.

I have been trying the remove paragraph spacings + set indent options on look and feel, and seem to be getting larger than expected indents when viewed on Kindle ?

1 em is worth about 2 lower case letters , yes ?
so default value of 1.5 should approximate a three letter indent.
i see 4 letter indents so maybe kindle rounds up ?
cybmole is offline   Reply With Quote
Old 01-08-2011, 02:29 AM   #2
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,729
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by cybmole View Post
does anyone know what em values are valid for use on Kindle.

I have been trying the remove paragraph spacings + set indent options on look and feel, and seem to be getting larger than expected indents when viewed on Kindle ?

1 em is worth about 2 lower case letters , yes ?
so default value of 1.5 should approximate a three letter indent.
i see 4 letter indents so maybe kindle rounds up ?
Personally what I do is set a paragraph margin top and bottom of 0.2em - just enough to separate the paragraph but not so much you barely fit any text on a page . I set the text-align to justify, and the text-indent to 1em.

Finally I also modified the Kindle margins itself using the instructions here - I can't remember whether I set it to 10 or 20.
kiwidude is offline   Reply With Quote
Advert
Old 01-08-2011, 02:48 AM   #3
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
i remember reading several weeks ago, in this forum, something about fractional em indent settings limitations for Kindle but cannot find the thread
cybmole is offline   Reply With Quote
Old 01-08-2011, 08:19 AM   #4
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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Kindle doesn't support fractional ems, they're rounded up.
kovidgoyal is online now   Reply With Quote
Old 01-08-2011, 11:27 AM   #5
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
thanks - I thought it was something like that - so calibre's default 1.5 is treated as 2.0.
cybmole is offline   Reply With Quote
Advert
Old 04-29-2011, 01:29 PM   #6
NYCourtney
eBook Producer
NYCourtney began at the beginning.
 
NYCourtney's Avatar
 
Posts: 8
Karma: 10
Join Date: Apr 2011
Location: New York, NY
Device: All
Kovid,

I'm having a difficult time trying to figure out how my indent CSS is converted by Calibre for the Kindle. I've even run the debugging to see what it strips out and it completely takes out my third paragraph style for my third indent. I tried adding in a span class to keep it from doing this, to no avail.

It's an Index that requires tertiary entries that I'm creating. Here's the code I've been using in the ePub:

p.index1 {
font-family: "Verdana", "Geneva", "Helvetica Neue", sans-serif !important;
font-weight: bold;
font-size: 1em;
line-height: .75em;
text-indent: 0em;
text-align: left !important;
color: #000000;
margin: 0em 0em 0em 0em;
}
p.index2 {
font-family: "Verdana", "Geneva", "Helvetica Neue", sans-serif !important;
font-weight: normal;
font-size: 1em;
line-height: .75em;
text-indent: 0em;
text-align: left !important;
color: #000000;
margin: 0em 0em 0em 1em !important;
}
p.index3 {
font-family: "Verdana", "Geneva", "Helvetica Neue", sans-serif !important;
font-weight: normal;
font-size: 1em;
line-height: .75em;
text-indent: 0em;
text-align: left !important;
color: #000000;
margin: 0em 0em 0em 4em !important;
}
span.tertiary {
font-weight: normal;
text-indent: 0em;
text-align: left !important;
margin: 0em 0em 0em 4em !important;
}

This code finally forces three indent settings, but the third or "tertiary" indent still doesn't set the run over lines to the 4em margin. Only the first line hits at 4em. I've tried this combo on a matching "index3" and it didn't work either:

span.tertiary {
font-weight: normal;
text-indent: -4em;
text-align: left !important;
margin: 0em 0em 0em 4em !important;
}

Have you encountered this before? Is it a Kindle problem? I've spent over ten hours on it now. Please help if you can??? And THANK YOU so much if you can!!!
NYCourtney is offline   Reply With Quote
Old 04-29-2011, 01:37 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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The kindle doesn't support indents at all. calibre fakes them by wrapping the indented html in blockquote elements. This has various limitations some of which come from the fact of using blockquotes others from bugs in the Kindle MOBI renderer.

If you want to understand what calibre is doing convert the generated MOBI file back to epub with the debug option and look at the debug-raw.html file in the input directory.
kovidgoyal is online now   Reply With Quote
Old 05-03-2011, 03:40 PM   #8
NYCourtney
eBook Producer
NYCourtney began at the beginning.
 
NYCourtney's Avatar
 
Posts: 8
Karma: 10
Join Date: Apr 2011
Location: New York, NY
Device: All
THANK YOU so much for the "debug-raw.html" tip AS WELL as creating a piece of software so well suited for troubleshooting. I was able to figure it out! YOU ARE AWESOME!!!!
NYCourtney is offline   Reply With Quote
Old 05-03-2011, 03:52 PM   #9
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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Glad you figured it out
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the Kindle 3 offer any privacy settings? plasticslug Amazon Kindle 4 12-02-2010 03:53 AM
Right edge indent problem with mobi/Kindle? bfollowell Workshop 3 12-01-2010 04:42 AM
can't access settings and experimental page on kindle 3 mockingbird Amazon Kindle 3 10-27-2010 11:51 PM
Paragraph indent-size should not applied to centered paragraphs? ShellShock Calibre 3 01-16-2010 11:54 AM
Conversion settings in Calibre so looks good on Kindle 2 Delia575 Calibre 6 12-09-2009 12:57 PM


All times are GMT -4. The time now is 05:18 AM.


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