johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.11k stars 283 forks source link

Support LCP #927

Open VaiTon opened 2 years ago

VaiTon commented 2 years ago

Is your feature request related to a problem? Please describe. AFAIK Foliate is unable to open the new LCP standard.

Describe alternatives you've considered There are other apps, in particular thorium reader, developed by the EDRLab, but they are not native.

henrythemouse commented 3 months ago

2022 might not have been the year of LCP, but lately I've noticed that openlibrary and Libby are both using it. I use Foliate on my linux phone and it would be nice to have this support.

Thanks

johnfactotum commented 3 months ago

The main hurdle would be how one could integrate LCP's C++ library. I guess either they would provide a version of the library compiled as WebAssembly, or one would have to write a wrapper so that the library can be used from GJS, since (AFAIK) GJS can't use C/C++ libraries directly. But that's only step one. Another problem is how one would handle distributing the library. Apart from the technical issues, I'm not sure whether such a proprietary library can be included within Foliate, which is GPL licensed.

henrythemouse commented 3 months ago

Thanks for your quick reply.

After reading through the reply several times I have to admit it may not make sense to include proprietary code in an opensource application. Perhaps one could do so using a an optional plugin. LCP offers there own linux reader and phone apps and Pocketbook devices support LCP, likely others do or will in the near future.

Regarding the coding part of this reply all I can offer is a link to LCP's faq, which you may have already seen.

lcp faq