Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 05-22-2020, 11:37 AM   #286
Glottis
Enthusiast
Glottis began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2014
Device: H2O, Poke 2
I had an idea about implementing book cover screensavers on android devices.

Since android devices can display a screensaver from a file, couldn't KOreader be set to copy the cover of a book to a file of the users choice when the book is opened, and delete/replace it with another when a new book is opened?

That way android itself would handle the book cover without any complicated changes needing to be made.
Glottis is offline   Reply With Quote
Old 07-31-2020, 03:05 AM   #287
Owl_
Enthusiastic reader
Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.
 
Posts: 424
Karma: 3880485
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
Hi, has anyone the link of the last stable release?
(night mode is giving me some issue)

Owl_ is offline   Reply With Quote
Advert
Old 07-31-2020, 04:27 AM   #288
elvvis
Member
elvvis began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2019
Device: PW4, tolino epos 2
Here you can download the last stable release: https://github.com/koreader/koreader/releases
elvvis is offline   Reply With Quote
Old 09-04-2020, 11:51 AM   #289
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
KOReader 2020.8.1 on Likebook Mars with Android 8.1

Greetings! I've installed KOReader (koreader-android-arm-v2020.08.1.apk) on my updated Mars reader, and have only a few issues that I'd like to resolve. I'm not totally inept with code, so if solving these issues means getting the appropriate KOReader source, building and testing, I'd consider this route.

I'm using KOReader as a reader of a Calibre library on an SD card with directory structure defined by the plugboard script:

{author_sort[0]}/{author_sort:sublist(0,1,&)}/{series}/{series_index:0>4.1f|| - }{title}

e.g. /storage/sdcard_name/Books/R/Rowling, J.K./Harry Potter/01.0 - Harry Potter and the Sorcerer's Stone.epub

I've found two issues with KOReader, one in navigation and one in rendering:
  1. I have not gotten KOReader to use the Calibre metadata file on the SD card for searching. I've tried to edit a few .lua files to no avail, and much of the documentation floating around the MobileRead fora seems a bit out of date, or perhaps directed at the Kobo platform and not Android. How do I get KOReader on Android to use metadata.calibre?
  2. Certain rendering within an epub seems flaky. Not all covers are expanded to fill the screen, though they render correctly on other readers. Also, some small images (e.g. a "triple asterisk" .jpg used as a transition marker) render with a full width gray background instead of a transparent background.
Have other users noticed these issues? In any case, how can I fix them (or otherwise contribute)? I REALLY LIKE the way KOReader works generally, and love the way it renders epub text.

wanders
wanderson is offline   Reply With Quote
Old 09-04-2020, 12:43 PM   #290
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,754
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Are you sure you don't mean PNG? JPG doesn't have transparency.
Frenzie is offline   Reply With Quote
Advert
Old 09-04-2020, 01:36 PM   #291
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
Quote:
Originally Posted by Frenzie View Post
Are you sure you don't mean PNG? JPG doesn't have transparency.
Right you are, but KOReader takes the entire jpg image (a small rectangle, black on white) and overlays it onto a larger, full-width rectangle which is gray. That is, what should look like this:

* * *
instead looks like:
(sorry, I can't figure out how to resize this image - click on it)

Last edited by wanderson; 09-09-2023 at 11:27 AM.
wanderson is offline   Reply With Quote
Old 09-04-2020, 03:14 PM   #292
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,754
Karma: 730681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
That's more likely to be related to the book's styles in some way. Could you open an issue with a scrambled document attached?
Frenzie is offline   Reply With Quote
Old 09-04-2020, 04:17 PM   #293
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
As for the Calibre stuff, everything is in a dedicated plugin now, so you just need to set the path to your library there: [Tools] > Calibre > Search settings > Manage libraries
NiLuJe is offline   Reply With Quote
Old 09-04-2020, 05:19 PM   #294
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
Quote:
Originally Posted by NiLuJe View Post
As for the Calibre stuff, everything is in a dedicated plugin now, so you just need to set the path to your library there: [Tools] > Calibre > Search settings > Manage libraries
Thanks for your response.

My version of KOReader only scans the internal storage, not the SD card (which is where my metadata.calibre is located). Is there a way to get KOReader to scan the SD card?
wanderson is offline   Reply With Quote
Old 09-04-2020, 05:42 PM   #295
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
Quote:
Originally Posted by Frenzie View Post
That's more likely to be related to the book's styles in some way. Could you open an issue with a scrambled document attached?
Done - #6632
wanderson is offline   Reply With Quote
Old 09-04-2020, 07:00 PM   #296
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by wanderson View Post
Thanks for your response.

My version of KOReader only scans the internal storage, not the SD card (which is where my metadata.calibre is located). Is there a way to get KOReader to scan the SD card?
It will scan the primary partition (normally the internal storage but can be changed in android settings). Outside the primary partition the app has no granted permissions for read&write and the behaviour will change between devices.

Normally what happens is:

1. the internal partition is mounted in /storage/emulated/0
2. the SD card is mounted in /storage/emulated/UUID
3. the app cannot read /storage/emulated

My suggestion would be to format the sdcard as the primary storage partition, but there're a few cases when that's not possible (ie: you want to use the sd card in other devices). In these cases you can skip the scan and write the file manually, using the path that contains "metadata.calibre" and "driveinfo.calibre". That file will stay until you do another scan.

The workaround should work on most android devices (sd is readable) but has some limitations (sd is not writable).
pazos is offline   Reply With Quote
Old 09-04-2020, 08:09 PM   #297
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
Quote:
Originally Posted by pazos View Post
It will scan the primary partition (normally the internal storage but can be changed in android settings). Outside the primary partition the app has no granted permissions for read&write and the behaviour will change between devices.
KOReader currently has no issues reading the (epub) files on the SD card and scanning the directories therein. And the way that this flavor of Android is configured, the SD card is mounted on /storage/<sdcard-id>. So if KOReader can see the book files on the SD card, why can't it read the metadata file there as well?
wanderson is offline   Reply With Quote
Old 09-05-2020, 06:09 AM   #298
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
please reread: it can read the sdcard, but normally cannot read the directory where the sdcard is mounted. So a recursive search on /storage will fail to see the sdcard and thus to search on its files.
pazos is offline   Reply With Quote
Old 09-05-2020, 08:14 AM   #299
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
Quote:
Originally Posted by pazos View Post
... it can read the sdcard, but normally cannot read the directory where the sdcard is mounted.
This sounds like a misfeature, at least. Why can't I just point KOReader to the metadata? I don't need it to scan since I already know where it it.
wanderson is offline   Reply With Quote
Old 09-05-2020, 08:48 AM   #300
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by wanderson View Post
This sounds like a misfeature, at least. Why can't I just point KOReader to the metadata? I don't need it to scan since I already know where it it.
If your question is: why can't I just point to the metadata using the UI? the answer is because nobody implemented this. Patches welcome.

If your question is: how could I just point to the metadata? the answer is in my first answer: you need to do it by hand.

Create a file called "calibre-libraries.lua" with the content

Code:
return {
    ["/path/to/calibre/dir/"] = true
}
and place it in koreader/cache. It will stay as is and will survive updates but you'll need to do the trick again if you perform another scan or clear cache from developers option.

About android being a stupid platform: I agree, the lack of way to programatically retrieve the path of the sdcard is BS and forcing users to use SAF instead of the filesystem API is a PITA.
pazos is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Koreader running on Kobos (all of them, hopefully!) giorgio130 KOReader 3535 07-09-2025 01:37 PM
Koreader doesn't work on 5.4.3 vr4y Kindle Developer's Corner 13 04-15-2014 03:40 AM
coolreader/koreader without fmon peyton Kobo Developer's Corner 17 03-30-2014 04:06 PM
framebuffer settings for koreader shadoooo Kobo Developer's Corner 15 01-01-2014 11:20 AM
Koreader v. Coolreader 93terp Kobo Developer's Corner 8 11-05-2013 04:37 AM


All times are GMT -4. The time now is 09:32 AM.


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