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-06-2022, 03:24 PM   #1
Vanguard3000
Groupie
Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.Vanguard3000 ought to be getting tired of karma fortunes by now.
 
Posts: 168
Karma: 474196
Join Date: Jan 2011
Location: Canada
Device: Kobo Libra 2
Preview error box using custom fonts

Hi, I've noticed this for a long time, but thought I'd bring it up for discussion. Basically, the red error window in the Preview pane uses headers and paragraphs that respect stylesheets linked in the document, and I think that maybe they shouldn't if possible.

From time to time, I'll be editing an ebook that uses a custom font for chapter headers (<h2>). Because the error message in the Preview pane respects linked styles, the error header (and presumably the body text if that is styled) will be presented using the defined styles from the linked sheet. Normally, this'll just mean an amusingly themed error heading, but in some cases it can make the error header illegible.

The instance that prompted me to post this is an ebook I'm editing that uses alien number glyphs as chapter headers. See attached for a sanitized example.

I know it's not a big deal but it seems like it ought to be a pretty quick improvement - the error headers and body text could just override the font-family style.

As a bonus, it'd be nice if they could word wrap, but that's not as big an issue in my opinion.

In any case, Sigil is great - keep up the good work, devs!
Attached Thumbnails
Click image for larger version

Name:	dingheader.jpg
Views:	111
Size:	88.7 KB
ID:	197014  
Vanguard3000 is offline   Reply With Quote
Old 10-06-2022, 04:10 PM   #2
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,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sigil doesn't generate that error page. It's the Chromium default error page. I'm not sure how we could fix that without having to code our own custom parsing error reporting.

Inspector shows the message is not even in the body of the html page--it's in the head with its own inline styling. So it's odd that the book's css would affect it.

We'll have to do some investigating.
DiapDealer is offline   Reply With Quote
Advert
Old 10-06-2022, 04:31 PM   #3
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 839
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
h3 in parseerror is without inline styling.

This error is extremely rare when the CSS for h3 contains an unreadable font family.

Adding one line:
Code:
parsererror h3 {font-family: initial!important;}
to a custom_preview_style.css file should suffice as a workaround.
BeckyEbook is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy on Preview Box ebulerdo Editor 4 04-20-2022 10:47 PM
Preview displaying as blank white box RomanColumn Sigil 16 05-16-2020 07:54 AM
Hacks Custom fonts as System fonts? font332 Amazon Kindle 2 07-18-2019 11:54 PM
Amazon.com Look Inside (preview) fonts rollei Amazon Kindle 5 03-20-2014 03:27 AM
Touch Fonts question (special characters in stock and custom fonts) levil Kobo Reader 20 09-23-2011 01:51 PM


All times are GMT -4. The time now is 09:11 PM.


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