Created
April 2, 2024 23:02
-
-
Save dmalinovsky/69fd68af7848008b1cc80a76961f2d77 to your computer and use it in GitHub Desktop.
Patch for KOReader to build logical page count
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local ReaderPageMap = require("apps/reader/modules/readerpagemap") | |
| local postInit_orig = ReaderPageMap._postInit | |
| ReaderPageMap._postInit = function(self) | |
| self.ui.document:buildSyntheticPageMapIfNoneDocumentProvided(1818) | |
| -- Run original code | |
| postInit_orig(self) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn't work like that, but it's possible to pass reference pages from Calibrea to KOReader: koreader/koreader#13869. Note that there was a bug in Calibre recently breaking this.
This is up to the devs. Reading stats also don't support it: koreader/koreader#13345
Maybe I'll take a look some day but it's not a priority for me.