![]() |
#1 |
Connoisseur
![]() Posts: 61
Karma: 10
Join Date: Jul 2012
Device: Nook Simple Touch, Kindle 2nd Gen, Kindle 7" Fire HD
|
Line Break Madness on Nook
Greetings All!
I hand-coded a book entirely in HTML and CSS. I learned from a book how to package ePubs. All HTML and CSS files passed validation. The ePub passed validation on the IDPF site. The book, when side-loaded on a Nook, looks beautiful. Everything displays as it should. The same goes for Adobe Digital Editions. Even on the Nook Press site it looks good with the provided Nook Previewer. BUT! When I went to Barnes & Noble tonight, to my horror I saw that on every Nook model that there are line breaks after EVERY paragraph. All of these would have been styled with p elements. My CSS for p elements is as follows: Code:
p { text-indent: 1.25em; margin: 0; widows: 2; orphans: 2; } Code:
p.texttop { margin: 1.5em 0 0 0; text-indent: 0; } Any help would be groovy. Thanks! Greg |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Please give the name of the book so someone can go to B&N and download a sample.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 61
Karma: 10
Join Date: Jul 2012
Device: Nook Simple Touch, Kindle 2nd Gen, Kindle 7" Fire HD
|
Return To Middle C by Gregory Shultz.
Thanks! |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I just have a look at the sample via the read online and it looks good. I'll now download it and have a look at the code.
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 61
Karma: 10
Join Date: Jul 2012
Device: Nook Simple Touch, Kindle 2nd Gen, Kindle 7" Fire HD
|
I just downloaded a sample to my Nook Simple Touch. It looked fine. But again, EVERY Nook in that store was whacky with it.
Thanks for helping me! Greg |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The sample looks good in ADE 2.0 and on my nook STR. It's actually well formatted. But one thing I would change is I would move widows and orphans to body and make then both 0.
|
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 61
Karma: 10
Join Date: Jul 2012
Device: Nook Simple Touch, Kindle 2nd Gen, Kindle 7" Fire HD
|
Thanks for the suggestion on the widows and orphans. I'll get that in there.
So what could it be about these Nooks at the store? I mean, I found some books where the paragraph spacing was fine, so I ruled out any funky line height and margin settings that someone at the store might have been responsible for. Weird, huh? Greg |
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() Posts: 61
Karma: 10
Join Date: Jul 2012
Device: Nook Simple Touch, Kindle 2nd Gen, Kindle 7" Fire HD
|
By the way, if I place 0 values for widows and orphans, the CSS validation fails. Just getting rid of them should be fine, right?
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Yes, it is odd that the nooks at the store display your book oddly. |
|
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() Posts: 61
Karma: 10
Join Date: Jul 2012
Device: Nook Simple Touch, Kindle 2nd Gen, Kindle 7" Fire HD
|
Well, I just went back to that store. I tried every device. Every model, including the STR, has the line breaks. I've about decided that B&N isn't worth the trouble....
G |
![]() |
![]() |
![]() |
#11 |
Connoisseur
![]() Posts: 61
Karma: 10
Join Date: Jul 2012
Device: Nook Simple Touch, Kindle 2nd Gen, Kindle 7" Fire HD
|
Hi JS,
That widows and orphans CSS advice you gave me was great. Makes the text flow in a more meaningful fashion. Print books have "orphans" and "widows" all the time, so I've never understood the big deal about them. Now for my CreateSpace exploits I have to learn how to get rid of them in Word. Anyway, this Nook thing is driving me bonkers. If anyone else has run into this, please chime in. I'd really like to get it worked out. Thanks again! Greg |
![]() |
![]() |
![]() |
#12 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Bring your nook with you to try out the book. I have no idea why it would look so odd on the in-store nooks yet the sample looks great. |
|
![]() |
![]() |
![]() |
#13 |
Connoisseur
![]() Posts: 61
Karma: 10
Join Date: Jul 2012
Device: Nook Simple Touch, Kindle 2nd Gen, Kindle 7" Fire HD
|
Yeah, I just eliminated widows and orphans from the print book, and it didn't look good. I'm trying to figure out how the pros keep the lines even on opposite pages while keeping widows and orphans at bay. They must shrink and expand the font or line height in minute amounts to compensate.
I'm wondering if the in-store Nooks are absent any firmware upgrades that would prevent this type of mess. I cannot reproduce the error on any of my home Nook devices. Weird, weird, weird.... G |
![]() |
![]() |
![]() |
#14 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | |
temp. out of service
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,815
Karma: 24285242
Join Date: May 2010
Location: Duisburg (DE)
Device: PB 623
|
Quote:
Some guy being told to: "unpack and mount the demo units" will most likely not care or know or - worst case - be told by the boss not to "waste time" on them. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Line break - noob question | alanHd | Sigil | 19 | 05-02-2013 01:33 PM |
Line break within Headers? | Lori Reeser | Sigil | 7 | 02-15-2013 07:27 PM |
Correcting for a missing line break | Tango Mike | Sigil | 31 | 07-28-2012 05:30 AM |
how to insert break-line | schuster | Recipes | 1 | 05-24-2011 03:19 PM |
Yet another PDF line break question | heddhunter | Calibre | 7 | 01-18-2011 02:41 PM |