-
-
Save dmalinovsky/69fd68af7848008b1cc80a76961f2d77 to your computer and use it in GitHub Desktop.
| 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 |
Here's the relevant comment in the issue: koreader/koreader#9020 (comment)
Thank you.
So there is no way to automatically fill the calibre database with the reference/logical page, I guess.
I think it should be possible to fill in the reference pages in bulk with Calibre. And then KOReader should use them.
Thank you @dmalinovsky! How did you calculate 1818? I used 2048 as a common value, but I'm curious about your reasoning
Thank you @dmalinovsky! How did you calculate 1818? I used 2048 as a common value, but I'm curious about your reasoning
It’s just Russian publishing specific number — 40,000 characters per 22 pages equals 1,818 characters.
How can I find a common value for Brazilian Portuguese publishing specific number? I'm using the default one in this patch. Thanks in advance!
How can I find a common value for Brazilian Portuguese publishing specific number? I'm using the default one in this patch. Thanks in advance!
I don’t think you’ll find an exact number. The one I’m using is good enough. Feel free to tweak it.
I think it should be possible to fill in the reference pages in bulk with Calibre. And then KOReader should use them.
I can fill the reference pages in bulk and download the books via opsd (I think the metadata is embedded in the process). But how can I tell KOReader to USE that value? Let's say I have it stored it a custom field in calibre named as "#k_pages"
And is it possible to apply the logical pages in other places? I have noticed the "Book Information" panel now doesn't use that value. "Alternative status bar" doesn't use it either.
I think it should be possible to fill in the reference pages in bulk with Calibre. And then KOReader should use them.
I can fill the reference pages in bulk and download the books via opsd (I think the metadata is embedded in the process). But how can I tell KOReader to USE that value? Let's say I have it stored it a custom field in calibre named as "#k_pages"
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.
And is it possible to apply the logical pages in other places? I have noticed the "Book Information" panel now doesn't use that value. "Alternative status bar" doesn't use it either.
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.
This gist will be superseded by koreader/koreader#14405.
I looked into it but it’s impossible (read: too tricky) to use from KOReader. ADE is using 1K of the compressed bytes as a single page and KOReader operates on uncompressed data.