![]() |
#16 |
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 think you'd like my way. My way is the minimalist way. I start off deleting all the unused style's as a lot of eBooks uses a catch all CSS that is just full of unused styles. Sometimes more unused styles then used. So I do use <p> for a standard paragraph with a simple indent. Nothing special. It works in every viewer I've used it on unless some viewer setting overrides it. I even find things like <p class="chapter"> to be not good (IMHO) for chapter titles. I prefer a plain old <h2>.
|
![]() |
![]() |
![]() |
#17 |
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
|
Can you please post a sample of your ePub? Just cut out most of it and post a sample that shows this problem.
|
![]() |
![]() |
![]() |
#18 | |
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:
It's actually easier to see your other p styles when you have just <p>. Also, it makes the eBook smaller as you don't have all that extra code that you really don't need. |
|
![]() |
![]() |
![]() |
#19 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
IT IGNORES USER STYLES for the FACTORY GARBAGE at least, some let you override the override (AKA use publishers styles which is OFF by default) |
|
![]() |
![]() |
![]() |
#20 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
I tremble to enter this battle of formatting giants, but note that (as was said in another thread) html formatting is a matter of pairs. If you have a style in the style sheet, it won't be used unless the body of the book refers to that style; contrawise, there's no point calling for a class in the body of the book unless there's a matching style in the style sheet.
Personally, I'm with the <p> faction. You are welcome to borrow or modify my style sheet from http://notjohnkdp.blogspot.com/2013/...yle-sheet.html |
![]() |
![]() |
![]() |
#21 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Get rid of the white-space: pre-wrap. That can and will give you issues. If the stylesheet you showed is really from Pages, Apple should fire them. That is one rubbish stylesheet with lot of redundant coding.
|
![]() |
![]() |
![]() |
#22 |
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
|
That is clearly a problem in whatever program you are using to view your ePub. It should not ignore your CSS. What broken program are you using that doesn't work right?
|
![]() |
![]() |
![]() |
#23 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I was advising a newbie of possible gotchas from some big name device suppliers. The only known issues with my standard program (MRSDK) are the well known ones: 1) Ignore a CSS sheet containing syntax errors. User failure to validate problem. 2) Centering of some objects like HR ; I use a workaround Moon + Pro behaves (on my TAB) My K4 mostly behaves (I hacked the words per line setting file. Small :40 was not small enough for me:10) |
|
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The style="white-space:pre-wrap" attribute in the first div tag inside the body (post #7): chuck that thing out the window.
Pages always adds that white-space:pre-wrap crap somewhere and it always fouls something up when opened/edited with anything other than Pages. EDIT: Sorry ... missed that Toxaris had already called this one. Last edited by DiapDealer; 10-24-2014 at 01:28 PM. |
![]() |
![]() |
![]() |
#25 | |
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:
I've used iBooks and I own a nook STR and both work with <p> and the accompanying CSS style. If a program does not respect the CSS, then don't use it and find one that does. I'm not telling someone not to use <p> instead of <p class="indent"> just because there are programs put there that are broken. Those broken programs are not ones hat get tested against eBooks anyway. |
|
![]() |
![]() |
![]() |
#26 | |||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Perhaps it is because I have seen too many horrors of spaghetti code. ![]() Quote:
Side Note: Reminds me a lot like the typography/ellipsis chat we had in this topic: https://www.mobileread.com/forums/sho...d.php?t=206482 The ellipsis character or a "manual" ellipsis with non-breaking spaces isn't wrong, just make sure you apply it consistently. ![]() Other Side Note: JSWolf, buddy ol' pal... you should include multi-quotes in your posts! Instead of making 3 posts one right after the other, just include all three quotes + comments in a single one! Makes the forum much cleaner + easier to follow. ![]() Quote:
Although I have to say, SOMETIMES, you can leave code in there that can be used for semantic/organizational purposes, even if there is no reference in the CSS stylesheet. For example, wrapping Greek words in a "greek" span: Quote:
Similar thing with inline math. You could mark all of that up with a <span class="math">, even though you won't necessarily be doing anything special with it in the EPUB. (I have been meaning to implement this in the future books... I still have to give it some thought): Quote:
Last edited by Tex2002ans; 10-24-2014 at 05:42 PM. |
|||||
![]() |
![]() |
![]() |
#27 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Sorry, I'm not following that part, about the centering, in the context of this conversation, at all. Honestly, I don't think I can ever remember having any device ignore a p tag with whatever formatting I'd applied, or we'd applied. I mean, a hunnerd bajillion years ago, it used to be that for MOBI, a naked p was a first-line indent, no top/bottom margin p. And that would be the default, unless you specifically altered it. (Hitch note of braggadocio: Amazon CALLED me to find out how I was making flush-left paras, in 2009 or early 2010. HA. Okay, chest-thumping over. That was my 15minutes, in this line of work.). BUT, even that's changed, if someone wants to force the issue. In fact, I think that our standard CSS, in-house, has a smaller first-line indent, than does the unaltered p for Amazon. And honestly: I don't remember EVER seeing any of the other readers out there--you know the majors, Nook, iBooks, Sony, or the browser-readers, ePUBreader for FF or REadium--ever ignore our house CSS for however we'd coded it for p. Quote:
Now: that doesn't mean that I can't be WRONG. Of course I could. Hell, for all I remember, lrb would do that. But as far as I know, as of today, you can set the p to whatever your main body style is going to be (flush left, top-padding, indented, with/without padding, whatever) and it should work. if it doesn't, something ELSE hinky is going on. Although again, happy to find out otherwise and to learn that I need to pay attention to another device about which I currently know nothing, or haven't seen that result. Respectfully, w/hugs and kisses, Hitch |
||
![]() |
![]() |
![]() |
#28 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
You are bold enough to sell a book on the topic of formatting, along with your blog, so I daresay, you are bold enough to post here. Look at the bright side--here, no matter what, we don't ask for our money back. ![]() Hitch |
|
![]() |
![]() |
![]() |
#29 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
![]() |
![]() |
![]() |
#30 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Paragraph Spacing/Page Break Issue | Flux84 | Conversion | 0 | 04-02-2014 08:17 AM |
Manual Paragraph Spacing | ajm23 | Conversion | 3 | 10-23-2013 10:06 PM |
Paragraph spacing | Banks | ePub | 2 | 08-09-2012 05:24 PM |
Preference: Paragraph indent or a little paragraph spacing? | 1611mac | General Discussions | 48 | 11-11-2011 12:43 AM |
Paragraph spacing | jhempel24 | Calibre | 5 | 08-24-2010 12:14 AM |