Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2022, 07:54 PM   #1
JJTech
Nerd
JJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongue
 
JJTech's Avatar
 
Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
Writing a Kindlet app

I’m thinking of writing an app that allows getting books from OPBS libraries, and eventually proprietary libraries. As it will need to convert books, it would be great if it could support python so it could use the Calibre converter.
Is this possible? I want it to support at least the KT4 and K3G.
JJTech is offline   Reply With Quote
Old 07-28-2022, 08:20 PM   #2
JJTech
Nerd
JJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongue
 
JJTech's Avatar
 
Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
Writing a Kindlet app

Note that this is for my grandmother, which is why it needs to be a Kindlet, she deemed KOReader “too complicated”.

I was hoping to have it be able to download, de-drm, convert, and add it to the Kindle’s library completely transparently, with books from Libby. If it could execute python, I could take advantage of the existing Calibre stuff, and just deal with UI and getting the book via Libby’s api (which I previously reverse engineered)
JJTech is offline   Reply With Quote
Advert
Old 07-28-2022, 08:40 PM   #3
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
python is the easy part. I think it comes with the screensaver package.

You can't use calibre's converter without installing calibre itself. It is unlikely you would be able to install all of calibre's dependencies.
j.p.s is offline   Reply With Quote
Old 07-28-2022, 09:48 PM   #4
JJTech
Nerd
JJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongue
 
JJTech's Avatar
 
Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
Isn’t the converter pure python? So couldn’t you just import just the conversion code directly?
JJTech is offline   Reply With Quote
Old 07-29-2022, 09:24 AM   #5
shamanNS
Wizard
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 1,115
Karma: 12345678
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
Before trying all that maybe you could fist test what your grandmother thinks of using a "magic catalog" workflow: a poor man's alternative to real OPDS catalog where you create a "catalog" book that contains list of direct link URLs for downloading mobi files (has to be mobi since that extension is whitelisted in Kindle's browser, and click on link inside catalog book just opens the browser IIRC).
shamanNS is offline   Reply With Quote
Advert
Old 07-29-2022, 01:01 PM   #6
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by JJTech View Post
Isn’t the converter pure python? So couldn’t you just import just the conversion code directly?
Code:
which ebook-convert
/usr/bin/ebook-convert
file /usr/bin/ebook-convert
/usr/bin/ebook-convert: symbolic link to /opt/calibre/ebook-convert
file /opt/calibre/ebook-convert
/opt/calibre/ebook-convert: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=81105c7c15aff43e782096d4e1e0d9c9176c0933, stripped
j.p.s is offline   Reply With Quote
Old 07-30-2022, 02:25 PM   #7
JJTech
Nerd
JJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongue
 
JJTech's Avatar
 
Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
Writing a Kindlet app

Quote:
Originally Posted by j.p.s View Post
Code:
which ebook-convert
/usr/bin/ebook-convert
file /usr/bin/ebook-convert
/usr/bin/ebook-convert: symbolic link to /opt/calibre/ebook-convert
file /opt/calibre/ebook-convert
/opt/calibre/ebook-convert: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=81105c7c15aff43e782096d4e1e0d9c9176c0933, stripped

Yes, ~~the command line tool is in C++~~, but I think that calls the python code to do the actual work. See https://github.com/kovidgoyal/calibr...oks/conversion

Edit: actually, the tool seems to be in python too (see cli.py above), ig the executable is some kind of wrapper.

Last edited by JJTech; 07-30-2022 at 02:31 PM.
JJTech is offline   Reply With Quote
Old 07-30-2022, 02:28 PM   #8
JJTech
Nerd
JJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongueJJTech can tie a knot in a cherry stem with his or her tongue
 
JJTech's Avatar
 
Posts: 52
Karma: 22352
Join Date: Dec 2020
Location: USA
Device: Kindle Basic 3 (2019)
Quote:
Originally Posted by shamanNS View Post
Before trying all that maybe you could fist test what your grandmother thinks of using a "magic catalog" workflow: a poor man's alternative to real OPDS catalog where you create a "catalog" book that contains list of direct link URLs for downloading mobi files (has to be mobi since that extension is whitelisted in Kindle's browser, and click on link inside catalog book just opens the browser IIRC).

Well, that might work, if I setup everything server-side. The problem is that it wouldn’t be able to pick up on new additions, and wouldn’t be very searchable. Also, would be hard to do things like checking out and retuning books.
JJTech is offline   Reply With Quote
Old 07-30-2022, 02:59 PM   #9
shamanNS
Wizard
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 1,115
Karma: 12345678
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
Like I said, that is a poor man's alternative / better than nothing option that Kindle bunch of users used years ago, back when I had Kindle 3. Just to have something while you work on kindlet solution, if that "framework" even can access all the stuff needed to do that workload?
Maybe kindlet or a booklet app/ "book enty" that just displays /inlines a web site, "calibre-web" or calibre's own web catalog thing? To be somewhat more convenient for you grandmother to use then her manually opening Kindle's browser and opening a bookmark that leads to the same web page?

Last edited by shamanNS; 07-30-2022 at 03:02 PM.
shamanNS is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
good writing app for the Max Carta? Nate the great Onyx Boox 27 10-21-2017 06:27 PM
Kindlet writing guide for the absolute beginner [PW] Hotrootsoup Kindle Developer's Corner 5 08-08-2013 07:37 PM
302 Writing app for PB302 adbosch PocketBook 67 05-22-2011 09:40 AM
Android App that translates freehand writing to text? silkmandarin enTourage Archive 4 05-12-2011 09:52 AM
Book writing app for iPad? David Munch Apple Devices 3 09-23-2010 04:13 PM


All times are GMT -4. The time now is 03:22 PM.


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