01-23-2022, 12:46 PM | #1 |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
EPUB display (ignoring file breaks)
I updated my KoReader (Android) a couple of days ago to 2022.01 and since then have noticed an oddity in the display of EPUB files.
Normally when viewing a book that is made up of a number of HTML files there would be a new page displayed at the commencement of each file, irrespective of whether each file represented a separate chapter in the book. I now see files being displayed as a continuous page unless each one starts with a <H1, H2, H3> etc or is a para classed as "page-break-before : always". This does not happen when viewing the EPUB with a different viewer. I can't find a setting which makes KoReader preform as expected. View mode is set to "page" and render mode to "book"... Style is set to "Auto" (HTML/Epub}. The attached EPUB (a cut-down version of Tolstoy's "The Devil" illustrates the situation. When viewed in Adobe or Calibre's EPUB reader the book is broken into chapters etc based on the file divisions, KoReader shows it as a single continuous text. As far as I recall this didn't happen with previous KoReader versions. Any thoughts (that don't involve editing the EPUB). BobC |
01-23-2022, 07:10 PM | #2 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Knowing which version you were running before would be helpful .
|
01-24-2022, 05:16 AM | #3 |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
I think the last version I used before the update was 2021.11; however my comment that I didn't recall seeing the behaviour before is probably misleading.
I only noticed the effect on a new book that I put on my KoReader setup since the update and it was only a minor "niggle" since the construction of the book meant that it wasn't very noticeable as all chapters, though each was in a separate file, also had a <H2> heading, the problem was only visible in the front page, intro, dedication sections of the book It was while investigating what appeared to be a display anomaly that I constructed the test book and compared what was happening with other EReader software and concluded that something was a little odd. I'd always assumed that new file = new page as all the reders I have used seem to follow that, but whether it is part of the EPUB spec or not I don't know. BobC |
01-26-2022, 04:29 AM | #4 |
Wizard
Posts: 1,615
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
I don't see a single continuous text unless I switch the display mode from page to continuous. That would suggest you either changed the default (change it back by long-pressing on page, third tab in the bottom menu) or the display for the single book.
PS I would argue that continuous is almost always worse. Edit: related, you may have disabled "new page on…" in the Style tweaks → Pages menu. There are options to avoid blank pages on chapter start/end. Last edited by Frenzie; 01-26-2022 at 04:32 AM. |
01-26-2022, 05:22 AM | #5 | |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
I had looked at the style tweak settings but nothing seemed to fit the bill. However when I select "Avoid Publisher Page Breaks" I get the page breaks - it's a bit counter-intuitive as I wasn't trying to avoid a break but it does what is needed for that book. Thanks for the pointer - I did wonder if it was one of the Style tweaks settings but that one didn't fit the bill as these breaks were not ones in the books CSS (which is empty) and so what I would think of as "Publishers". BobC |
|
01-26-2022, 11:30 AM | #6 |
Wizard
Posts: 1,615
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Could you be a bit more specific as to where you see this problem? Perhaps I simply missed it because the file was full of page breaks where they seemed logical to me.
The style tweak you mention does nothing but enforce our default of inserting a page break on every doc fragment: https://github.com/koreader/crengine...ub.css#L11-L24 |
01-26-2022, 12:39 PM | #7 |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
To be clear, in the test book I attached there are many doc fragments both at the beginning and throughout the book on new chapters which use Roman Numerals.
Originally the book displayed as a single continuous flow whether or not I had selected "Page" or "Continuous". Since your suggestion if I select (tick) the style tweak "Avoid Publisher Page Breaks" I get a new page on each document fragment. Have you tried selecting/deselecting this option while viewing a part of the book where the fragments occur ? When I do that the display shows the new page as I would expect. Essentially this option seems to behave in the opposite sense to what I would expect from its title. This may just be my understanding of the title but essentially I agree it works. I had assumed that my problem would be solved by a combination of options, I just couldn't find the right ones, which is why I originally asked for "any thoughts" rather than saying it was a bug. I assume you had the option selected all along - I hadn't. Is this a new option or has it been there for some time ? The test file was constructed to show up the problem I was seeing - it's certainly not the way most of the books I read are built and I may never have come across the behaviour in normal reading, it's just my nit-picking approach to wanting to understand any inconsistencies I see that led me to dig further. Many thanks for looking into this for me. BobC |
01-26-2022, 01:52 PM | #8 |
Wizard
Posts: 1,615
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Which option? Avoid publisher breaks? Certainly not. As I said it overrides a publisher's stylesheet to our defaults.
Did you perhaps select "none" in the Style menu instead of… basically just about anything else? |
01-27-2022, 04:28 AM | #9 | |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
Normally I think you just can't have too many options, however if you don't understand what they all do you can really foul things up as I had clearly done. I looked at the epub.css you referred me to and I can now see how you are getting the page breaks on each separate document fragment. BobC |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura HD Need help ignoring broken area of display. | iKaroliina | Kobo Developer's Corner | 6 | 11-18-2015 04:46 AM |
Inserting com.apple.ibooks.display-options.xml file in EPUB | roger64 | ePub | 30 | 02-28-2013 01:07 AM |
How to automatically create chapter titles and breaks in an epub file? | memenow | ePub | 2 | 12-06-2012 02:01 PM |
How to automatically create chapter titles and breaks in an epub file? | memenow | Conversion | 2 | 11-27-2012 09:54 PM |
Ignoring line breaks in pdf file | mike_bike_kite | Calibre | 0 | 06-14-2010 09:37 AM |