06-24-2018, 07:49 PM | #1 |
Enthusiast
Posts: 31
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.) |
06-24-2018, 07:55 PM | #2 |
Well trained by Cats
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), 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 |
06-24-2018, 09:54 PM | #3 |
creator of calibre
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
EPUB 2 uses CSS 2 and they are not part of CSS 2.
|
06-24-2018, 11:57 PM | #4 | |
Bibliophagist
Posts: 35,301
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
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 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. |
|
06-25-2018, 11:03 AM | #5 |
Enthusiast
Posts: 31
Karma: 48958
Join Date: May 2017
Device: iPad Pro 9.7"
|
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! |
06-25-2018, 11:06 AM | #6 |
Enthusiast
Posts: 31
Karma: 48958
Join Date: May 2017
Device: iPad Pro 9.7"
|
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.
|
06-25-2018, 11:47 AM | #7 |
creator of calibre
Posts: 43,842
Karma: 22666666
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.
|
06-25-2018, 12:19 PM | #8 | |
Well trained by Cats
Posts: 29,778
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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 |
|
06-25-2018, 02:53 PM | #9 | |
Bibliophagist
Posts: 35,301
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
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. |
|
06-25-2018, 05:13 PM | #10 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
06-26-2018, 08:59 AM | #11 |
Book E d i t o r
Posts: 432
Karma: 288184
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. |
06-26-2018, 10:06 AM | #12 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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.
|
|
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 |