Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 02:59 PM   #61
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,447
Karma: 20456789
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 jhowell View Post
While I agree with your stance on property names that begin with "-webkit-" and other prefixes, if you look at the cited appendix it becomes clear that "Prefixed properties" in this case refers to property names that begin with the "-epub-" prefix.
I noted that as well. However, the spec is talking about ePub so it would make sense to only demo -epub- prefixes. In the real world the devices/apps DO support prefixes of all types to some degree or another. The argument was being made that using prefixes wasn't allowed...that is not true.

Best practice would be to use the non-prefix if it's supported, prefixed if necessary. Either way is legal and epubcheck doesn't give a fit over their use.

To Jon's latest goal post movement - ignoring an unsupported style is exactly what epub is supposed to do. That is not broken. That is what coder's rely on when they create epubs that are backwards compatible...it's all part of the fallback coding concept.

Last edited by Turtle91; Today at 03:01 PM.
Turtle91 is offline   Reply With Quote
Old Today, 04:12 PM   #62
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: 81,644
Karma: 150265991
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 Turtle91 View Post
I noted that as well. However, the spec is talking about ePub so it would make sense to only demo -epub- prefixes. In the real world the devices/apps DO support prefixes of all types to some degree or another. The argument was being made that using prefixes wasn't allowed...that is not true.

Best practice would be to use the non-prefix if it's supported, prefixed if necessary. Either way is legal and epubcheck doesn't give a fit over their use.

To Jon's latest goal post movement - ignoring an unsupported style is exactly what epub is supposed to do. That is not broken. That is what coder's rely on when they create epubs that are backwards compatible...it's all part of the fallback coding concept.
But due to older versions of RMSDK ignoring the entire CSS when it thinks there is an error, you have to take that into account. We have a number of people using devices with older versions of RMSDK and some are being sold now. We have Kobo & B&N being sold with older RMSDK. With the nook, you have no choice. We Kobo, you may or may not have a choice. The thing is, most users would not know this. All they would think is that there is something wrong with the eBook.
JSWolf is offline   Reply With Quote
Advert
Old Today, 05:31 PM   #63
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,447
Karma: 20456789
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 JSWolf View Post
But due to older versions of RMSDK ignoring the entire CSS when it thinks there is an error, you have to take that into account. We have a number of people using devices with older versions of RMSDK and some are being sold now. We have Kobo & B&N being sold with older RMSDK. With the nook, you have no choice. We Kobo, you may or may not have a choice. The thing is, most users would not know this. All they would think is that there is something wrong with the eBook.
You keep forgetting the word “sheet” when you say this. Those broken devices might ignore the entire css “sheet” if it sees something it doesn’t like… that’s why people actually have 2 (or more) css sheets where they put the styles that those old, broken, devices might barf on…. This also part of that backwards compatible - fallback coding that good coders plan for.
Turtle91 is offline   Reply With Quote
Old Today, 06:39 PM   #64
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: 49,593
Karma: 174632684
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
But due to older versions of RMSDK ignoring the entire CSS when it thinks there is an error, you have to take that into account. We have a number of people using devices with older versions of RMSDK and some are being sold now. We have Kobo & B&N being sold with older RMSDK. With the nook, you have no choice. We Kobo, you may or may not have a choice. The thing is, most users would not know this. All they would think is that there is something wrong with the eBook.
Testing on my Kobo Forma's version of RMSDK, it will disregard the entire stylesheet if a structural/syntax error is found (missing ;, missing { or }, etc.). For an unknown property, it properly treats that one item/line as a null operation while the rest of the stylesheet is used.
DNSB is offline   Reply With Quote
Old Today, 07:29 PM   #65
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: 81,644
Karma: 150265991
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 DNSB View Post
Testing on my Kobo Forma's version of RMSDK, it will disregard the entire stylesheet if a structural/syntax error is found (missing ;, missing { or }, etc.). For an unknown property, it properly treats that one item/line as a null operation while the rest of the stylesheet is used.
I just took the eBook Voyage of the Damned from StandardEBooks. As it comes, it's broken in an older RMSDK. But if you remove two simple things that aren't actually needed it works well enough.

What I'm pointing out is just because something is valid in epub3 does not mean it will work in an older RMSDK.

Code:
/* Invert images in dark mode. RMSDK requires a target media as well as a state. */
@media all and (prefers-color-scheme: dark){
	img.epub-type-contains-word-se-image-color-depth-black-on-transparent{
		filter: invert(100%);
	}

	img.epub-type-contains-word-se-image-color-depth-black-on-transparent.epub-type-contains-word-se-image-style-realistic{
		background: currentColor;
		filter: none;
	}
}
/* ...or if the device supports prefers-color-scheme. We’ll invert the image in core.css. RMSDK requires a target media as well as a state. */
@media all and (prefers-color-scheme){
	img.epub-type-contains-word-se-image-color-depth-black-on-transparent:not(.epub-type-contains-word-se-image-style-realistic){
		background: transparent !important;
	}
}

Last edited by JSWolf; Today at 07:35 PM.
JSWolf is offline   Reply With Quote
Advert
Old Today, 08:40 PM   #66
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,447
Karma: 20456789
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 JSWolf View Post
I just took the eBook Voyage of the Damned from StandardEBooks. As it comes, it's broken in an older RMSDK. But if you remove two simple things that aren't actually needed it works well enough.

What I'm pointing out is just because something is valid in epub3 does not mean it will work in an older RMSDK.

Code:
/* Invert images in dark mode. RMSDK requires a target media as well as a state. */
@media all and (prefers-color-scheme: dark){
	img.epub-type-contains-word-se-image-color-depth-black-on-transparent{
		filter: invert(100%);
	}

	img.epub-type-contains-word-se-image-color-depth-black-on-transparent.epub-type-contains-word-se-image-style-realistic{
		background: currentColor;
		filter: none;
	}
}
/* ...or if the device supports prefers-color-scheme. We’ll invert the image in core.css. RMSDK requires a target media as well as a state. */
@media all and (prefers-color-scheme){
	img.epub-type-contains-word-se-image-color-depth-black-on-transparent:not(.epub-type-contains-word-se-image-style-realistic){
		background: transparent !important;
	}
}
That’s cool - but the standard has been there to accept prefixes since early on in ePub coding - and it is still valid today.

You should always test on your targeted market’s device(s) and code for proper fall-back options to accommodate older devices to a point.
Turtle91 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
page-break-before: always; avresbo Kobo Reader 1 03-02-2023 09:30 AM
Do you use page-break-after and page-break-inside? fluoresce ePub 14 05-24-2017 02:57 AM
No page break for H2 RickAltman Calibre 2 06-25-2012 12:02 PM
PAGE BREAK JFS-NMF Recipes 0 03-04-2011 10:15 AM
Page break before <b> flowoeB Calibre 14 04-12-2009 04:05 PM


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


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