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

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-23-2022, 12:46 PM   #1
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 685
Karma: 3008580
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
Attached Files
File Type: epub pg67224 - Unknown.epub (36.7 KB, 50 views)
BobC is offline   Reply With Quote
Old 01-23-2022, 07:10 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 12,407
Karma: 22222222
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2 & PW5; Kobo H2O, Forma, Elipsa & Sage
Knowing which version you were running before would be helpful .
NiLuJe is offline   Reply With Quote
Advert
Old 01-24-2022, 05:16 AM   #3
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 685
Karma: 3008580
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
Quote:
Originally Posted by NiLuJe View Post
Knowing which version you were running before would be helpful .
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
BobC is offline   Reply With Quote
Old 01-26-2022, 04:29 AM   #4
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,463
Karma: 719314
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.
Frenzie is offline   Reply With Quote
Old 01-26-2022, 05:22 AM   #5
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 685
Karma: 3008580
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
Quote:
Originally Posted by Frenzie View Post
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.
I had already checked the difference between "page" and "continuous" and iI was still displaying contiuous text.

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
BobC is offline   Reply With Quote
Advert
Old 01-26-2022, 11:30 AM   #6
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,463
Karma: 719314
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
Frenzie is offline   Reply With Quote
Old 01-26-2022, 12:39 PM   #7
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 685
Karma: 3008580
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
BobC is offline   Reply With Quote
Old 01-26-2022, 01:52 PM   #8
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,463
Karma: 719314
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?
Frenzie is offline   Reply With Quote
Old 01-27-2022, 04:28 AM   #9
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 685
Karma: 3008580
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
Quote:
Originally Posted by Frenzie View Post
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?
Yes - it looks like I had a combination of options selected that was giving the problem. I was sure I had the Style set to "Auto" (as I mentioned in my original post) but when I checked it was set as "None". By selecting "Auto" everything displays correctly.

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
BobC 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
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


All times are GMT -4. The time now is 08:12 PM.


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