VandersonQk / KuroReaderReleases

Apk releases from Kuro Reader and Kuro Reader Pro
https://kurotoshiro.dev/
31 stars 0 forks source link

Feature request #8

Open Maybeyok opened 3 months ago

Maybeyok commented 3 months ago

Can you add support for epub comics? Because I have a lot of comics in this format.

bust4cap commented 3 months ago

that would probably require quite the rewrite. (if its out of the scope of this project) cant you just extract the images folder and zip that up again as a cbz? i know there are some exceptions, but that should work for most of your files.

coincidentally i wrote a small python program these last few days that does this automatically. extracts all images and renames them in the order they appear in the ebooks spine section, create white images for blank pages that didnt have them, extract chapter info and reading direction (i dont think kuro reader currently uses the reading direction info, im not sure though) into a comicinfo.xml file. worked fine for the few hundred manga and comic volumes i tested this on, but the code is a bit of a mess and could be optimised a lot. no guarantee it will work with all your files, i know of one case where it didnt work because that one book used a bit of a different internal layout, but i didnt bother fixing it just yet for only one title xD if youre interested in trying it out i could upload it tomorrow

bust4cap commented 3 months ago

https://github.com/bust4cap/epub2cbz if you run into issues, contact me directly @af_Seb on twitter, or "bustacap" on discord, so this feature request here stays on topic

VandersonQk commented 2 months ago

I would like to support epub. The problem is that epub is a totally different format from "normal" comics (cbz, cbr, etc.), it is primarily text-based (html, xhtml) and the way to load/read it is totally different.

I have a basic epub implementation that I started in 2022, running primarily using android's webview (as a web page). But there are some things that I can't figure out how to do, for example the reading progress, which I haven't found a way to calculate. So the implementation was put on hold.

My version is more suited to texts, such as books and light novels. If you're trying to read comics in epub format, the @bust4cap option may be a better choice. I took a look at the code and in my opinion it's a great way to convert, it keeps the metadata and table-of-contents. And at the moment it's the best option I've seen for converting epub to cbz.