Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 12-03-2024, 10:46 AM   #1
ankiReader
Junior Member
ankiReader began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2024
Device: Boox Poke 3
Exclamation Dev help for AskGPT: save text translations to note?

So I´ve been tinkering with a fork of the AskGPT plugin in the hope of adding a save translation to note highlight feature.

So far however tapping the ´Save to Note´ button crashes KOReader. Would really appreciate any help with this as I´m not a developer. It would be great to have something close to an opensource LingQ if we can get this to work.

Here is my fork: https://github.com/sebattier/AskGPT

I modified the ChatGPT prompt in plateaukao´s fork so that translations are output in English instead of Chinese. This fork offers better UX as text can be translated in one tap instead of two.

Does anyone know how translation output can be saved to a note for the selected input text?
ankiReader is offline   Reply With Quote
Old 12-03-2024, 11:28 AM   #2
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,149
Karma: 3592855
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
https://github.com/sebattier/AskGPT/...dialog.lua#L61
This and further lines do not work in KOReader, far from reality.
hius07 is offline   Reply With Quote
Old 12-03-2024, 11:42 AM   #3
ankiReader
Junior Member
ankiReader began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2024
Device: Boox Poke 3
Hi hius07, thanks for your reply.
Yes, I´m not a developer and tried tinkering using Claude in the hope of getting something to work so it´s highly likely that bogus code was added.

Any idea which koreader modules I should be looking at to create notes from ai translation output? Something like the built-in save to note feature for google translations is what I´m hoping for.
ankiReader is offline   Reply With Quote
Old 12-03-2024, 11:49 AM   #4
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,149
Karma: 3592855
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
https://github.com/koreader/koreader...lator.lua#L646
hius07 is offline   Reply With Quote
Old 12-04-2024, 10:38 AM   #5
ankiReader
Junior Member
ankiReader began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2024
Device: Boox Poke 3
Thanks for the link. Still no luck with it so far. I´ll keep trying.
ankiReader is offline   Reply With Quote
Old 12-04-2024, 01:30 PM   #6
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,390
Karma: 2200169
Join Date: Apr 2014
Device: BQ Cervantes 4
It is usually easier to learn programming 101 and then have a couple of evenings to grasp lua and a couple more to figure out the chunks of the codebase you want to change.

Relying on AI is going to be surprise after surprise. Even if something somehow works as intended at some random point in time the next iteration will fail in some stupid way.

Last edited by pazos; 12-04-2024 at 03:38 PM. Reason: better words
pazos is offline   Reply With Quote
Old 02-23-2025, 07:48 AM   #7
omerfaruq
Junior Member
omerfaruq began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2025
Location: Türkiye
Device: Kobo Forma
Try this one https://github.com/omer-faruq/assistant.koplugin

This fork includes a save-as-note button and a copy button for use in any text file you create.

Also, you can create shortcuts on the main popup to reach a functionality in one step.
omerfaruq is offline   Reply With Quote
Reply

Tags
help needed, koreader, plugin development

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boox Note and Dropbox: Save Files MadAstra Onyx Boox 1 05-24-2018 06:28 PM
Eink wich save highlights and note into pdf Tenko-78 Which one should I buy? 6 11-12-2017 10:15 PM
onix device that save PDF's note into the file Tenko-78 Onyx Boox 7 10-31-2017 03:58 AM
Einfacher Feature-Request: /dev/ptmx und /dev/ttyUSB2 modes Seneca PocketBook 2 12-05-2011 04:41 PM
can't save XJpurnal files or open new note in Notes HansTWN iRex 7 07-22-2011 09:18 PM


All times are GMT -4. The time now is 01:26 AM.


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