Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-12-2014, 01:34 AM   #16
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by odedta View Post
@JSWolf: That's a CSS3 rule isn't it?
Correct me if i'm wrong, devices that don't support CSS3 will ignore the entire file if it "has errors" such as font-face rules or media queries. So, it's best practice to put them in a separate stylesheet.
@font-face is in CSS 2.0 and CSS 3.0, was removed from CSS 2.1 because no browsers supported it, and is AFAIK the only part of the EPUB 2 spec that explicitly references CSS 2.0 instead of 2.1.

With that said, even if it weren't, the CSS specification (CSS 2.1 section 4.2) explicitly defines the rules for parsing declarations, and how to handle declarations that you can't interpret. Those rules are there precisely to ensure forward compatibility in situations like this.

More to the point, any reader that ignores an entire file because it "has errors" is egregiously violating the CSS specification, and should be considered defective by design.

That means you, Adobe.
dgatwood is offline   Reply With Quote
Old 09-12-2014, 06:50 AM   #17
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Quote:
Originally Posted by dgatwood View Post
@font-face is in CSS 2.0 and CSS 3.0, was removed from CSS 2.1 because no browsers supported it, and is AFAIK the only part of the EPUB 2 spec that explicitly references CSS 2.0 instead of 2.1.

With that said, even if it weren't, the CSS specification (CSS 2.1 section 4.2) explicitly defines the rules for parsing declarations, and how to handle declarations that you can't interpret. Those rules are there precisely to ensure forward compatibility in situations like this.

More to the point, any reader that ignores an entire file because it "has errors" is egregiously violating the CSS specification, and should be considered defective by design.

That means you, Adobe.
I understand dgatwood and will look it up on the specs, thank you very much!
odedta is offline   Reply With Quote
Advert
Old 09-12-2014, 10:51 AM   #18
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,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by dgatwood View Post
@font-face is in CSS 2.0 and CSS 3.0, was removed from CSS 2.1 because no browsers supported it, and is AFAIK the only part of the EPUB 2 spec that explicitly references CSS 2.0 instead of 2.1.

With that said, even if it weren't, the CSS specification (CSS 2.1 section 4.2) explicitly defines the rules for parsing declarations, and how to handle declarations that you can't interpret. Those rules are there precisely to ensure forward compatibility in situations like this.

More to the point, any reader that ignores an entire file because it "has errors" is egregiously violating the CSS specification, and should be considered defective by design.

That means you, Adobe.
Actually, I do like that ADE dumps the CSS if it finds an error. It means that it is very easy to know that the CSS has an error. It could be a simple very easy to overlook error and do you really want to sell an eBook with an error in the CSS?
JSWolf is offline   Reply With Quote
Old 09-12-2014, 11:04 AM   #19
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Wolf, disregarding the entire file for a simple mistake is silly, the book will look just fine if the device would just disregard it, if you sell ebooks i think you should validate all your files, that for me would be a minimum requirement of every ebook sold
odedta is offline   Reply With Quote
Old 09-12-2014, 07:52 PM   #20
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,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by odedta View Post
Wolf, disregarding the entire file for a simple mistake is silly, the book will look just fine if the device would just disregard it, if you sell ebooks i think you should validate all your files, that for me would be a minimum requirement of every ebook sold
But sometimes an error in the CSS can go unreported by the error checker. With the way I format things, it's very easy to know when the CSS is being ignored.
JSWolf is offline   Reply With Quote
Advert
Old 09-12-2014, 09:26 PM   #21
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
There is a great deal of silliness in how epub renderers work and it is NOT consistent even within brands. Nook barfs with too many changes in the first line, early apple doesn't match later apple, Kindles are not kindles if they are early Kindles etc.

This is why Hitch's company owns so many devices. It is not because she wants to support the manufacturers, but because that way she can be sure it works adequately in devices.

Epubs are not web pages. They are rendered a page at a time, so it has to be structured in a particular way to keep from blowing up. A web page keeps on going one and on and on and has access to a powerful computer to guess what the dopey programmer meant when they left off all the paragraph close tags.
mrmikel is offline   Reply With Quote
Old 09-17-2014, 06:46 PM   #22
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by mrmikel View Post
Epubs are not web pages. They are rendered a page at a time, so it has to be structured in a particular way to keep from blowing up. A web page keeps on going one and on and on and has access to a powerful computer to guess what the dopey programmer meant when they left off all the paragraph close tags.
Actually, they are just web pages. EPUB readers, however, are not web browsers. They're XHTML-only paged media viewers, which means that should behave like a web browser would if you were printing to a PDF (with a very small paper size).

The fact that they're XHTML-only means that they explode if tags don't match, but so do web browsers if you provide XHTML content with unbalanced tags.
dgatwood is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub crashes on Sigil for Mac, OK on Sigil for PC crystamichelle Sigil 6 08-14-2013 02:52 PM
PDF->EPUB only displays 'Front section' bsmart Conversion 2 05-14-2011 05:44 AM
epub to mobi - Displays Html tags stevec1409 Conversion 7 02-14-2011 03:41 PM
error message on ireader curlyhairgirl Introduce Yourself 5 01-09-2011 04:39 AM
Apple's iReader Launch thymaster General Discussions 14 09-07-2010 12:41 PM


All times are GMT -4. The time now is 01:46 AM.


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