![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11
Karma: 4264
Join Date: Dec 2011
Device: kobo touch
|
New dictionary format of firmware 2.14
Does any one know what is the format of dictionary in firmware 2.14/2.15.
How to decode and encode it? Can we replace it with our dictionary? 1 the file name is '.a ' 2 each file header start with 'NJDC' |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,545
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I don't think those are dictionaries. Take a look in .kobo/dict when the device is attached. You will see the dictionaries you have installed. They appear to be zip files, with the contents of them being a series of html files and one called "words". Words looks to have a signature of "We love Marisa.".
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Unfortunately, the html files are not in plain text. Up to 2.0.0 or so they were gz compressed. Since then they seem to be encrypted, I guess because of copyright concerns. The "words"-file seems to be an index file (I have no idea about the encoding).
I had some plans about manipulating dictionaries (link) and I actually put some efforts into it. However, I gave up because of the encryption. I still have a faint hope that the KT stores the html files in plain format on the system partition for performance reasons. Since I am a Ms Windows user without any knowledge of Linux I cannot access this partition. I would be thankful for any information. |
![]() |
![]() |
![]() |
#4 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 37668
Join Date: Feb 2012
Device: Kobo Touch
|
Quote:
The good news are that even though the newer firmwares have encrypted dictionaries, my translated dictionary works perfectly with the 2.1.5 firmware, and also it is much more easy to install since the dictionary files are now on the user-reachable part of the memory. So don't give up, finish your work :-) |
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Thank you so much for this information. Since my KT crashed completely when I tried to install my modified dictionary, I thought it was because of the encryption. But since it worked in your case there must be a different cause. Now I realize that the character encoding of the file names has changed since 2.1.1 or so. That gives me new hope. Thank you again.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11
Karma: 4264
Join Date: Dec 2011
Device: kobo touch
|
I finally update my modified dictionary into firmware 2.15:
1 update kobo desktop to latest. 2 connect my kobo touch to my computer (my firmware is 1.9.17). 3 kobo desktop will prepare upgrade package for it. 4 under the .kobo folder of my reader, there is some file named dict???.gz. 5 open dict?.gz with a compressor (i am using 7z.exe) 6 replace files inside dict?.gz with my modified dictionary for 1.9.17. 7 disconnect ereader from my computer. 8 after all upgrade is finished, my modified dictionary is ready. |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11
Karma: 4264
Join Date: Dec 2011
Device: kobo touch
|
English - french dictionary.
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Thank you for the quick response. The html files of the English-French dictionary are (still?) gzipped. Did anybody successfully replace one of those dictionaries that have the other (to me unknown) file format?
|
![]() |
![]() |
![]() |
#10 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11
Karma: 4264
Join Date: Dec 2011
Device: kobo touch
|
it's same format as old firmware. it's a gz compressed html file.
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Thank you again for the quick response. By "still?" I only wanted to indicate that I wonder whether they will change the format of all dictionaries in the near future. But maybe only some of the dictionaries are copyright protected, and this was the reason for encrypting them.
|
![]() |
![]() |
![]() |
#12 |
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Matching Algorithm with Recursively Implemented StorAge (MARISA) : http://code.google.com/p/marisa-trie/
|
![]() |
![]() |
![]() |
#13 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 37668
Join Date: Feb 2012
Device: Kobo Touch
|
Quote:
I assume you and mnjkl can have some non-encrypted dictionaries on the reader beacuse of skipping the 2.1.1, and the update procedure somehow kept the "old" dictionaries on the reader instead of replacing them with the new ones. All the dictionaries in the Desktop app are encrypted, so I am pretty sure a deselect (at language settings)-sync-reselect-sync procedure would result in all-encrypted dictionaries. In case the Kobo developers decide to not support the gzipped dictionaries in a future firmware I will downgrade to 2.1.5. Anyway, I can't see why your japanese dict replacement isn't succsessful. You should try replacing the current (encrypted) japanese dict on your reader with the (gzipped) japanese from the 2.0.0 without editing it. If that works, that means your edited dictionary is somehow corrupted, but the replacement method works. If it fails, that means the japanese dictionary is handled differently than the english-english. You can still try to replace another dictionary you are not using with the japanese-english and see what happens. It wouldn't be "elegant" to have to choose eg. dutch dictionary to translate from japanese but still... |
|
![]() |
![]() |
![]() |
#14 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Quote:
Quote:
Would be interesting to replace the recent E-E dictionary with the version of 2.1.1 in order to see whether the dictionary engine can handle both gzipped and encrypted files in this case. Thanks again for the input! Last edited by tshering; 11-01-2012 at 12:54 PM. |
|||
![]() |
![]() |
![]() |
#15 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 37668
Join Date: Feb 2012
Device: Kobo Touch
|
Quote:
Definitely can, as mine worked with the encrypted-english dictionary and now works with the gzipped-modified one. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What's file format of dictionary | mnjkl | Kobo Reader | 2 | 12-12-2011 08:48 AM |
Dictionary format | jgray | Sony Reader | 1 | 10-25-2010 09:52 AM |
English Thesaurus in the dictionary format | osnova | Amazon Kindle | 14 | 12-12-2009 06:42 PM |
Dictionary: what version? can it be in firmware? | jedix | Sony Reader Dev Corner | 7 | 12-05-2008 12:00 PM |
Webster dictionary in DEPReader format | abigail | Reading and Management | 0 | 08-10-2005 08:00 AM |