Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 06-24-2018, 07:49 PM   #1
vr8ce
Member
vr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchfork
 
vr8ce's Avatar
 
Posts: 14
Karma: 48958
Join Date: May 2017
Device: iPad Pro 9.7"
"Check book" complains about hyphens

Why does "Check book" complain about the various CSS "hyphens" directives (hyphens, -epub-hyphens, -webkit-hyphens, etc.)? The directives appear to have been in the epub spec since at least 2.x, and it's part of the CSS3 spec as well. Just about any epub guide that I've seen tells you to use them. These kinds of false positives make it more difficult to go through "real" errors in the check.

(If this has been covered before, I apologize. I've never been able to get MobileRead's "Search" to work — I always get an API error message, on multiple browsers, over several months of trying.)
vr8ce is offline   Reply With Quote
Old 06-24-2018, 07:55 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 22,110
Karma: 22087764
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A
Remember
CSS rules apply to more the ebooks.
ebooks are a subset usage

for most cases, these cause no problems for personal use (and it isn't the device that has issues.) It's the publishers rigid, check rules. Some even complain about VALID code
theducks is offline   Reply With Quote
Old 06-24-2018, 09:54 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,470
Karma: 10205098
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
EPUB 2 uses CSS 2 and they are not part of CSS 2.
kovidgoyal is offline   Reply With Quote
Old 06-24-2018, 11:57 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,001
Karma: 21690572
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by vr8ce View Post
Why does "Check book" complain about the various CSS "hyphens" directives (hyphens, -epub-hyphens, -webkit-hyphens, etc.)? The directives appear to have been in the epub spec since at least 2.x, and it's part of the CSS3 spec as well. Just about any epub guide that I've seen tells you to use them. These kinds of false positives make it more difficult to go through "real" errors in the check.

(If this has been covered before, I apologize. I've never been able to get MobileRead's "Search" to work — I always get an API error message, on multiple browsers, over several months of trying.)
AFAIR, most of those directives are not part of the epub spec. If I feed my stylesheets through the W3C CSS Validation Service, it comes up with these errors:

Sample output:

Code:
9 		-epub-hyphens is an unknown vendor extension
10 		-webkit-hyphens is an unknown vendor extension
11 		-moz-hyphens is an unknown vendor extension
12 		Property adobe-hyphenate doesn't exist
The only one that gets accepted is hyphens : none; if I set the css level to 3.

For an old thread, see Kobo, Kindle, KOReader and hyphenation for some discussion.

Last edited by DNSB; 06-25-2018 at 02:33 PM. Reason: Added the not before part of the epub spec.
DNSB is offline   Reply With Quote
Old 06-25-2018, 11:03 AM   #5
vr8ce
Member
vr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchfork
 
vr8ce's Avatar
 
Posts: 14
Karma: 48958
Join Date: May 2017
Device: iPad Pro 9.7"
Quote:
Originally Posted by kovidgoyal View Post
EPUB 2 uses CSS 2 and they are not part of CSS 2.
Every Kindle book I've purchased in the last couple of years has these directives.

When editing an existing book that has them, showing them as errors are false positives; they're noise. Please consider an option to turn them off.

Thanks!
vr8ce is offline   Reply With Quote
Old 06-25-2018, 11:06 AM   #6
vr8ce
Member
vr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchforkvr8ce can load mercury with a pitchfork
 
vr8ce's Avatar
 
Posts: 14
Karma: 48958
Join Date: May 2017
Device: iPad Pro 9.7"
Quote:
Originally Posted by theducks View Post
Remember
CSS rules apply to more the ebooks.
ebooks are a subset usage

for most cases, these cause no problems for personal use (and it isn't the device that has issues.) It's the publishers rigid, check rules. Some even complain about VALID code
I do remember that, but it's irrelevant here — Calibre is an ebook editor. Ebooks are the only context for this CSS. And these directives came from a publisher. The errors are noise.
vr8ce is offline   Reply With Quote
Old 06-25-2018, 11:47 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,470
Karma: 10205098
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
They aren't noise, they are warnings about CSS properties that are not standard and that therefore might not work everywhere.
kovidgoyal is offline   Reply With Quote
Old 06-25-2018, 12:19 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 22,110
Karma: 22087764
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A
Quote:
Originally Posted by vr8ce View Post
I do remember that, but it's irrelevant here — Calibre is an ebook editor. Ebooks are the only context for this CSS. And these directives came from a publisher. The errors are noise.
They are WARNINGS, not noise.
There are lots of older devices that do have (improper) issues with directives that are supposed to be ignored if unknown
RMSDK is famous for ignoring whole stylesheets because it found a CSS entry it did not know how to deal with

Your job is to know what WARNING YOU can allow to remain
theducks is offline   Reply With Quote
Old 06-25-2018, 02:53 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,001
Karma: 21690572
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by vr8ce View Post
I do remember that, but it's irrelevant here — Calibre is an ebook editor. Ebooks are the only context for this CSS. And these directives came from a publisher. The errors are noise.
Perhaps you might to tell Hitch that anything in an ebook is okay because it came from a publisher. Everyone needs a good laugh. Ghod knows, I've edited enough ebooks to find your faith in publishers risible. Touching and childlike but risible nonetheless.

To belabour the point, I have never seen a standard published by Amazon for their CSS content. So the only standard for ebooks and CSS we have to work with are the CSS standards. By those standards, the only item you mentioned that is a standard item is hyphens and that only if you are generating an epub3 book using CSS3. Any of the other directives you mentioned are vendor extensions and not part of the CSS standards.

So they can and should generate a warning. You can use them but don't depend on them to work as you hope since most renderers will disregard them at best. I've seen renderers that did not fail gracefully on finding an unknown directive so the entire stylesheet was dumped.
DNSB is offline   Reply With Quote
Old 06-25-2018, 05:13 PM   #10
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 1,047
Karma: 5860915
Join Date: Jul 2012
Device: Nook
Quote:
Originally Posted by vr8ce View Post
Why does "Check book" complain about the various CSS "hyphens" directives (hyphens, -epub-hyphens, -webkit-hyphens, etc.)? [...] Just about any epub guide that I've seen tells you to use them.
May I ask which guides said this?
Tex2002ans is offline   Reply With Quote
Old 06-26-2018, 08:59 AM   #11
deback
Book E d i t o r
deback knows the complete value of PI to the enddeback knows the complete value of PI to the enddeback knows the complete value of PI to the enddeback knows the complete value of PI to the enddeback knows the complete value of PI to the enddeback knows the complete value of PI to the enddeback knows the complete value of PI to the enddeback knows the complete value of PI to the enddeback knows the complete value of PI to the enddeback knows the complete value of PI to the enddeback knows the complete value of PI to the end
 
Posts: 285
Karma: 31930
Join Date: May 2015
Device: Laptop
You can delete all those lines by adding them to the Preferences under Conversion -> Common Options -> Transform Styles. Enter the property name (without the ending semi-colon), choose "If any value," and then choose "Remove the property." Then, after you convert the file, those properties will be gone.

Last edited by deback; 06-26-2018 at 10:21 AM.
deback is offline   Reply With Quote
Old 06-26-2018, 10:06 AM   #12
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: 52,382
Karma: 47516227
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by DNSB View Post
Perhaps you might to tell Hitch that anything in an ebook is okay because it came from a publisher. Everyone needs a good laugh. Ghod knows, I've edited enough ebooks to find your faith in publishers risible. Touching and childlike but risible nonetheless.
I remember buying a series of three books and finding out that none of them worked with ADE. The CSS had errors that prevented them from working. Because I was able to strip the DRM, I was able to fix the errors and the eBooks became readable. I didn't have to bother to get my money back.
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyphens warning in "check book" Phssthpok Editor 5 12-08-2015 04:47 AM
Bugs "Sanity Check epub" and "Failed Release date" on V 0.91 qkiazd Sigil 5 12-03-2015 04:01 AM
"Check book" not checking local URLs Phssthpok Editor 2 08-17-2015 12:17 PM
How to fix "Extra Titles" in Database in " Check Library - Problems Found millan Library Management 33 07-16-2015 07:12 AM


All times are GMT -4. The time now is 01:00 PM.


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