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, 03: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: 62
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, 04:33 PM   #32
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 46
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 offline   Reply With Quote
Old 03-23-2024, 03: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: 62
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, 110 views)

Last edited by qkqw; 03-23-2024 at 03:19 PM.
qkqw is offline   Reply With Quote
Old 03-23-2024, 06:06 PM   #34
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 46
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 offline   Reply With Quote
Old 03-23-2024, 06: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: 62
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, 07: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: 62
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, 106 views)
qkqw is offline   Reply With Quote
Old 03-24-2024, 05:10 AM   #37
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 46
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 offline   Reply With Quote
Old 03-24-2024, 06: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: 62
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, 07:19 AM   #39
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 46
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 offline   Reply With Quote
Old 03-24-2024, 07:34 AM   #40
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 46
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 offline   Reply With Quote
Old 03-26-2024, 08: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: 62
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, 09:19 AM   #42
Cyril Gabard
Enthusiast
Cyril Gabard began at the beginning.
 
Posts: 46
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 offline   Reply With Quote
Old 05-10-2024, 09: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,287
Karma: 6916983
Join Date: Apr 2017
Device: Kobo Mini, Libra Colour & Elipsa; Kindle Paperwhite 3 & 4; iOS 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, 10: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: 76,465
Karma: 136564696
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
Old 05-22-2024, 12:06 AM   #45
shyhermit
Connoisseur
shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.shyhermit could sell banana peel slippers to a Deveel.
 
Posts: 95
Karma: 3160
Join Date: Apr 2024
Device: none
Can this script be used to "save" annotations done on sideloaded PDF (not ePub) on a Libra Color?

If so, when it comes to restore these annotations, what is the procedure? I don't quite understand the steps hinted by JSWolf. The OP's post did not include any info on this part.
shyhermit 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 09:21 PM
Reading app with freehand annotations and cloud sync (Dropbox, Google Drive, ...) sjvs Reading and Management 1 08-30-2013 04:18 PM
Any way of exporting bookmarks in Shubooks? robinson Apple Devices 4 03-31-2013 12:23 PM
Importing/exporting bookmarks riki Library Management 0 01-18-2012 11:25 AM
Exporting Annotations musemj6 Kindle Developer's Corner 0 12-03-2008 02:01 PM


All times are GMT -4. The time now is 11:06 PM.


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