jmdict-kindle / jmdict-kindle

Japanese - English dictionary for Kindle based on the JMdict / EDICT database
Other
223 stars 17 forks source link
dictionary japanese jmdict kindle

About

This is a Japanese-English dictionary based on the JMdict and JMnedict and Tatoeba database for e-Ink Kindle devices.

Features:

Inflection lookup screenshot Sentence lookup screenshot
Word lookup screenshot Name lookup screenshot

Supported Devices

The dictionary has been tested on Kindle Paperwhite and Kindle Oasis. It should also work well with other e-ink Kindle devices

The dictionary will not work well on Kindle Fire or Kindle Android App, or any Android based Kindle, because the Kindle software on those platforms does not support inflection lookups.

Download

You can download the latest version of the dictionary from here.

Install

e-Ink Kindle

There are in total 3 dictionaries:

To install any of the dictionaries (you can also install all three of them) into your device follow these steps:

Kindle Android App

NOTE: Unfortunately the Kindle Android App does not support dictionary inflections, yielding verbs lookup practically impossible. No known workaround.

This will override the default Japanese-Japanese dictionary.

Kindle iOS App

The steps for iOS App are similar the Android App above. Unfortunately the Kindle iOS App seems to suffer from the same limitations regarding inflections.

Pitch accent information

The pitch accent information is encoded in the following way:

Examples:

For more information see Japanese pitch accent - Wikipedia

Building from source

Build

Requirements:

Inside of the makefile you can change the max number of sentences per entry, compression, as well as which sentences to include:

# The Kindle Publishing Guidelines recommend -c2 (huffdic compression),
# but it is excruciatingly slow. That's why -c1 is selected by default.
# Compression currently is not officially supported by Kindle Previewer according to the documentation
COMPRESSION ?= 1

# Sets the max sentences per entry only for the jmdict.mobi.
# It is ignored by combined.mobi due to size restrictions.
# If there are too many sentences for the combined dictionary,
# it will not build (exceeds 650MB size limit). The amount is limited to 0 in this makefile for the combined.mobi
SENTENCES ?= 5

# This flag determines wheter only good and verified sentences are used in the
# dictionary. Set it to TRUE if you only want those sentences.
# It is only used by jmdict.mobi
# It is ignored bei combined.mobi. There it is always true
# This is due to size constraints.
ONLY_CHECKED_SENTENCES ?= FALSE

# If true adds pronunciations to entries. The combined dictionary ignores this flag due to size constraints
PRONUNCIATIONS ?= TRUE

# If true adds additional information to entries. The combined dictionary ignores this flag due to size constraints
ADDITIONAL_INFO ?= TRUE

Build with make to create all 3 dictionaries (Note the combined dictionary will not build with Kindle Previewer due to size constraints):

make

or use any of the following commands to create a specific one:

make jmdict.mobi
make jmnedict.mobi
make combined.mobi

If you build it on WSL the commands are as follows:

make ISWSL=TRUE

or use any of the following commands to create a specific one:

make jmdict.mobi ISWSL=TRUE
make jmnedict.mobi ISWSL=TRUE
make combined.mobi ISWSL=TRUE

Create a Pull Request

Before making a pull request please ensure the formatting of your python code is correct. To do this please install black and run

black .

To do

Credits

Alternatives