Code Monkey home page Code Monkey logo

japanese-dictionary's Introduction

Japanese-English Dictionary

Features

Clean UI that adapts to context

Features Aimed at Japanese Learners Stroke order, example sentences and English -> Japanese lookup.

Note: English -> Japanese lookup is a work in progress and may not be entirely reliable or accurate.

Data Sources

The dictionary is based on JMDict, KanjiDic2, Tatoeba example sentences, KanjiVG stroke order diagrams. All licensing information can be found below.

Installing

  1. Open Dictionary.app, go to File > Open Dictionaries Folder.
  2. Place "Japanese English Dictionary.dictionary" directly into the folder that opens.
  3. Restart Dictionary.app
  4. Go to "Dictionary" in the menu bar then "Preferences"
  5. Scroll down to the bottom and tick "Japanese English Dictionary (English-Japanese)
  6. You might need to restart your computer to enable Spotlight and Lookup.

Compiling

Compiling requires ~6GB of free ram. To compile the dictionary there are a number of requirements:

  • Apple dictionary development kit
  • Python 3.7+ with pip requirements:
    • jinja2
    • mecab-python3
    • jaconv
  • XZip
  • XMLLint
  • MeCab

To compile run

./compile.sh

or to compile a sample dictionary containing a small subset of words

./compile_sample.sh

useful for testing as the full version can take up to an hour to compile

Copyright and Usage Information

EDICT and KanjiDic

This package uses the EDICT and KANJIDIC dictionary files. These files are the property of the Electronic Dictionary Research and Development Group, and are used in conformance with the Group's licence.

Tatoeba

The example sentences in this dictionary are provided by Tatoeba.org under the Creative Common Attribution 2.0 France (CC BY 2.0 FR) license.

KanjiVG

The kanji samples in this dictionary are provided by KanjiVG under the Creative Common Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license and are copyright © 2009-2018 Ulrich Apel.

Wiktionary

The english entries in this dictionary are filtered using text data from Wiktionary, which is released under the GNU Free Documentation License (GFDL) and the Creative Commons Attribution-Share-Alike 3.0 License.

japanese-dictionary's People

Contributors

jackson-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

krackers

japanese-dictionary's Issues

Error in dictionary_converter.py when trying to append_tag

When trying to compile the dictionary I'm getting the following error.

File "/Users/stuartcw/Github/japanese-dictionary/./dictionary_converter.py", line 289, in <module> main() File "/Users/stuartcw/Github/japanese-dictionary/./dictionary_converter.py", line 273, in main d_tag = append_tag(entry_root, "definition") File "/Users/stuartcw/Github/japanese-dictionary/./dictionary_converter.py", line 237, in append_tag tag.attrib = attribs TypeError: attrib must be dict, not NoneType

Please let me know if there is anything I can do to fix or resolve it. Many thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.