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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-02-2018, 08:49 PM   #1
rapunza
Junior Member
rapunza began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2018
Device: none
Question re: Calibre bug report

Hi all. I don't understand some error messages I got when I had Calibre CHECK the eBOOK I created in Pressbooks. I'm only a code sophomore, so go easy on me, please.

1. Calibre CHECK BOOK error message:
"WARNING: CSS: Property: Unknown Property name. [181:3: hyphens]****[OEBPS/baker.css]"

The explanation reads: "This CSS construct is not recognized. That means that it most likely will not work on reader devices. Consider replacing it with something else."

This construct being:

.no-hyphens, span.no-hyphens, p.no-hyphens {
hyphens: none;
-webkit-hyphens: none; }

which is the code that was already in Pressbooks.

Yet when try to find a fix I get plenty Google hits for "hyphens: none;
-webkit-hyphens: none;" being sound code. Should I just ignore the error as a non-error?

2. Calibre CHECK BOOK error message:
Same deal, except this time regarding code for a textbox:

margin-outside: auto; and
margin-inside: auto;

This was also code that was already in Pressbooks, and as far as I can tell it's sound. Should I just ignore the error as a non-error?

Thank you so much for any feedback!
rapunza is offline   Reply With Quote
Old 05-03-2018, 12:23 AM   #2
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,727
Karma: 10215826
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Those are warnings not errors and they refer to the fact that those CSS properties are not in the CSS 2.1 standard which means they may not be supported in some readers. It's up to you whether you are OK with ignoring them or not.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-03-2018, 01:26 AM   #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,727
Karma: 10215826
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oh and just FYI

hyphens is not in any CSS specification (IIRC it is only present in the CSS3 Text module working draft)

And margin-inside/margin-outside are not even in any CSS working draft. IIRC they are only used by Prince XML https://github.com/w3c/csswg-drafts/issues/255
kovidgoyal is offline   Reply With Quote
Old 05-03-2018, 02:32 AM   #4
rapunza
Junior Member
rapunza began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2018
Device: none
Thank you!

Thanks so much. Not just for your reply, but also for your genius and generosity in creating Calibre in the first place. Cheers!
rapunza is offline   Reply With Quote
Old 05-03-2018, 04:43 PM   #5
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,215
Karma: 23054146
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
If you haven't tried it already, you can check out the CSS validator at CSS Validator. It does give a bit more information about errors in stylesheets including some proprietary items.

Sample output:
Code:
1 		Unrecognized at-rule @namespace h
22 	.epbody 	Value Error : height only 0 can be a length. You must put a unit after your number : 792
23 	.epbody 	Value Error : width only 0 can be a length. You must put a unit after your number : 528
41 	.paraindent 	Value Error : orphans 0 is not valid, only values greater than 0 allowed. : 0
42 	.paraindent 	Property so-language doesn't exist : en-US
61 	.paranonindent 	Value Error : widows 0 is not valid, only values greater than 0 allowed. : 0
DNSB is offline   Reply With Quote
Advert
Old 06-04-2018, 06:26 PM   #6
rapunza
Junior Member
rapunza began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2018
Device: none
Sorry I never replied to this. Thanks for your helpful tip! I've used it several times since. Cheers.
rapunza 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
Question re: Calibre bug report rapunza Introduce Yourself 2 05-02-2018 08:51 PM
How to report a bug osmin Calibre 4 06-20-2017 06:56 PM
Bug report mtravellerh PocketBook 303 11-03-2013 08:21 PM
How to report a bug??? tmlee51 Calibre 2 02-15-2012 12:07 AM
Unable to report bug in bugs.launchpad.net/calibre MNF Calibre 1 05-22-2011 07:34 PM


All times are GMT -4. The time now is 02:11 AM.


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