11-21-2021, 10:41 PM | #1 |
Software Architect
Posts: 13
Karma: 1000000
Join Date: May 2013
Location: ottawa canada
Device: kobo
|
Epub Reader Mangling section start
I am using Epub Reader to read an EPUB but it is mangling the presentation of the opening text of the first paragraph in each section. The EPUB file is obviously specifying some special formatting which is telling Epub Reader to not break the text, but the text is wider than a column, so it extends beyond the width of the column and overlays on text of the next column, or if the window is not wide enough the text extends beyond the window. I am going to try other Linux apps to see if I can get around this, but I thought I would let the community know. If there are any suggestions of ways I can get around this I would appreciate it, and if anyone wants to volunteer to experiment with the book I can send a copy, since the file is DRM-free. To be fair to the publisher, who so generously insists upon not using DRM, I would of course want any experimenter to delete the book once finished testing, or at least to patronize this very generous publisher Baen Books.
I have been using Calibre for at least 15 years now. |
11-21-2021, 11:15 PM | #2 |
Software Architect
Posts: 13
Karma: 1000000
Join Date: May 2013
Location: ottawa canada
Device: kobo
|
Followup:
The relevant portion of the document in the Calibre epub editor looks like: Code:
<p class="pcalibre p4">Honor stood in the observation dome on <i class="calibre5">Imperator</i>’s spine. Her flagship was inverted, and her eyes were dark and thoughtful as she gazed up at the white-swirled sapphire of the planet called Tschermak.</p> |
Advert | |
|
11-22-2021, 04:40 AM | #3 |
Developer of EPUBReader
Posts: 271
Karma: 1922
Join Date: Oct 2009
Device: none
|
|
11-26-2021, 04:39 AM | #4 |
Software Architect
Posts: 13
Karma: 1000000
Join Date: May 2013
Location: ottawa canada
Device: kobo
|
Thank you for replying. I am using the program that is invoked by Calibre. Calibre has three icons that it adds to the application menu, Calibre, Book Reader, and Book Editor.
|
11-27-2021, 02:54 AM | #5 |
Developer of EPUBReader
Posts: 271
Karma: 1922
Join Date: Oct 2009
Device: none
|
I have moved the thread to the Calibre forum.
|
Advert | |
|
11-27-2021, 07:34 AM | #6 |
creator of calibre
Posts: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That is a bug in chromium. Your book is using text-transform: uppercase on the first line of the text. That breaks in column mode in chromium. Either remove that from the book or switch to flow mode in the viewer settings for this book.
|
12-01-2021, 11:12 PM | #7 |
Fanatic
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
I think so too. I often use font-variant: small-caps; for that effect.
So if my guess is right, putting this in the Styles may work similarly. .pcalibre { text-transform: none !important; font-variant: small-caps; } Last edited by nqk; 12-01-2021 at 11:15 PM. |
12-04-2021, 12:49 AM | #8 |
Software Architect
Posts: 13
Karma: 1000000
Join Date: May 2013
Location: ottawa canada
Device: kobo
|
Thank you. I do not understand how Chromium is involved. I am not explicitly invoking any browser and my default browser is Firefox. I am just requesting Calibre to open the book. I just checked and I do not even have Chromium, or any other Google software, installed on the computer where I am encountering the problem. Does the Calibre BookReader use Chromium code internally? This is not a book I created and although it is not protected by DRM I am uncomfortable about altering a file for which I do not own the copyright. This issue affects every section of the book. I have never encountered this problem before and I have hundreds of e-books including several dozen from this publisher. Should I report this as an issue to the publisher? Should I download some other file format than epub?
|
12-04-2021, 12:53 AM | #9 |
creator of calibre
Posts: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre includes chromium and uses it. And yes report the issue to the publisher, or use one of the workarounds i mentioned in my previous post.
|
12-04-2021, 01:02 AM | #10 | |
Software Architect
Posts: 13
Karma: 1000000
Join Date: May 2013
Location: ottawa canada
Device: kobo
|
Quote:
I don't see anything in the options, for example under Preferences, that looks like what you suggested I do. |
|
12-04-2021, 01:11 AM | #11 | |
Software Architect
Posts: 13
Karma: 1000000
Join Date: May 2013
Location: ottawa canada
Device: kobo
|
Quote:
Note how the last word is truncated and there are obviously several words between "GRE..." and "DISEMBARKED" which extend beyond the edge of the window. |
|
12-04-2021, 01:34 AM | #12 | |
Software Architect
Posts: 13
Karma: 1000000
Join Date: May 2013
Location: ottawa canada
Device: kobo
|
Quote:
The xhtml file that is being displayed starts with Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> <head> <title>To End in Fire</title> <meta name="Generator" content="Cocoa HTML Writer"/> <meta name="CocoaVersion" content="2022.5"/> <link rel="stylesheet" type="text/css" href="stylesheet.css"/> <link rel="stylesheet" type="text/css" href="page_styles.css"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </head> <body class="calibre"> <div class="calibre2" id="calibre_pb_6"></div> <p class="p2"><br class="calibre3"/></p> <p class="p2"><br class="calibre3"/></p> <p class="p9"><b class="calibre1">Mendel Spaceport</b></p> <p class="p9"><b class="calibre1">Planet Mesa</b></p> <p class="p9"><b class="calibre1">Mesa System</b></p> <p class="p2"><br class="calibre3"/></p> <p class="pcalibre p4">Cathy When I look at a book from the same publisher (actually the immediately preceding volume in the same series) the internal Calibre file looks like: Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/css" http-equiv="Content-Style-Type"/> <title>Cauldron of Ghosts</title> <meta content="Cocoa HTML Writer" name="Generator"/> <meta content="1265.19" name="CocoaVersion"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link href="stylesheet.css" rel="stylesheet" type="text/css"/> <link href="page_styles.css" rel="stylesheet" type="text/css"/> </head> <body class="calibre"> <div class="calibre4" id="calibre_pb_0"> <div class="calibre4" id="calibre_pb_1"> <div class="calibre4" id="calibre_pb_2"> <div class="calibre4" id="calibre_pb_3"> <div class="calibre4" id="calibre_pb_4"> <p class="chapter" id="calibre_toc_3">Chapter 2</p> <p class="left">“Well, it would have been nice if they’d given us another week or so to complete our preparations, but I guess you can’t Last edited by jcobban; 12-04-2021 at 01:36 AM. |
|
12-04-2021, 09:08 PM | #13 | |
Bibliophagist
Posts: 35,380
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
And for what it is worth, calibre does not modify an epub file imported into it's library unless you edit, polish Modify Epub, etc. the file. When you send the epub to your ereader, save to disk, etc., the metadata updates stored in the metadata.opf file stored in the same directory as the epub will be used to update the metadata in the copy of the epub but the original in the library does not get modified unless you choose to do so. Last edited by DNSB; 12-04-2021 at 09:11 PM. |
|
12-07-2021, 04:33 AM | #14 | |
Fanatic
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Quote:
.pcalibre:first-line { text-transform: none !important; font-variant: small-caps; font-size: 107%; } |
|
Tags |
epub, linux |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EPUB of manual seems to hide everything from section 1.1.1 to section 2 | halloleo | Calibre | 9 | 07-17-2021 01:45 AM |
Odyssey How to use table of contents to start reading from chapter not sub section? | therobyouknow | Bookeen | 7 | 10-07-2012 10:10 AM |
How do I correct varying section breaks (epub to epub) | library addict | Calibre | 0 | 02-21-2012 12:56 PM |
Using Calibre to make doc -> mobi files. Problems with "start reading" section. | Stodder | Calibre | 0 | 07-03-2011 10:32 AM |