Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 04-18-2014, 06:33 AM   #16
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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.
NiLuJe is offline   Reply With Quote
Old 04-18-2014, 06:52 AM   #17
arad26
Zealot
arad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbit
 
Posts: 120
Karma: 60050
Join Date: Jan 2012
Device: PW2
Quote:
Originally Posted by dtp View Post
There is db file in /system/vocabulary/vocab.db
If you remove the file and restart kindle it won't help, file will be downloaded from Amazon, but if you alter db and after restart kindle it will do.

To alter db use these commands:

this removes mastered words
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';"

sqlite3 you can download from https://sqlite.org/download.html
linux or mac most certainly will have it installed.
Could you please explain step by step how to make this on the pw 2? Thank you
arad26 is offline   Reply With Quote
Advert
Old 04-18-2014, 01:41 PM   #18
dtp
Member
dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.
 
Posts: 21
Karma: 9432
Join Date: Apr 2014
Device: Kindle PW1
Quote:
Originally Posted by arad26 View Post
Could you please explain step by step how to make this on the pw 2? Thank you
I've got PW1, so I don't know if PW2 has different db, but I doubt it so you try and do as I've said.

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.
dtp is offline   Reply With Quote
Old 04-19-2014, 06:59 AM   #19
arad26
Zealot
arad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbit
 
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?
arad26 is offline   Reply With Quote
Old 04-19-2014, 12:46 PM   #20
dtp
Member
dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.dtp can eat soup with a fork.
 
Posts: 21
Karma: 9432
Join Date: Apr 2014
Device: Kindle PW1
Quote:
Originally Posted by arad26 View Post
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?
As I've said - yes it will stay clean. If it would be simply up to the point of connection to wifi you could've simply deleted the db file. If you remove db file amazon-server thinks that there something wrong and reuploads db back, because typical kindle-user do not go anywhere but /documents and many do not go anywhere. If you remove entries from db, amazon-server will think that you manually deleted words yourself and will do nothing about it.

Last edited by dtp; 04-19-2014 at 12:54 PM.
dtp is offline   Reply With Quote
Advert
Old 04-19-2014, 02:47 PM   #21
arad26
Zealot
arad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbitarad26 with a running start, can leap into geosynchronous orbit
 
Posts: 120
Karma: 60050
Join Date: Jan 2012
Device: PW2
Quote:
Originally Posted by dtp View Post
As I've said - yes it will stay clean. If it would be simply up to the point of connection to wifi you could've simply deleted the db file. If you remove db file amazon-server thinks that there something wrong and reuploads db back, because typical kindle-user do not go anywhere but /documents and many do not go anywhere. If you remove entries from db, amazon-server will think that you manually deleted words yourself and will do nothing about it.
THANK YOU THANK YOU SOO MUCH FOR THIS! Amazon could not offer me a solution to this and you could. I just did it and it works like a charm.
arad26 is offline   Reply With Quote
Old 05-27-2014, 08:12 PM   #22
timlevin
Junior Member
timlevin began at the beginning.
 
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
timlevin is offline   Reply With Quote
Old 07-10-2014, 02:55 AM   #23
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by timlevin View Post
dtp --
I ran these two instructions, only, because I wanted to preserve the mastered words:
Code:
# 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?
You've most likely executed the wrong line. If you've Firefox installed on your machine, you can use the free SQLite Manager addon to delete entries in a more controlled manner. (Since SQLite Manager searches only for databases with an .sqlite extension by default, you'll need to select All files (*.*) from the file type drop-down list box.)

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.
Doitsu is offline   Reply With Quote
Old 07-10-2014, 03:07 AM   #24
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by NiLuJe View Post
The sqlite3 client is bundled on the device, no need to use a third-party binary .
Would it be possible to write an on-device shell script with sqlite3 queries to extract information from vocab.db and save it in a text file in the documents folder?
Doitsu is offline   Reply With Quote
Old 07-10-2014, 12:30 PM   #25
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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.
NiLuJe is offline   Reply With Quote
Old 08-26-2014, 05:26 PM   #26
Tx65
Member
Tx65 began at the beginning.
 
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).
Tx65 is offline   Reply With Quote
Old 08-27-2014, 03:27 PM   #27
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
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;"
Unhide all (moves all words from Mastered to Learning)

Code:
sqlite3 /mnt/us/system/vocabulary/vocab.db "UPDATE WORDS SET category=0 WHERE category=100;"
Delete all (deletes all words)

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;"
Export all (exports all entries from the WORDS and LOOKUPS tables)

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
To obtain a more SRS friendly layout, replace the code in export.sh with the following two lines:

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
This will generate the following output:

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
(Unfortunately, Paperwhites don't store the actual dictionary definitions in vocab.db.)

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.
Attached Files
File Type: zip vocab.zip (1.6 KB, 297 views)

Last edited by Doitsu; 09-01-2014 at 02:13 PM. Reason: Added alternative export.sh code
Doitsu is offline   Reply With Quote
Old 12-11-2014, 02:23 AM   #28
astone42
Junior Member
astone42 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2014
Device: kindle
I tried to manually reset my kindle vocab.db using:

Quote:
"DELETE FROM WORDS;"
"DELETE FROM LOOKUPS;"
"DELETE FROM DICT_INFO;"
"DELETE FROM BOOK_INFO;"
But after restart it keeps downloading the old db from amazon servers. Any idea ?
astone42 is offline   Reply With Quote
Old 12-11-2014, 03:44 AM   #29
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by astone42 View Post
I tried to manually reset my kindle vocab.db using:
But after restart it keeps downloading the old db from amazon servers. Any idea ?
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.
Doitsu is offline   Reply With Quote
Old 03-01-2015, 11:18 PM   #30
mrevent
Zealot
mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.mrevent knows better than to ask about the Gravitic Imploder Lance.
 
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).
)
mrevent is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:16 AM.


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