![]() |
#1 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 27948
Join Date: Apr 2016
Device: Kobo Aura H2O
|
Adding new dictionaries to kobo.
1. Adding a new language to Kobo.
https://www.mobileread.com/forums/sho...5&postcount=44 Add an "ExtraLocales=(iso 639-1 language code)" in the file eReader.conf ![]() You have a new language on the list. ![]() 2. Copy the dictionary files to Kobo. https://www.mobileread.com/forums/sho...d.php?t=196931 KOBO requires a special file naming for dictionaries. Example: dicthtml-en-pl.zip - from english to polish. Rename files and copy to "\.kobo\dict\". ![]() 3. Update database file. I use Sqlite Manager plugin for Mozilla Firefox. Open \.kobo\KoboReader.sqlite file. (Database->Connect database -> indicate file KoboReader.sqlite). In the left window find Tables -> Dictionary. ![]() In the right window click "Add". ![]() Sufix- file name without "dicthtml". Name- name on the list of dictionaries. Installed-true. Size- file size in BYTES. Issynced- true. Click OK 2 times. ![]() ![]() Close the database file (Database->Close Database). Congratulations, you have a new dictionary. ![]() ![]() Sorry for my english. Last edited by Robik; 04-06-2016 at 09:57 AM. Reason: missing pictures |
![]() |
![]() |
![]() |
#2 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
|
Perfect!
![]() ![]() ![]() |
![]() |
![]() |
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
|
Thx, I did that to add Catalan dictionary.
When reading a catalan book i can press on a word and get its meaning, nice! ;-) But if a made a search to dictionaries from main screen, there is a bug ;-( If I select “Extra: ca” language shows “English - English” and word is not found. On the other hand, French dictionary does'nt appear on dictionaries when searching, although I have it installed, and works well when reading a french book. !? |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
This is a licensing issue. The license that Kobo have the the French and the Dutch dictionaries means they are not allowed to search them like this. Selecting a word in a book is all they are allowed to do.
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
|
Why delete post ? It's interesting... ;-)
With a little bit of luck, but I found a way to search in Extra dictionary! I overwrote italian dictionary with a second catalan dictionary, and I wanted to change "Italiano" string in libnickel.so.1.0.0. Respecting the same number of characters I changed to "Català 2". After applying patch, when searching in "Italiano/Català 2" from main menu I couldn't search and "English - English" was show (like with Extra: ca, as I told in previous post). So I changed "Català 2" to "Català_2" and everything goes well without the space character! In the same way I tried to change "Extra: " to "Extra::" and now searches from main menu to Extra dictionary are ok ;-) Spoiler:
Last edited by pipcat; 05-04-2016 at 11:19 AM. Reason: Move patch to Spoiler |
![]() |
![]() |
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
|
As surquizu remarked to me, with this new patch to allow searches on extra dictionaries, we can install many custom dictionaries and there is no need to replace existing ones. We can also make a copy of French and Dutch dictionaries as "Extra", so license issue will not apply and search will be allowed.
1- Apply patch to libnickel.so.1.0.0 Spoiler:
2- We need a two chars code for each dictionary. If language doesn't exists on Kobo we can use its ISO-639-1 (Ex: Catalan => ca), otherwise we will assign a new fictitious code (Ex: English => e2, e3. French => f2). 3- Edit \.kobo\KoboKobo eReader.conf and fill ExtraLocales ExtraLocales=ca, e2, e3, f2 4- Copy dictionary files to \.kobo\dict dicthtml-ca.zip, dicthtml-e2.zip, dicthtml-e3.zip, dicthtml-f2.zip 5- Open db \.kobo\KoboReader.sqlite and insert rows on Dictionary table -ca Català -e2 English second dictionary -e3 English third -f2 Français bis Last edited by pipcat; 07-29-2016 at 04:03 AM. Reason: Patch in step 1 is for libnickel.so.1.0.0.patch file |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46
Karma: 66500
Join Date: Jan 2011
Device: kobo glo
|
Is possible to remove the official dictionary name from the popup that appear when it is tapped a word?
Fonte: Merriam-Webster's etc.. ? |
![]() |
![]() |
![]() |
#8 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 11069
Join Date: Feb 2012
Device: Sony PRS-T1, Kobo Glo HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
|
I didn't tried, but you can do and tell us ;-)
I suppose here \xa0 will be ok because text seems utf-16 and non-breaking space is \x00\xa0. But if elsewhere text were utf-8, non-breaking space is \xc2\a0, then we must be careful because it needs two bytes instead of one (if replacing a space, _, :). |
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 11069
Join Date: Feb 2012
Device: Sony PRS-T1, Kobo Glo HD
|
Yes, it works:-) Just used a hex editor to replace "00 20" by "00 A0" in a quick 'n dirty approach.
BTW, it seems that for languages that are already part of the firmware (e.g. en, it, de, fr) additional dictionaries that contain these languages in other combinations (e.g. de-it or it-fr) work out-of-the-box for looking up a word in a book as soon as you copy them to .kobo/dict. You even don't have to add the ExtraLocales entry in "Kobo eReader.conf" or add them to the database (but adding them to the database makes them available as dictionary in settings and for looking up words in the dictionary). |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Strange how differently it seems to be for some people. I have not a single dictionary in the database and all dictionaries that are in the dict folder are working as expected. For ExtraLocales to be fully functional however, I need the entry in the "Kobo eReader.conf", and the change to libnickel.so.1.0.0, as proposed by pipcat.
|
![]() |
![]() |
![]() |
#12 |
*carrier lost*
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 14000
Join Date: Aug 2015
Location: 2001:db8:e:b00c::f00d
Device: Kobo Forma, H2O v1, Aura HD
|
Can you please also add that your patch has to go into the libnickel.so.1.0.0.patch file? After I figured that out, installing a user dictionary as e2, updating the SQLite database, and patching the firmware was relatively straightforward.
I now have the WordNet dictionary installed, your concise description was of valuable help! ![]() |
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Feb 2017
Device: Kobo Aura One, PW3
|
Only two digits fictitious codes seems to work, so not "en1" and "new", only "e1" and "n1"
Work those dictionaries on kobo in two directions? Can an dicthtml-e1-n1.zip be used to translate n1 to e1, or only e1 to n1? Last edited by kobook; 02-11-2017 at 01:49 PM. |
![]() |
![]() |
![]() |
#14 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 172
Karma: 4282
Join Date: Dec 2016
Location: Hungary
Device: Kobo Aura H2O
|
@kobook, it depends on what operating system you use.
I use SQL Expert Personal 4.2 on Windows, and the sqlite3 CLI tool on Kobo itself. You can get the sqlite3 binary from helour's post's attachment for example: https://www.mobileread.com/forums/sh...3&postcount=88 Get AllInOne-sk.tgz and it's there. You can also read the scripts contained within to learn how to create an automated upgrade file to add the dictionary, I did that myself, (thank you helour!). |
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Feb 2017
Device: Kobo Aura One, PW3
|
Thanks kido.resuri
On Mac I tried the above suggested plugin for firefox. I'll take a look on the scripts descriptions. |
![]() |
![]() |
![]() |
Tags |
dictionaries, kobo, languages |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo dictionaries without books ? | Rojofo | Kobo Reader | 2 | 04-21-2015 04:57 PM |
Update kobo's dictionaries | akorx | Kobo Reader | 3 | 09-28-2014 09:12 AM |
Adding Foreign Language Dictionaries | Alymon | Amazon Kindle | 16 | 08-05-2014 01:44 PM |
PRS-T2 Adding new dictionaries | chemi | Sony Reader | 2 | 01-02-2013 10:24 AM |
PRS-T1 ADDING DICTIONARIES ?? | BooksBooks | Sony Reader Dev Corner | 11 | 08-17-2012 02:39 PM |