![]() |
#1 | |||||
Avid Reader
![]() Posts: 8
Karma: 10
Join Date: May 2013
Location: UK
Device: Sony PRS-505, Nook NSTG, Nook HD+
|
Possible bug with E-book Viewer
Experienced an issue viewing a book with E-book Viewer using Win 7 with latest 1.25 (64bit) version.
Seemed to be a problem showing some punctuation, specifically apostrophes and quotes. Somebody a lot more knowledgeable on the subject than I suggested the following: I re-read the relevant parts of the OPS specification, and this is definitely a reader bug. The book is valid as it stands, the XML prolog for the component OPS documents is not required, and content encoding related <meta> tags in the document's <head>element may not cause the reader to use the wrong encoding (only UTF-8 and UTF-16 are allowed for EPUB). Section 1.3.1: Relationship to XML states: Quote:
Quote:
Back to the OPS spec, section 1.3.6: Relationship to Unicode states: Quote:
The spec continues with: Quote:
The problem is that the OPS documents in the book specify the wrong content encoding via Code:
<meta content="text/html; charset=iso-8859-1" http-equiv="content-type"/> Furthermore, the book passes epubcheck 3.0.1 (minus the bogus warnings about the XPGT template, which is an acknowledged epubcheck bug) and FlightCrew. Clearly a calibre bug, specifically on Windows, sorry ![]() ![]() Edit: I'm not defending the publisher here - there's a big difference between "technically correct" and "reasonable"; they could have easily not included that <meta> element there and then the problem wouldn't have existed in the first place. That <meta> is literally lying - it makes a factually wrong statement about the content. Still, calibre's viewer should have handled this according to spec, that's why I claim this situation to be a reader bug. Edit 2: Hmm, calibre uses QWebPage via PyQt to render the content. This might be a PyQt bug on Windows; calibre definitely does the right thing when loading the content: Quote:
Would somebody mind looking into this, please? ![]() |
|||||
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This is a wontfix. The viewer works with lots of formats other than epub. And regardless of what the spec says, actual epubs in the wild occur in lots of encodings other than UTF-8/16. By forcing UTF-8 encoding I would be penalising people that declare their encoding properly, but do not follow the spec, in favor of people that follow the spec but do not declare the encoding correctly.
The former set of people are far dearer to my heart. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Avid Reader
![]() Posts: 8
Karma: 10
Join Date: May 2013
Location: UK
Device: Sony PRS-505, Nook NSTG, Nook HD+
|
That's fair enough. Thank you for taking the time to look and respond.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Another possible bug - Image viewer without tool bars in covers | arspr | Kobo Reader | 6 | 12-05-2013 08:21 PM |
0.8.44 E-book Viewer display bug? | Lucian | Calibre | 2 | 03-30-2012 08:42 AM |
E-Book Viewer as standalone viewer | Peter Swallow | Library Management | 3 | 05-15-2011 12:06 PM |
bug ? calibre epub viewer shows old title | cybmole | Calibre | 11 | 03-03-2011 10:26 AM |
How to reproduce the image viewer bug | sirbruce | Amazon Kindle | 9 | 06-11-2009 08:44 PM |