04-18-2014, 06:33 AM | #16 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
The sqlite3 client is bundled on the device, no need to use a third-party binary .
EDIT: Meh, just realised this was in the userstore, not var... My bad, ;P. Last edited by NiLuJe; 04-18-2014 at 02:35 PM. |
04-18-2014, 06:52 AM | #17 | |
Zealot
Posts: 120
Karma: 60050
Join Date: Jan 2012
Device: PW2
|
Quote:
|
|
Advert | |
|
04-18-2014, 01:41 PM | #18 | |
Member
Posts: 21
Karma: 9432
Join Date: Apr 2014
Device: Kindle PW1
|
Quote:
If you've got linux or mac, skip this step, your OS will have this program already, if not, download it. 1. Go to https://sqlite.org/download.html and download Precompiled Binaries for ___ sqlite-shell-linux-x86-3080403.zip sqlite-shell-osx-x86-3080403.zip sqlite-shell-win32-x86-3080403.zip 2. Unarchive it. 3. I strongly suggest you copy [mounted Kindle device]/system/vocabulary/vocab.db to different dir just in case. 4. Open command line / shell / cmd.exe in dir where you have vocab.db and sqlite3 / sqlite3.exe 5. Run commands to achieve what do you want: (change sqlite3 to sqlite3.exe on windows) this removes mastered words (if you want to remove only them) sqlite3 vocab.db "DELETE FROM WORDS where category=100;" this will remove not mastered words sqlite3 vocab.db "DELETE FROM WORDS where category=0;" this removes word references to books sqlite3 vocab.db "DELETE FROM LOOKUPS where id!='blabla';" If you want complitly reset vocabluary run all three commands. |
|
04-19-2014, 06:59 AM | #19 |
Zealot
Posts: 120
Karma: 60050
Join Date: Jan 2012
Device: PW2
|
Thank you for the guidance . I have another question for you. I contacted Amazon about this and the kindle specialist said that all the data from the VB is stored on their server, and that is why even if i do a factory reset after i connect the kindle to wifi all the words are back . So i would like to know if i delete the data this way, after i connect to wifi it will stay clean or it will get back the data from the Amazon's servers?
|
04-19-2014, 12:46 PM | #20 | |
Member
Posts: 21
Karma: 9432
Join Date: Apr 2014
Device: Kindle PW1
|
Quote:
Last edited by dtp; 04-19-2014 at 12:54 PM. |
|
Advert | |
|
04-19-2014, 02:47 PM | #21 | |
Zealot
Posts: 120
Karma: 60050
Join Date: Jan 2012
Device: PW2
|
Quote:
|
|
05-27-2014, 08:12 PM | #22 |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2014
Device: Kindle WhitePaper II
|
dtp --
Thanks for posting the sqlite3 instructions for updating the Kindle vocabulary. I ran these two instructions, only, because I wanted to preserve the mastered words: # this will remove not mastered words sqlite3 vocab.db "DELETE FROM WORDS where category=0;" # this removes word references to books sqlite3 vocab.db "DELETE FROM LOOKUPS where id!='blabla';" After I ejected the Kindle and reset it, I was a little surprised that the mastered words were deleted, in addition to the not mastered and book-related words. Do you have any idea what I did wrong to remove the mastered words? Cheers, Tim |
07-10-2014, 02:55 AM | #23 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
In SQLite Manager, select the Words table, click Browse & Search and delete the entries that you no longer need. (You can sort by status or language, by clicking the category or lang column headings.) It goes without saying that you may want to create a backup of vocab.db before modifying it with SQLite Manager. Last edited by Doitsu; 07-10-2014 at 03:02 AM. |
|
07-10-2014, 03:07 AM | #24 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
07-10-2014, 12:30 PM | #25 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@Doitsu: I haven't looked at the db layout, but yeah, that's probably doable.
|
08-26-2014, 05:26 PM | #26 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2014
Device: Paperwhite 1
|
Found this thread via google while looking for a way to delete my vocabulary builder. The SQLite Manager addon for firefox mentioned above worked nicely (You can also put the SQL commands in there and execute them). However afterwards you have to compress the database, because even if you delete the contents of WORDS and LOOKUPS, they apparently are still in there somewhere. After deletion and compression the vocabulary builder is finally empty.
Btw, I've tried to simply delete the database from my kindle because I thought it would create a new one when I look up a new word, but no, it did not. When you simply delete vocab.db from your kindle, the vocabulary builder won't work any more (at least if you keep your device offline. Otherwise it will download the db from the Amazon servers if I'm not mistaken). |
08-27-2014, 03:27 PM | #27 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
I've created a quick & dirty KUAL extension with 4 menu options that execute sqlite3 queries:
Hide all (moves all words from Learning to Mastered) Code:
sqlite3 /mnt/us/system/vocabulary/vocab.db "UPDATE WORDS SET category=100 WHERE category=0;" Code:
sqlite3 /mnt/us/system/vocabulary/vocab.db "UPDATE WORDS SET category=0 WHERE category=100;" Code:
sqlite3 /mnt/us/system/vocabulary/vocab.db "DELETE FROM WORDS;" sqlite3 /mnt/us/system/vocabulary/vocab.db "DELETE FROM LOOKUPS;" sqlite3 /mnt/us/system/vocabulary/vocab.db "DELETE FROM DICT_INFO;" sqlite3 /mnt/us/system/vocabulary/vocab.db "DELETE FROM BOOK_INFO;" Code:
sqlite3 /mnt/us/system/vocabulary/vocab.db "SELECT * FROM WORDS where category=0;" > /mnt/us/unknown_words.txt sqlite3 /mnt/us/system/vocabulary/vocab.db "SELECT * FROM WORDS where category=100;" > /mnt/us/known_words.txt sqlite3 /mnt/us/system/vocabulary/vocab.db "SELECT * FROM LOOKUPS;" > /mnt/us/lookups.txt Code:
echo "lang|word|stem|usage|authors|title|category" > /mnt/us/vocab.txt sqlite3 /mnt/us/system/vocabulary/vocab.db "SELECT WORDS.lang, word, stem, usage, authors, title, category FROM LOOKUPS JOIN WORDS on LOOKUPS.word_key=WORDS.id JOIN BOOK_INFO on LOOKUPS.book_key=BOOK_INFO.id;" >> /mnt/us/vocab.txt Code:
lang|word|stem|usage|authors|title|category en|quaffed|quaff|The quarter-bottles of cheap wine had been quaffed [...]|Frederick Forsyth|The Veteran|0 The extension works fine on my PW2, however, since none of the sqlite3 queries are reversible and I'm not a programmer, users are strongly recommended to create a backup copy of vocab.db (in /system/vocabulary/) before testing this KUAL extension. Last edited by Doitsu; 09-01-2014 at 02:13 PM. Reason: Added alternative export.sh code |
12-11-2014, 02:23 AM | #28 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2014
Device: kindle
|
I tried to manually reset my kindle vocab.db using:
Quote:
|
|
12-11-2014, 03:44 AM | #29 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
You could try deleting all entries in Airplane mode and then look up a random word immediately after deleting all entries. When you disable Airplane mode afterwards, Whispersync shouldn't overwrite the most recent version of vocab.db on your device. However, I haven't tried this myself, since I use my PW in Airplane mode to prevent it from auto-updating to the very latest version, which messes with the jailbreak.
|
03-01-2015, 11:18 PM | #30 |
Zealot
Posts: 105
Karma: 87300
Join Date: Feb 2011
Device: kindle 3w, dxg, 5, Kv
|
(an interim question: how do we correctly add the "timestamp" to the categories listed above in the code?
SELECT WORDS.lang, word, stem, usage, authors, title, category I add ',timestamp' to the sequence above but terminal does not accept 'timestamp' (timestamp is the category name in the squalite browser that refers to the date a word is looked up). ) |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vocabulary builder | bobafruit | Kindle Developer's Corner | 25 | 09-04-2015 01:46 AM |
Paperwhite 2 - Major Problem with Vocabulary Builder | floriano | Amazon Kindle | 30 | 08-14-2014 01:01 PM |
Vocabulary Builder for Kindle Paperwhite 1 | pxpxpx | Amazon Kindle | 2 | 02-16-2014 06:07 PM |
Vocabulary Builder for PW1 | bookzLove | Amazon Kindle | 1 | 11-10-2013 07:21 PM |
Vocabulary builder worth the upgrade? | drago | Amazon Kindle | 4 | 10-28-2013 09:41 PM |