03-08-2016, 06:00 PM | #1 |
Enthusiast
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
|
Paperwhite ignores indents
Thanks for your help.
I've produced .mobi from epub using kindlegen. Everything was marked up by me, no conversion software at all other than kg. On the kindle previewer all looks fine on all devices except the Paperwhite, which loses the para indents and substitutes a blank line. Anything I can do in the way of an @media to stop this and force indents? Thanks again, Dave |
03-09-2016, 01:19 AM | #2 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
Advert | |
|
03-09-2016, 02:35 AM | #3 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Are you producing a Mobi 7 or a KF8 book?
In Mobi 7 you do indents like this: Code:
<p width="1.5em"> |
03-09-2016, 10:31 AM | #4 |
Enthusiast
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
|
Thanks all.
Here's the relevant css: One para is without indent, the other with. Both end in blocks on paperwhite. p.firstpara { text-indent: 0; text-align: left; line-height: 1.3em; font-size: 1em; margin: 0 0 0 0; padding: 0; font-family: "georgia", serif; font-weight:normal; orphans: 2; widows: 2; -epub-hyphens:none; } p.para { text-indent: 1.25em; text-align: left; line-height: 1.3em; margin: 0; padding: 0; font-family: "georgia", serif; font-weight:normal; orphans: 2; widows: 2; -epub-hyphens:none; If there's no media query, is there a way of doing belt and braces in the para markup? Many thanks for your help - really appreciate it. Dave |
03-09-2016, 01:15 PM | #5 |
A Thirsty Mind
Posts: 92
Karma: 2546
Join Date: May 2011
Location: Lubec, Maine
Device: Kindle Fire, iPad, iPhone
|
I was told years ago it was important to turn off widow/orphan control in Word if you were going to convert it to HTML then to ePub/mobi. Your CSS looks like that's still on. I know when you leave it on things can happen that you don't anticipate in ePub. Could that be your problem?
|
Advert | |
|
03-09-2016, 01:16 PM | #6 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Well, that seems all perfectly normal. Hmph. There has to be something cascading and overriding it. What's your base P style? Do you have one? Do you have anything in the Body setting that might be doing this? Hitch |
|
03-09-2016, 01:19 PM | #7 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
03-09-2016, 01:28 PM | #8 |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
03-09-2016, 06:01 PM | #9 |
Enthusiast
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
|
Yes it was a paste error. Sorry about that, not helpful.
I didn't bring in anything from Word. Everything came in cleaned as txt. All that widow / orphan stuff i borrowed having seen it somewhere and thinking it must mean something to kf 8. Thanks again for pitching in with this. I'll get back on the other para styles tomorrow, if you don't mind. Time zones |
03-09-2016, 06:28 PM | #10 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
03-11-2016, 09:15 AM | #11 |
Enthusiast
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
|
All the text is marked up the same way. The first paragraph after a section break is without indent and the css is p class="firstpara". Subsequent paras are indented and the css is p class="para".
Neither have top or bottom margins. Any chance it could be the Kindle Previewer playing tricks (I don't have a real Paperwhite, though I'm trying to source one). Thanks again for your help. Dave |
03-11-2016, 04:25 PM | #12 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
03-11-2016, 04:40 PM | #13 |
Enthusiast
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
|
I'll give that a go. Thanks Hitch. :
|
03-12-2016, 07:48 PM | #14 |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
03-12-2016, 07:51 PM | #15 |
Resident Curmudgeon
Posts: 73,975
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Post your entire CSS so we can have a look at it.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil ignores some CSS-specified fonts | tetrault | Sigil | 12 | 01-29-2016 10:43 AM |
FBReader ignores margin-top | AlanHK | ePub | 24 | 03-25-2015 06:59 AM |
Kindle ignores Title Sort | Ravenswd | Devices | 7 | 02-05-2013 11:04 AM |
Indents and hanging indents in epub poetry | Derek R | ePub | 14 | 02-19-2012 04:43 AM |
fbreader ignores line breaks | red_dragon | OpenInkpot | 3 | 03-20-2009 08:38 AM |