Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-21-2024, 02:10 PM   #31
qkqw
Connoisseur
qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.
 
Posts: 58
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
@Cyril if you want you can send me the problematic book privately and I can try to take a look.
qkqw is offline   Reply With Quote
Old 03-21-2024, 03:33 PM   #32
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Oct 2019
Location: France
Device: Clara HD
Quote:
Originally Posted by qkqw View Post
@Cyril if you want you can send me the problematic book privately and I can try to take a look.
Sorry for being a noob but dont know how to send privately in private message
Cyril Gabard is online now   Reply With Quote
Old 03-23-2024, 02:05 PM   #33
qkqw
Connoisseur
qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.
 
Posts: 58
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
Thanks for sending the book over. Unfortunately I am running into troubles extracting the chapter titles for your book, as they are non-existent for a specific highlighted section. Would you mind trying the attached script and see if that at least gives you adequate results for this and other books?
Attached Files
File Type: txt notes.sh.txt (2.9 KB, 43 views)

Last edited by qkqw; 03-23-2024 at 02:19 PM.
qkqw is offline   Reply With Quote
Old 03-23-2024, 05:06 PM   #34
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Oct 2019
Location: France
Device: Clara HD
Thanks for your work. The script you send me returns way way more bookmarks.

When there is no Chapter Title, the script displays like this :
2024-03-23 17:16:16 \ OEBPS/text00057.html
Otherwise : 2024-03-23 19:46:59 \ L’avenir se décrète-t-il ?

I tweaked it to sort by DateCreated so i can find the last ones. I keep on learning and trying to understand what your script does. Its fascinating. Thanks again !
Cyril Gabard is online now   Reply With Quote
Old 03-23-2024, 05:42 PM   #35
qkqw
Connoisseur
qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.
 
Posts: 58
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
Quote:
Originally Posted by Cyril Gabard View Post
When there is no Chapter Title, the script displays like this :
2024-03-23 17:16:16 \ OEBPS/text00057.html
Otherwise : 2024-03-23 19:46:59 \ L’avenir se décrète-t-il ?
Yeah, unfortunately the book you sent me does not seem to have chapters for the sections you have highlights. Therefore the Kobo database does only seem to have an internal title for the chapter, which is something like the string you mentioned.
qkqw is offline   Reply With Quote
Old 03-23-2024, 06:27 PM   #36
qkqw
Connoisseur
qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.
 
Posts: 58
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
@Cyril, would you mind testing the attached script? I've tried to remove the cryptic string and if it works for you, I'll create a new release.
Attached Files
File Type: txt notes.sh.txt (2.9 KB, 46 views)
qkqw is offline   Reply With Quote
Old 03-24-2024, 04:10 AM   #37
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Oct 2019
Location: France
Device: Clara HD
Quote:
Originally Posted by qkqw View Post
@Cyril, would you mind testing the attached script? I've tried to remove the cryptic string and if it works for you, I'll create a new release.
It worked, cryptic string are gone. Thanks.

Is there a way to choose (in the first part of the script) how many bookmarks, highlight the script has to be extracted and written on the markdown ? Right now, I can see 60 bookmarks extracted, coming from 4 books that i am reading.
Cyril Gabard is online now   Reply With Quote
Old 03-24-2024, 05:36 AM   #38
qkqw
Connoisseur
qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.
 
Posts: 58
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
Currently it outputs all highlights. If you want to limit then, you'd have to add a LIMIT 10 or whatever you need to the query.
qkqw is offline   Reply With Quote
Old 03-24-2024, 06:19 AM   #39
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Oct 2019
Location: France
Device: Clara HD
Quote:
Originally Posted by qkqw View Post
Currently it outputs all highlights. If you want to limit then, you'd have to add a LIMIT 10 or whatever you need to the query.
Sorry to bother you. I Tried to insert a "LIMIT 10," after the first ORDER BY + arg (line 70), where i think it should be but the query returned nothing at all (empty notes, highlights...).

Could you tell me, please, where to put the "LIMIT 10," ?
Cyril Gabard is online now   Reply With Quote
Old 03-24-2024, 06:34 AM   #40
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Oct 2019
Location: France
Device: Clara HD
Quote:
Originally Posted by Cyril Gabard View Post
Sorry to bother you. I Tried to insert a "LIMIT 10," after the first ORDER BY + arg (line 70), where i think it should be but the query returned nothing at all (empty notes, highlights...).

Could you tell me, please, where to put the "LIMIT 10," ?
I succeed in placing the LIMIT 10;" after all the ORDER BY...

Thanks a lot for you kindness !
Cyril Gabard is online now   Reply With Quote
Old 03-26-2024, 07:51 AM   #41
qkqw
Connoisseur
qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.qkqw is at one with the great books of the world.
 
Posts: 58
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
I've simplified the query based on @Cyril's feedback and pushed a new release.
qkqw is offline   Reply With Quote
Old 03-26-2024, 08:19 AM   #42
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Oct 2019
Location: France
Device: Clara HD
Quote:
Originally Posted by qkqw View Post
I've simplified the query based on @Cyril's feedback and pushed a new release.
Very cool and helpful hack ! Thank you for your work !
Cyril Gabard is online now   Reply With Quote
Old 05-10-2024, 08:09 AM   #43
Cootey
Absentminded Reader
Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.
 
Cootey's Avatar
 
Posts: 1,195
Karma: 6464133
Join Date: Apr 2017
Device: Kobo Mini, Clara HD, Elipsa; Kindle Paperwhite 3 & 4; iOS eReader apps
How do you import the output files back to your Kobo? For example, if you've lost all your annotations due to a crash or hard reset, how do you reimport them into your new setup?
Cootey is offline   Reply With Quote
Old 05-15-2024, 09:54 AM   #44
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,410
Karma: 129358310
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Cootey View Post
How do you import the output files back to your Kobo? For example, if you've lost all your annotations due to a crash or hard reset, how do you reimport them into your new setup?
The solution would be to use Kobo Utilities to backup your database when you connect to to your calibre library. Then if you do have a problem with the database on your Kobo, you can restore the last database you backed up.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
import of annotations and reading progress Percivale Kobo Developer's Corner 3 12-20-2017 08:21 PM
Reading app with freehand annotations and cloud sync (Dropbox, Google Drive, ...) sjvs Reading and Management 1 08-30-2013 03:18 PM
Any way of exporting bookmarks in Shubooks? robinson Apple Devices 4 03-31-2013 11:23 AM
Importing/exporting bookmarks riki Library Management 0 01-18-2012 10:25 AM
Exporting Annotations musemj6 Kindle Developer's Corner 0 12-03-2008 01:01 PM


All times are GMT -4. The time now is 02:18 PM.


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