Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2015, 06:44 AM   #1
norbusan
Connoisseur
norbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trolls
 
Posts: 93
Karma: 81548
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo
Home-made Japanese-English Dictionary for Kobo

Hi everyone,

here is a script that allows everyone to enrich the Japanese dictionary shipped with Kobo firmwares with English/German/??? translations from eDict (and/or Japanese3).

Detailed explanations can be found here: http://www.preining.info/blog/softwa...nary-enhancer/

The most current version is available via github here: Github project kobo-ja-dict-enhance, and the direct link to the script: enhance-dictionary.pl


Supported dictionaries

All dictionaries in edict2 format. Currently details are provided for English Edict2 from the JMdict/EDICT Project, and German from the Wadoku project. Furthermore, data from the Japanese3 dictionary application on iOS can be used.

ese3 dictionaries, and prefer Edict2 (which is the default). When not passing in any --dicts option, the program searches for both available dictionaries, which are found in this case.



Last edited by norbusan; 08-27-2015 at 07:53 PM.
norbusan is offline   Reply With Quote
Old 08-12-2015, 09:23 AM   #2
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 1,364
Karma: 2780793
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: Kobo H2O, iriver StoryHD
I really want to try this. But for some reason, even though I have installed the 3.16.10 firmware on my H2O and synced, it only ever offers me the old dictionary for download.

Edit (removing prior edits):

I had to install 3.17.0, for some reason 3.16.10 would not accept the new dictionary.

But now it works great, English and Japanese rolled into one - perfect! Thanks so much!

Now all I need to learn is how to stop making highlights and annotations by accident.

Last edited by frostschutz; 08-12-2015 at 05:49 PM.
frostschutz is offline   Reply With Quote
 
Advertisement
Old 08-12-2015, 10:06 PM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 8,532
Karma: 11052666
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD
Quote:
Originally Posted by frostschutz View Post
I really want to try this. But for some reason, even though I have installed the 3.16.10 firmware on my H2O and synced, it only ever offers me the old dictionary for download.

Edit (removing prior edits):

I had to install 3.17.0, for some reason 3.16.10 would not accept the new dictionary.

But now it works great, English and Japanese rolled into one - perfect! Thanks so much!

Now all I need to learn is how to stop making highlights and annotations by accident.
Kobo stated that the support for the new Japanese dictionaries was only for the Glo HD in 3.16.10. They also stated that it would get to the other devices in the next firmware.
davidfor is offline   Reply With Quote
Old 08-13-2015, 10:34 AM   #4
norbusan
Connoisseur
norbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trolls
 
Posts: 93
Karma: 81548
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo
@frostschutz thanks for your feedback, good to hear that it works. I will try to do some more fixes, as I find that some hiragana->kanji->translation mappings don't work due to parsing problems.

@davidfor thanks for clarifying!

All the best

Norbert
norbusan is offline   Reply With Quote
Old 08-25-2015, 06:06 AM   #5
norbusan
Connoisseur
norbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trolls
 
Posts: 93
Karma: 81548
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo
I have just released version 1.0, where there are now 326064 translated entries.

Please see the main documentation page Kobo Japanese Dictionary Enhancer for explanations and downloads.

If you need help, feel free to send me a PM.
norbusan is offline   Reply With Quote
Old 08-25-2015, 07:18 AM   #6
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 2,265
Karma: 659243
Join Date: Jun 2012
Device: kobo touch
Norbousan,
thank you very much!

When dicthtml-jaxxdjs.zip appeared, I tried to install dicthtml-ja.zip and dicthtml-jaxxdjs.zip parallel, however without success. Reminded by your new dictionary release, I tried again today (now under FW 3.17.3). There was still not much success, however, I found that now nickel accepts translation dictionaries with -ja as first language, e.g., htmldict-ja-en.zip. In previous FWs such dictionaries were listed, but when you tried to select one of them, you were presented with "Sorry, we do not supply a 日本語 - English dictionary", or something to that effect. Now, such dictionaries are accepted, however, only the regular (non-Japanese) search function is performed. As a result, you can see all dictionary entries listed (the marisa list), but only hiragana entries can actually be found. Would be nice if we could make nickel select the proper search function.
tshering is offline   Reply With Quote
Old 08-25-2015, 11:32 AM   #7
norbusan
Connoisseur
norbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trolls
 
Posts: 93
Karma: 81548
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo
Hi Tshering,

Quote:
Originally Posted by tshering View Post
There was still not much success
What do you mean? Did replacing .kobo/dicts/dicthtml-.... not result in lookups with English language additions?

Having ja-en dictionaries would be nice, but not if it is only for Hiragana, that is not very useful - at least for me. My problem are kanjis I cannot read by now, or compounds I don't know, but Hiragana only words only rarely make me stumble.

So, please, let me know if there are any problems? On my Kobo GloHD the generated dictionary works extremely nice.

All the best

Norbert
norbusan is offline   Reply With Quote
Old 08-25-2015, 04:10 PM   #8
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 2,265
Karma: 659243
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by norbusan View Post
What do you mean? Did replacing .kobo/dicts/dicthtml-.... not result in lookups with English language additions?
I meant to say that I would like to have more than one full functional Japanese (to some language) dictionaries installed at the same time. I thought maybe now (FW 3.17.3) is the right time. But I failed. I have perhaps to wait until Kobo publishes a Japanese-English dictionary.
tshering is offline   Reply With Quote
Old 08-25-2015, 04:14 PM   #9
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 1,364
Karma: 2780793
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: Kobo H2O, iriver StoryHD
Well, you could probably put several languages into one file, same way this script is creating a Japanese -> English & Japanese dictionary. It would mean more scrolling / more pages for every word you look up, though.

Again thanks for this script, very useful.
frostschutz is offline   Reply With Quote
Old 08-25-2015, 04:21 PM   #10
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 2,265
Karma: 659243
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by frostschutz View Post
Well, you could probably put several languages into one file, same way this script is creating a Japanese -> English & Japanese dictionary.
I did this in the past with several languages, among those a Japanese-Japanese/English dictionary. And this works fine, but ...
Quote:
Originally Posted by frostschutz View Post
It would mean more scrolling / more pages for every word you look up, though.
This is the point.
tshering is offline   Reply With Quote
Old 08-25-2015, 08:02 PM   #11
norbusan
Connoisseur
norbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trolls
 
Posts: 93
Karma: 81548
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo
Actually, this is on my todo list: not using the plain edict2 file, but the newer edict2.xml which also contains some German and French translations. Unfortunately I am not aware of other projects providing translations (the Japanese-German Wadoku is great, but I don't have access to the database of it).

If anyone knows about other available dictionary options, please let me know.

All the best

Norbert
norbusan is offline   Reply With Quote
Old 08-25-2015, 08:41 PM   #12
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 1,364
Karma: 2780793
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: Kobo H2O, iriver StoryHD
The Wadoku database is available, in XML and EDICT formats:

http://wadoku.de/wiki/display/WAD/Downloads+und+Links

Haven't tried it, though.
frostschutz is offline   Reply With Quote
Old 08-26-2015, 06:49 AM   #13
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 1,364
Karma: 2780793
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: Kobo H2O, iriver StoryHD
Norbert, is it possible to use both edicts, so I have English, German, and Japanese side-by-side? (If it means additional pages in the dictionary definition, I don't mind).
frostschutz is offline   Reply With Quote
Old 08-26-2015, 11:36 PM   #14
norbusan
Connoisseur
norbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trollsnorbusan doesn't feed trolls
 
Posts: 93
Karma: 81548
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo
Yes, please take a look at https://www.preining.info/blog/softw...nary-enhancer/
The new version 1.1 (announcement tomorrow probably) can do that. I have even screenshots already up there ;-)
norbusan is offline   Reply With Quote
Old 08-27-2015, 07:06 AM   #15
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 1,364
Karma: 2780793
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: Kobo H2O, iriver StoryHD
Thanks!
frostschutz is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Japanese-English dictionary tshering Kobo Developer's Corner 47 07-29-2015 05:04 PM
Japanese-English Kindle dictionary karunaji Amazon Kindle 39 02-17-2013 12:51 AM
japanese - english dictionary nukito Amazon Kindle 1 12-23-2012 07:52 AM
Japanese English dictionary available for download tshering Kobo Reader 0 12-05-2012 05:21 PM
English-Japanese dictionary + ebook reader? roquet Which one should I buy? 0 11-07-2007 08:34 AM


All times are GMT -4. The time now is 06:59 AM.


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