Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book General > General Discussions

Notices

Reply
 
Thread Tools Search this Thread
Old 10-01-2015, 07:33 PM   #16
Colerson
Nameless Being
 
It'd be nice if there were standard CSS classes that covered a good portion of books, such as:
  • Chapter heading
  • First paragraph in section (usually not indented)
  • Indented paragraph
  • Scene break

And so on. Devices could then allow you to define what these mean, e.g. “put spacing between paragraphs and don't indent anything”, or “no spacing between paragraphs, 1.3em indent for paragraphs”, etc. Books would also provide fallbacks for non-compliant devices.

A few problems, of course:
  1. Getting anybody to agree on standards is really difficult
  2. It certainly wouldn't cover all cases, and might make things look at bit odd when mixing and matching publisher/user CSS settings
  3. Very few people care about things like this

Every time I have to fix the CSS in a book I wish that either it didn't bother me or that there were standards. Neither of which will be very easy to achieve...
  Reply With Quote
Old 10-01-2015, 08:29 PM   #17
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,766
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Dopedangel View Post
Thats the reason coolreader is my software reader of choice. Has the option to disable the internal styles of the book. And you can set style that you like so all books would load in that manner when you disable the internal styles of the book. I did not buy a reader till I found that Hanlin v3 used coolreader.
Not only CoolReader can do that; many ereaders have that feature, for example, PocketBook (for Android). Moreover, PocketBook supports the "float" property while CoolReader doesn't. AlReader is another good choice.

Last edited by RbnJrg; 10-01-2015 at 08:33 PM.
RbnJrg is offline   Reply With Quote
Advert
Old 10-02-2015, 08:21 PM   #18
murg
No Comment
murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.murg ought to be getting tired of karma fortunes by now.
 
Posts: 3,240
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
Quote:
Originally Posted by Colerson View Post
  • Chapter heading
  • First paragraph in section (usually not indented)
  • Indented paragraph
  • Scene break
These are actually content related, and better handled by HTML.

CSS is a formatting language and doesn't know about content.

P.S. The first paragraph/indented paragraph are kinda on the cusp of being content/formatting.
murg is offline   Reply With Quote
Old 10-02-2015, 09:30 PM   #19
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,549
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
^^^ if you use, say, <p class="normal"> and <p class="scene_break"> and define the style class in css, isn't that valid?

Last edited by Barty; 10-02-2015 at 09:35 PM.
Barty is offline   Reply With Quote
Old 10-02-2015, 09:44 PM   #20
Purple Lady
Grand Sorcerer
Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.Purple Lady ought to be getting tired of karma fortunes by now.
 
Purple Lady's Avatar
 
Posts: 5,698
Karma: 16542228
Join Date: Feb 2010
Location: Pennsylvania
Device: Huawei MediaPad M5, LG V30, Boyue T80S, Nexus 7 LTE, K3 3G, Fire HD8
Quote:
Originally Posted by murg View Post
These are actually content related, and better handled by HTML.

CSS is a formatting language and doesn't know about content.

P.S. The first paragraph/indented paragraph are kinda on the cusp of being content/formatting.
So you would say Phoenix Picks ebooks are done well? They have just about everything in the html, so I won't even waste time getting their freebies anymore.
Purple Lady is offline   Reply With Quote
Advert
Old 10-02-2015, 11:39 PM   #21
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,351
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by Barty View Post
^^^ if you use, say, <p class="normal"> and <p class="scene_break"> and define the style class in css, isn't that valid?

*shudder*

I hate it when people use <p class="normal"> or worse yet <p class="para">. I know it's a paragraph that's why it's using the paragraph tag... sheesh.

I think it is much more elegant to simply style the normal paragraph ("normal" meaning the style that is 95% of the document) using:

p {all your normal paragraph styling}

...then use special classes for...well...special paragraphs (first, scenebreak, noindent, etc). It also makes for a much cleaner file and easier to see where there is special styling when you are editing in code view.

FWIW...
Turtle91 is offline   Reply With Quote
Old 10-03-2015, 08:28 PM   #22
Difflugia
Testate Amoeba
Difflugia ought to be getting tired of karma fortunes by now.Difflugia ought to be getting tired of karma fortunes by now.Difflugia ought to be getting tired of karma fortunes by now.Difflugia ought to be getting tired of karma fortunes by now.Difflugia ought to be getting tired of karma fortunes by now.Difflugia ought to be getting tired of karma fortunes by now.Difflugia ought to be getting tired of karma fortunes by now.Difflugia ought to be getting tired of karma fortunes by now.Difflugia ought to be getting tired of karma fortunes by now.Difflugia ought to be getting tired of karma fortunes by now.Difflugia ought to be getting tired of karma fortunes by now.
 
Difflugia's Avatar
 
Posts: 3,049
Karma: 27300000
Join Date: Sep 2012
Device: Many Android devices, Kindle 2, Toshiba e755 PocketPC
Quote:
Originally Posted by Turtle91 View Post
*shudder*

I hate it when people use <p class="normal"> or worse yet <p class="para">. I know it's a paragraph that's why it's using the paragraph tag... sheesh.

I think it is much more elegant to simply style the normal paragraph ("normal" meaning the style that is 95% of the document) using:

p {all your normal paragraph styling}

...then use special classes for...well...special paragraphs (first, scenebreak, noindent, etc). It also makes for a much cleaner file and easier to see where there is special styling when you are editing in code view.

FWIW...
I'm embarrassed to say that never occurred to me. I do web pages that way, but I've looked at so many epubs with <p class="normal"> or similar, that I just do that myself when formatting something by hand.

Or at least I did until right now.
Difflugia is offline   Reply With Quote
Old 10-03-2015, 08:39 PM   #23
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,549
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Quote:
Originally Posted by Turtle91 View Post
*shudder*

I hate it when people use <p class="normal"> or worse yet <p class="para">. I know it's a paragraph that's why it's using the paragraph tag... sheesh.

I think it is much more elegant to simply style the normal paragraph ("normal" meaning the style that is 95% of the document) using:

p {all your normal paragraph styling}

...then use special classes for...well...special paragraphs (first, scenebreak, noindent, etc). It also makes for a much cleaner file and easier to see where there is special styling when you are editing in code view.

FWIW...
I was trying to be explicit, not saying that that is exactly how it should be done.

You said that things like scene break are content and should be done in html and not css. I just wanted to clarify what you meant.
Barty is offline   Reply With Quote
Old 10-03-2015, 09:39 PM   #24
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,351
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by Barty View Post
I was trying to be explicit, not saying that that is exactly how it should be done.

You said that things like scene break are content and should be done in html and not css. I just wanted to clarify what you meant.
Sorry, I wasn't actually replying to your question, just the use of <p class="normal">

The way I understand it, identifying a paragraph as the "first" or a "scenebreak" is purely structural. You are defining that paragraph's function. There is no requirement whatsoever to have the style of those paragraphs any different than any other paragraph. However, if you choose to style them differently (as I do), then it is easily accomplished by updating the CSS file.

Cheers,


edit - a little more complete answer:

Likewise using the <h> tags are structural...they define the function of a section header. Chapter heads should use one of those <h> tags rather than a <p class="h1"> class. When you want to change the style of the <h> then you do so in the CSS file.

Last edited by Turtle91; 10-03-2015 at 09:58 PM.
Turtle91 is offline   Reply With Quote
Old 10-05-2015, 01:33 AM   #25
Colerson
Nameless Being
 
Quote:
Originally Posted by murg View Post
These are actually content related, and better handled by HTML.

CSS is a formatting language and doesn't know about content.

P.S. The first paragraph/indented paragraph are kinda on the cusp of being content/formatting.
The style (how they appear; spacing vs no spacing between paragraphs, etc) should be customizable and not hardcoded. I've returned ebooks which do not easily allow me to fix bad formatting because they don't use CSS.

For me, the bottom line is that I don't care how a publisher wants things to look. I want things to look how I prefer them to look. This applies to novels; I can appreciate that some books need special layout throughout.
  Reply With Quote
Old 10-05-2015, 11:28 PM   #26
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,351
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by Colerson View Post
The style (how they appear; spacing vs no spacing between paragraphs, etc) should be customizable and not hardcoded. I've returned ebooks which do not easily allow me to fix bad formatting because they don't use CSS.

For me, the bottom line is that I don't care how a publisher wants things to look. I want things to look how I prefer them to look. This applies to novels; I can appreciate that some books need special layout throughout.
Very true. Unfortunately a lot of that has to do with the reader/app functionality rather than the HTML coding. Readers/apps that don't allow the user to override the publisher settings are, in my opinion, useless. I like to style my books a certain way - and it is usually to repair a very bad coding attempt by the publisher/author. I've found that Marvin does a great job at that. I also tend to clean up the gnarly css code on most books I read (because I can)... Marvin allows me to choose publisher's settings for those books.

Unfortunately, as long as there are the great unwashed masses that continue to use the substandard readers/apps, there won't be much pressure for developers to provide a better product.

Cheers,
Turtle91 is offline   Reply With Quote
Old 10-05-2015, 11:56 PM   #27
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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
A lot of Android ePub reading apps tend to do too much overriding so there is little chance of being able to read as the XML/CSS dictates. It's like tossing out the CSS and letting the XML flounder. I know there are a lot of eBooks that could use some editing, but tossing out the CSS is not a way to do it.
JSWolf is offline   Reply With Quote
Old 10-07-2015, 10:09 AM   #28
Cajun
Love to Read
Cajun ought to be getting tired of karma fortunes by now.Cajun ought to be getting tired of karma fortunes by now.Cajun ought to be getting tired of karma fortunes by now.Cajun ought to be getting tired of karma fortunes by now.Cajun ought to be getting tired of karma fortunes by now.Cajun ought to be getting tired of karma fortunes by now.Cajun ought to be getting tired of karma fortunes by now.Cajun ought to be getting tired of karma fortunes by now.Cajun ought to be getting tired of karma fortunes by now.Cajun ought to be getting tired of karma fortunes by now.Cajun ought to be getting tired of karma fortunes by now.
 
Cajun's Avatar
 
Posts: 23
Karma: 1967342
Join Date: Oct 2015
Device: Kobo Aura HD
I rarely have a problem, but when I do it is annoying, I agree. For me a Kindle would not be a solution. I spend a few minutes, to modify the text with my Kobo and that's it, I read. If I can't modify, I send a note to the author and publisher, then read.

Having insight into design, sometimes over design might be an issue. I'm wondering if the designers are using the eReaders they are imposing the designs on...
Cajun is offline   Reply With Quote
Old 10-07-2015, 12:51 PM   #29
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,472
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
For me, the problem with unsuitable formatting grew so irksome that I stopped downloading books directly to my kindles. I modify all my books in Calibre until they look exactly the way I want, and then sideload them. Generally it takes a few minutes or less to fix each book. I admit I'm extremely picky in that regard, but paper books usually did not have problems with things like indents, line and paragraph spacing, font etc. So it bothers me exceedingly when I encounter those issues in e-books.
Sirtel is offline   Reply With Quote
Old 10-08-2015, 12:23 PM   #30
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
Quote:
Originally Posted by Sirtel View Post
For me, the problem with unsuitable formatting grew so irksome that I stopped downloading books directly to my kindles. I modify all my books in Calibre until they look exactly the way I want, and then sideload them. Generally it takes a few minutes or less to fix each book. I admit I'm extremely picky in that regard, but paper books usually did not have problems with things like indents, line and paragraph spacing, font etc. So it bothers me exceedingly when I encounter those issues in e-books.
I've become so sensitive to poor formatting in ebooks that I now notice some of the same problems in printed books! I never noticed these problems in printed books prior to reading (and fixing) ebooks.
icallaci is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen background color 2014 Kindle basic vs 2013 basic bounce Amazon Kindle 1 01-08-2015 03:50 PM
Cleaning ePubs: automatically, fast and with as many generic rules as possible ibu ePub 118 04-04-2014 10:31 AM
REALLY basic, basic, basic questions MrB Amazon Kindle 3 10-22-2012 06:43 AM
trouble when converting many epubs to epubs comet Conversion 13 03-21-2012 01:57 AM
Touch Problem with all epubs, my epubs, or my kobo? (line clipping) plague006 Kobo Reader 14 12-02-2011 11:32 PM


All times are GMT -4. The time now is 03:23 PM.


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