Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2019, 03:31 PM   #31
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: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by odamizu View Post
Omigod! I've been doing this wrong for years!

I've always used widows:0, orphans:0 to get pages to be the same length — and it works, I just had to ignore the fact that my css never fully validated.


And there was a lot of bogus information about widows/orphans: 0 floating around for years. Luckily, it all looks to be ironed out now.
Tex2002ans is offline   Reply With Quote
Old 10-12-2019, 04:36 PM   #32
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
Quote:
Originally Posted by Tex2002ans View Post
And there was a lot of bogus information about widows/orphans: 0 floating around for years.
Okay, that makes me feel better cuz I know I didn't come up with widows/orphans:0 on my own. I read it somewhere while trying to figure out how to get my pages to be the same length.

Speaking of which, the two remaining validation errors that I've learned to ignore are: unrecognized media amzn-kf8 and Property adobe-hyphenate doesn't exist

Is there a correct way to do @media amzn-kf8 and adobe-hyphenate to clear those errors as well?
odamizu is offline   Reply With Quote
Advert
Old 10-12-2019, 06:39 PM   #33
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: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by odamizu View Post
Is there a correct way to do @media amzn-kf8
That's a Media Query.

If you read the Kindle Publishing Guidelines (PDF), it's under "Appendix D: Media Queries"... they give example code.

amzn-ke8 is not applicable to EPUB readers, so they (theoretically) should ignore that section of code, but support for Media Queries depends on device. (And many are buggy.)

As long as you code things properly, there shouldn't be much harm in using them.

Quote:
Originally Posted by odamizu View Post
adobe-hyphenate to clear those errors as well?
I wrote about the valid way to apply CSS hyphens (and explain each of the settings) in multiple different posts:

adobe-hyphenate is/was a valid way to apply it only in ADE/RMSDK... but I would still recommend against trying to disable hyphenation.

Side Note: There are also a few newer things in CSS3 dealing with hyphenation. Like specifying how many characters allowed to the left/right of the hyphens, or how many hyphen line-endings allowed in a row.

See above topics for many more details.

Last edited by Tex2002ans; 10-12-2019 at 06:45 PM.
Tex2002ans is offline   Reply With Quote
Old 10-12-2019, 11:13 PM   #34
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
Thanks, Tex2002ans.

I understand media queries and adobe-hyphenate. What I meant was, I use them for my own purposes, but it always throws a validation error, which I ignore. Then the "invalid" css succeeds in making my ereaders do what I want them to.

I was just wondering if there was a different media query that wouldn't throw a css validation error, but it looks like "amzn-kf8" is the proper media type for kf8, according to the Kindle Publishing Guidelines.

And if adobe-hyphenate is the proper css for ADE/RMSDK, that answers that question as well.

But at least I got rid of the widows/orphans validation error
odamizu is offline   Reply With Quote
Old 10-13-2019, 02:46 PM   #35
yekim54
What the Dog Saw
yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.
 
yekim54's Avatar
 
Posts: 311
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-650, Surface3
Quote:
Originally Posted by odamizu View Post
Omigod! I've been doing this wrong for years!

I've always used widows:0, orphans:0 to get pages to be the same length — and it works, I just had to ignore the fact that my css never fully validated.

I never realized widows:1, orphans:1 would do what I wanted and validate.
Same here. I've been using the advice in the following post the past 9+ years:

https://www.mobileread.com/forums/sh...2&postcount=19
yekim54 is offline   Reply With Quote
Advert
Old 10-13-2019, 08:00 PM   #36
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: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by odamizu View Post
But at least I got rid of the widows/orphans validation error


Quote:
Originally Posted by yekim54 View Post
Same here. I've been using the advice in the following post the past 9+ years
Well wipe that 0 and make it a 1.

0 is invalid, always has been:

CSS specs (widows and orphans):

Quote:
Only positive integers are allowed as values of orphans and widows. Negative values and zero are invalid and must cause the declaration to be ignored.
Quote:
Originally Posted by odamizu View Post
What I meant was, I use them for my own purposes, but it always throws a validation error, which I ignore.
What throws a validation error?

epubcheck? Calibre's check? Or something else?

Quote:
Originally Posted by odamizu View Post
Then the "invalid" css succeeds in making my ereaders do what I want them to.
When CSS runs against a property it doesn't understand, it's designed to completely ignore that part. (For example, if a CSS2 reader runs across CSS3, it will also have no idea what those properties mean... but it will render the parts it does understand.) So proprietary entries like adobe-hyphenate shouldn't hurt one bit.

But, there are a few CSS implementation bugs to note:
  • RMSDK doesn't like actual invalid code. (Missing ; or missing a {}.)
    • It chucks away THE ENTIRE CSS file.
  • Other devices have issues with Media Queries.

Last edited by Tex2002ans; 10-13-2019 at 08:03 PM.
Tex2002ans is offline   Reply With Quote
Old 10-13-2019, 08:10 PM   #37
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Tex2002ans View Post
What throws a validation error?

epubcheck? Calibre's check? Or something else?
More than likely she's talking about the online W3C CSS validation service. That's what Sigil's CSS validation tool uses.
DiapDealer is offline   Reply With Quote
Old 10-13-2019, 10:54 PM   #38
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
Quote:
Originally Posted by DiapDealer View Post
More than likely she's talking about the online W3C CSS validation service. That's what Sigil's CSS validation tool uses.
Bingo! When I check my css thru Sigil using W3C CSS validation service, it always gives me "unrecognized media amzn-kf8" and "Property adobe-hyphenate doesn't exist".

I ignore it, my ereaders ignore it, and all is good except the OCD part of me that would rather get a clean bill of health on my css
odamizu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a Way to Simplify Tags Meido Library Management 12 09-16-2018 10:52 AM
Questions Re: Work Flow for Multiple Versions SigilBear ePub 14 02-13-2017 01:28 PM
Work around for foreign language dictionary problem Stingo Amazon Kindle 27 02-01-2012 03:19 PM
Touch Need help to get my language work with a rooted NST EKetabi Barnes & Noble NOOK 5 12-08-2011 09:27 AM
eBook purchase preferred work-flow? bugeyed Calibre 1 07-05-2010 09:08 PM


All times are GMT -4. The time now is 12:09 AM.


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