![]() |
#16 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
|
|
![]() |
![]() |
![]() |
#17 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
|
The Kindle does not recognize 1.3em indent it rounds it up to 1.5em, the kindle will display 1em, 1.5em, 2em, 2.5em etc indents. anything in between it rounds up.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Treasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
|
Quote:
![]() 1.5 is default it seems on all HQs I buy so I always change the indent because I don't like how it looks. The changes do show on my Kindle. I do make my mobi books using the Hanlin v5 profile not the Kindle profile in Calibre. Last edited by Blossom; 09-06-2011 at 02:16 PM. |
|
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,417
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Actually, I have yet to unpack a mobi file (purchased from Amazon, or built by calibre or kindlegen) whose paragraph indents weren't specified in whole increments of em's. Keep in mind that there is no css inside a mobi file. Whatever converter you use has to translate the "text-indent" css style attribute to the html 3.2 "width" attribute of the <p> tag.
Now it's possible that someone might manually add entities to adjust the text indent to their liking, but that's not what I'm referring to. I just built a mobi with calibre starting with an epub that had 1.5em paragraph indents. I told it to convert to mobi, to remove spacing between lines, and set the indent-size to 1.3em. Unpacking the resulting mobi with mobiunpack.py, the 1.3em request as been changed to a 1em indent. Code:
<p height="0pt" width="1em" align="left">The helicopter was idling. Two men were carrying the stretcher.</p> ![]() |
![]() |
![]() |
![]() |
#20 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
|
Quote:
I made a test file and this is how it winds up displaying (the html file displays correctly Last edited by Ron.; 09-06-2011 at 03:23 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Treasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#22 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,417
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() I just did a little more investigation where I specified the "width" attribute directly in the html (instead of CSS). I increased the amount of indent for consecutive paragraphs: 1.2em 1.3em 1.4em 1.5em 1.6em 1.7em Kindlegen maintained the different fractional "width" attributes (I checked with mobiunpack). There was no visible difference in the appearance of the paragraph indents when displayed on the Kindle. They all looked like what I would consider a 2em indent. Must experiment more. ![]() |
|
![]() |
![]() |
![]() |
#23 | |
Treasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
|
Quote:
Okay I've attached a pic from my Kindle. It's a tad dark but you can see where my Indents are. I don't know what the setting really is. I just know using 1.3em in CSS box gets it for me and I like it that way. lol It's a Inspirational novel to make sure there are no woo woo scenes showing from other books on my K3 ![]() |
|
![]() |
![]() |
![]() |
#24 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
|
Quote:
Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>indent test</title> <meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/> </head> <body> <p style="text-indent:1em;margin-top: 0px;margin-bottom: 0px">1em indent</p> <p style="text-indent:1.3em;margin-top: 0px;margin-bottom: 0px">1.3em indent</p> <p style="text-indent:1.5em;margin-top: 0px;margin-bottom: 0px">1.5em indent</p> <p style="text-indent:2em;margin-top: 0px;margin-bottom: 0px">2.0em indent</p> </body> </html> |
|
![]() |
![]() |
![]() |
#25 | |
Treasure Seeker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
|
Quote:
I used your code to make a html file them converted it to mobi and 1.em and 1.3em are the same. I then converted from html to epub and got the same results. The only difference in the mobi and epub was 1.5em every other size matched on both epub and mobi with 1em and 1.3em showing no difference from each other. Very Interesting! ![]() I then put the mobi in Kindle Preview and 1em & 1.3em are the same. So are 1.5em and 2em they match each other. Last edited by Blossom; 09-06-2011 at 04:35 PM. |
|
![]() |
![]() |
![]() |
#26 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,291
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#27 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
|
Quote:
my first screenshot is kindle for pc, the second is adobe digital editions |
|
![]() |
![]() |
![]() |
#28 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,417
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Code:
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <guide></guide> </head> <body> <p height="0" width="1em">1em indent</p> <div height="0"></div> <p height="0" width="1em">1.3em indent</p> <div height="0"></div> <p height="0" width="2em">1.5em indent</p> <div height="0"></div> <p height="0" width="2em">2.0em indent</p> <div height="0"></div> </body> </html> Either a 1em or 2em indent. |
|
![]() |
![]() |
![]() |
#29 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,291
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Since we know the Kindlegen rounds indents when using em, what does it do with % for text-indents?
|
![]() |
![]() |
![]() |
#30 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
|
Quote:
it rounds them up |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to get ALL of my books on KSO? | PocketGoddess | Amazon Kindle | 19 | 07-27-2011 08:20 AM |
KSO 3G Now $139 | djulian | News | 28 | 07-13-2011 10:53 PM |
Would You Buy It Again (KSO)? | ucfgrad93 | Amazon Kindle | 26 | 06-19-2011 02:14 AM |
What I have done on KSO and some questions | jmpopush | Kindle Developer's Corner | 3 | 06-13-2011 10:51 PM |
KSO Help Needed | dhruvbhutani | Amazon Kindle | 10 | 05-15-2011 11:00 PM |