Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-11-2014, 11:00 AM   #16
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Under Preferences ==> Output Options==> MOBI Output, set the PDOC tag (default is [PDOC]) to [EBOK]. calibre will then stop updating the cdetype to PDOC on the fly during send-to-device.

If you need to add the ASIN, Quality Check PI can check your library for any book that are missing ASINs and/or add the mobi-asin/asin/amazon/uuid identifier (in descending order of priority) as the ASIN. (This fix is needed so books show up properly on the Fire, IIRC.)

Last edited by eschwartz; 06-11-2014 at 11:03 AM.
eschwartz is offline   Reply With Quote
Old 06-11-2014, 12:19 PM   #17
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Err, not *exactly*. Calibre defaults to EBOK w/ fake ASIN (ie. everything's fine & dandy).

The output setting eschwartz pointed out exists solely if you *want* a PDOC cdeType (ie. personal) instead, something that will happen (during the Send To Device process) to any books with (at least) one Calibre tag matching the string specified in that setting.

(cf. this thread for a recent run down of the subject).

Last edited by NiLuJe; 06-11-2014 at 12:23 PM.
NiLuJe is offline   Reply With Quote
Advert
Old 12-28-2014, 04:26 AM   #18
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
With the Kindle Mate program , I wonder now as to whether there is/ can be built a script that looks up the words in a desktop dictionary application and append the definitions to the vocab builder words in the list.

E.g. One can select all words in Vocabulary Builder in Kindle Mate (I suppose that the KM can do that --I couldn't use it since I have no access to Windows yet), transfer them to excel, one word for each row. Then a script can select the words in the rows one by one, look the definitions up in a dictionary program, get the first two lines of their definition and add them to column B for each word.

That would be great, I think, for study purposes --Anki, flashcards/quizzes at cram.com etc.
mrevent is offline   Reply With Quote
Old 12-28-2014, 07:39 AM   #19
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by mrevent View Post
With the Kindle Mate program ,
- - - - -
If you check the program at that link, you will find it is a closed source program.

So let us know when you get access to the sources and then maybe someone can make an estimate of how practical the additions you ask for would be.

We (the forum members) do not encourage closed source programs here, we already get enough of that from Amazon/Lab126.

As can be seen from the author's activity here, that link is/was just a vanity posting.
Which we also try to ignore at this forum.
knc1 is offline   Reply With Quote
Old 12-28-2014, 11:37 AM   #20
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,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by mrevent View Post
With the Kindle Mate program , I wonder now as to whether there is/ can be built a script that looks up the words in a desktop dictionary application and append the definitions to the vocab builder words in the list.
If you know your way around a text editor, you could export the raw vocabulary data as a "|" delimited text file with a simple shell script and import it into a spreadsheet program for further processing.

Code:
#!/bin/sh

echo "lang|word|stem|usage|authors|title|category" > /private/var/root/Desktop/vocab.txt
sqlite3 /Volumes/Kindle/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;" >> /private/var/root/Desktop/vocab.txt
Before running the script, you'll need to change the user name in the Desktop path from root to your user name. If your Kindle isn't mounted as /Volumes/Kindle, you'll also need to change the database path.

To run the script open a Terminal window, drag & drop the shell script to the Terminal window and press Enter. (You'll obviously need to connect your Kindle to your Mac before running the script.)

If your Kindle is jailbroken, you could also use my quick and dirty Vocabulary Builder KUAL extension to export the Vocabulary data to the root folder of the Kindle.

As for the dictionary lookup, it might be implemented using a dictionary website API or querying a StarDict dictionary with sdcv. However, sdcv is a bit buggy and occasionally won't return results, even if the definition is in the dictionary. IIRC, there's also a Google Translate plugin for Anki.

What language combination(s) are you interested in?
Attached Files
File Type: zip export.sh.zip (344 Bytes, 284 views)
Doitsu is offline   Reply With Quote
Advert
Old 12-28-2014, 12:53 PM   #21
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
Thank you very very much Doitsu! I wasn't expecting such a great reply so soon!!! I hope this will help others as well...
I am interested mainly in English-English, French-English, German-English, and then French-German
mrevent is offline   Reply With Quote
Old 12-29-2014, 06:24 PM   #22
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
Hi again,

I tried using Robert Collins English<->French Dictionary for Mac for definitions.

[After seeing belatedly knc1's message above: both Robert-Collins and Ultalingua are closed source programs. Please delete this post if inappropriate, then. I tried to make the script work in Dictionary.app --where one can use Stardict dictionaries -- yet to no avail.]

The following script will get each word from an Excel list (Column A) and append the first two lines of the definitions from the Robert Collins Dictionary to Column B. (TextEdit.app is used as an intermediary). Before running the script, in Excel: the first cell has to be selected; in the Dictionary: the text field has to be selected.


(Currently, the repeat times is set to 2. Change it to the number of the words in the Excel list.
Also: One can duplicate the line '"keystroke (ASCII character 31) using shift down"' in the script to increase the number of lines to be copied from the Robert-Collins Dictionary.)


I don't know how useful it may be to some of us. Since I am still at the newbie level in scripting, I prefer to believe that I "accomplished" something


Code:
tell application "Microsoft Excel"
	repeat 2 times
		activate
		tell application "System Events"
			tell process "Microsoft Excel"
				keystroke "c" using {command down}
			end tell
			tell application "Le Grand Robert & Collins"
				activate
				tell application "System Events"
					tell process "The Collins-Robert French Dictionary"
						delay 0.5
						keystroke "v" using {command down}
						delay 0.1
						keystroke return
						delay 0.5
						keystroke "a" using {command down}
						delay 0.2
						keystroke "c" using {command down}
						keystroke tab
						delay 0.1
						keystroke tab
						delay 0.1
						keystroke tab
					end tell
				end tell
			end tell
			tell application "TextEdit"
				activate
				tell application "System Events"
					tell process "TextEdit"
						keystroke "v" using {command down}
						keystroke (ASCII character 30) using command down
						delay 0.2
						keystroke (ASCII character 31)
						keystroke (ASCII character 31) using shift down
						keystroke (ASCII character 31) using shift down
						keystroke "x" using {command down}
						keystroke "a" using {command down}
						keystroke (ASCII character 8)
					end tell
				end tell
			end tell
			delay 0.2
			
			tell application "Microsoft Excel"
				activate
				tell application "System Events"
					tell process "Microsoft Excel"
						keystroke tab
						delay 0.1
						keystroke (ASCII character 32)
						delay 0.1
						keystroke "v" using {command down}
						delay 0.2
						keystroke return
					end tell
				end tell
			end tell
			delay 0.2
			
		end tell
	end repeat
end tell


And for the Ultralingua dictionary:


Code:
tell application "Microsoft Excel"
	repeat 2 times
		activate
		tell application "System Events"
			tell process "Microsoft Excel"
				keystroke "c" using {command down}
			end tell
			tell application "Ultralingua"
				activate
				tell application "System Events"
					tell process "Ultralingua"
						delay 0.5
						keystroke "v" using {command down}
						delay 0.3
						keystroke tab
						delay 0.1
						keystroke tab
						keystroke "a" using {command down}
						delay 0.3
						keystroke "c" using {command down}
						delay 0.2
						keystroke tab
						
					end tell
				end tell
			end tell
			tell application "TextEdit"
				activate
				tell application "System Events"
					tell process "TextEdit"
						keystroke "v" using {command down}
						delay 0.5
						keystroke (ASCII character 30) using command down
						delay 0.5
						keystroke (ASCII character 31)
						delay 0.5
						keystroke (ASCII character 31) using shift down
						delay 0.5
						keystroke (ASCII character 31) using shift down
						delay 0.5
						keystroke "x" using {command down}
						delay 0.3
						keystroke "a" using {command down}
						keystroke (ASCII character 8)
					end tell
				end tell
			end tell
			delay 0.2
			
			tell application "Microsoft Excel"
				activate
				tell application "System Events"
					tell process "Microsoft Excel"
						keystroke tab
						delay 0.1
						keystroke (ASCII character 32)
						delay 0.1
						keystroke "v" using {command down}
						delay 0.2
						keystroke return
					end tell
				end tell
			end tell
			delay 0.2
			
		end tell
	end repeat
end tell

Last edited by mrevent; 12-29-2014 at 07:48 PM.
mrevent is offline   Reply With Quote
Old 12-29-2014, 06:57 PM   #23
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
Sorry for 3 messages in a row, but I just saw knc1's message (should have skipped it after Doitsu's): I understand knc1, thanks. -- And Doitsu's script can already do what I need anyway. (Actually, it turned out to be better suited to my purposes than both the current version of KM and the Sqlite Browsers (FF add-on as well as the standalone program) since with the script one can sort the words based on book titles while I could not make those applications list the words together with book titles.)

Last edited by mrevent; 12-30-2014 at 04:37 PM.
mrevent is offline   Reply With Quote
Old 09-02-2015, 10:10 AM   #24
morts81
Junior Member
morts81 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2015
Device: Kindle Paperwhite
Hi everyone, here is my very non-techy solution to exporting Kindle vocab data:

1. Plug in Kindle
2. Go to "[Kindle directory]\system\vocabulary" (e.g. D:\system\vocabulary - copy/paste this into Explorer bar) (normally you only see the "documents" directory, the system directory is invisible)
3. Copy paste vocab.db file
4. Open in Sqlitebrowser (Can download Sqlitebrowser at https://github.com/sqlitebrowser/sqlitebrowser)
5. Export “WORDS” and “LOOKUPS” as a csv
6. Open Excel
7. Import the data from both CSV files using Data-->Get External Data --> From Text
8. In the import wizard change the File_Origin to "65001 : Unicode UTF-8"
9. Change the Delimiter to comma
10. Select where to import to and Finish
11. Manipulate data as required.
morts81 is offline   Reply With Quote
Old 09-02-2015, 10:22 AM   #25
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
#2 is the result of your settings made in your browser, you can change that.

- - - -

Any hints on getting the manipulated data back into the device?
knc1 is offline   Reply With Quote
Old 09-04-2015, 01:46 AM   #26
morts81
Junior Member
morts81 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2015
Device: Kindle Paperwhite
The only change I make on the vocab.db file (on the Kindle) after exporting and saving the data to Excel is to delete all entries and start collecting words in the vocab list again.

I open Sqlitebrowser, open vocab.db (directly from the Kindle), browse data, and delete all records in the WORDS and LOOKUPS sections. Hope this helps.
morts81 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
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
How's your vocabulary? pdurrant Lounge 112 11-01-2011 06:06 AM


All times are GMT -4. The time now is 03:44 PM.


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