|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#16 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 1162312
Join Date: Nov 2023
Location: Belgium / Vlaanderen
Device: Kobo Libra 2 + Vivlio Light HD + (ancient) iPad Pro
|
Quote:
Exporting highlights and dictionary lookups is trivial as well, I can share my script that exports my dictionary lookups to anki if you are interested, you should be able to export it to .md as well. |
|
|
|
|
|
|
#17 |
|
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2026
Device: kein
|
Hi Dschungelwald,
Thanks a lot for the feedback! That sounds great—especially that KOReader integrates so seamlessly into PocketBook OS. I'd actually be really interested in your script! If it can be used for exporting to .md files, that would be perfect for my workflow. How does the script work exactly, or where can I check it out? Best regards, Nils |
|
|
|
|
|
#18 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 1162312
Join Date: Nov 2023
Location: Belgium / Vlaanderen
Device: Kobo Libra 2 + Vivlio Light HD + (ancient) iPad Pro
|
Python is not my main language so it’s probably a very ugly solution but it works for me
![]() Code:
import sqlite3
import requests
from pystardict import Dictionary
DATABASE_PATH = 'vocabulary_builder.sqlite3'
STARDICT_PATH = 'your_dictionary_file_here’
ANKI_CONNECT_URL = 'http://localhost:8765'
NOT_FOUND_FILE = 'not_found.txt'
def get_translation(word):
my_dict = Dictionary(STARDICT_PATH)
for key in my_dict.idx.keys():
if key == word:
return my_dict.dict[key]
return None
def add_note_to_anki(word, translation, prev_context, next_context):
note = {
"deckName": "your_deck_name",
"modelName": "Basic",
"fields": {
"Front": word,
"Back": f"{prev_context}[{word}]{next_context}<br><br>{translation}"
},
"tags": []
}
payload = {
"action": "addNote",
"version": 6,
"params": {
"note": note
}
}
response = requests.post(ANKI_CONNECT_URL, json=payload)
return response.json()
conn = sqlite3.connect(DATABASE_PATH)
cursor = conn.cursor()
cursor.execute("SELECT word, prev_context, next_context FROM vocabulary")
rows = cursor.fetchall()
not_found = []
for row in rows:
word, prev_context, next_context = row
translation = get_translation(word)
print("TRANSLATION")
print(translation)
if translation:
result = add_note_to_anki(word, translation, prev_context, next_context)
else:
print("not found")
print(word)
not_found.append(word)
with open(NOT_FOUND_FILE, 'w') as file:
for word in not_found:
file.write(f"{word}\n")
conn.close()
You need to have Anki Desktop app running, otherwise it wouldn’t work. Or you can throw the anki part away and export it to .md instead |
|
|
|
|
|
#19 |
|
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jul 2026
Device: kein
|
Thanks for sharing this, much appreciated!
|
|
|
|
|
|
#20 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 153
Karma: 20456
Join Date: Apr 2014
Device: KPW1
|
The 6" Pocketbook Verse is the best Linux-based e-reader that I've owned: Verse Basic for side-loading with its sd-card support; Verse Pro if you don't need sideloading: The Pro has a better display but the Basic's display is absolutely fine. There's also a
Verse Color & a Verse but I don't see the advantage of either over the Basic * Pro. The first 3 of the above have page-turn buttons (but) all also have a highly developed UI which includes 9 customizable tap zones that you can configure to do (just about) anything (such that) you can configure back/forward taps for however you hold the device. I was a big page-turn-buttons fan until I got a Pocketbook. Now I rarely use them, because of those customizable zones. If you don't want an Android-based device, IMO, Pocketbook is the best alternative. |
|
|
|
|
|
#21 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,898
Karma: 17565280
Join Date: Sep 2022
Device: Kobo Libra 2
|
You mean just for extra capacity? The Verse Pro still supports sideloading onto the internal storage, right? Since PocketBook doesn't have its own store, my understanding is that all your books have to be sideloaded (although PocketBook can redeem ACSM files directly, unlike Kobo).
|
|
|
|
|
|
#22 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,616
Karma: 2742770
Join Date: May 2025
Device: Kobo Forma, PocketBook InkPad Color 3
|
Quote:
If the 6"-7" margin can extend to 7,8", I would suggest the Pocketbook 4. |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Searching for "& # 9 ; " | oston | Sigil | 5 | 03-11-2026 03:30 PM |
| Libra 2 "Unable to import annotations as the annotations column has not been configured..." | Liudprand | Kobo Reader | 2 | 07-29-2023 10:56 PM |
| eReader with an 11" or 12"" screen and physical buttons | apastuszak | Which one should I buy? | 7 | 06-13-2023 06:03 AM |
| Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. | MarjaE | Library Management | 1 | 03-30-2021 11:46 AM |
| Swap "Prev Page" & "Next Buttons" ???? | kilofox | Amazon Kindle | 6 | 04-02-2008 11:39 PM |