Skip to main content

japanese cli&web dictionary based on jmdict/kanjidic

Project description

File        : README.md
Maintainer  : Felix C. Stegerman <flx@obfusk.net>
Date        : 2020-10-28

Copyright   : Copyright (C) 2020  Felix C. Stegerman
Version     : v0.3.5
License     : AGPLv3+

GitHub Release PyPI Version Python Versions CI Android Build AGPLv3+ Sponsor

Description

jiten - japanese android/cli/web dictionary based on jmdict/kanjidic

https://jiten.obfusk.dev

Get it on Google Play

CLI screenshot

app screenshot

Features

  • Fine-grained search using regexes (regular expressions)
    • simple searches don't require knowledge of regexes
    • quick reference available in the web interface and android app
  • JMDict multilingual japanese dictionary
    • kanji, readings, meanings (english, dutch and/or german) & more
    • pitch accent (from Wadoku)
    • browse by frequency
  • Kanji dictionary
    • readings, meanings (english), jmdict entries, radicals & more
    • search using SKIP codes
    • search by radical
    • browse by frequency/level
  • Example sentences (from Tatoeba)
    • with english, dutch and/or german translation
    • some with audio
  • Stroke order
  • Android app
    • wraps the web interface (running locally on your device) in a webview
    • completely offline, no internet access required
  • Web interface
    • available online at https://jiten.obfusk.dev
    • light/dark mode
    • search history (stored locally)
    • use long press for tooltips on mobile
    • can be run on your own computer (or e.g. android phone)
  • Command-line interface

CLI

JMDict

$ jiten -v jmdict --max 1 --word cat
$ jiten -v jmdict --max 1 --word kat --lang dut
$ jiten -v jmdict --max 1 --exact 誤魔化す
$ jiten -v jmdict +random   # random entry

Kanji

$ jiten -v kanji --max 1 --word cat
$ jiten -v kanji --max 1 --exact cat
$ jiten -v kanji --max 1 --word 

Web Interface

$ jiten -v serve

Help

$ jiten --help

Requirements

Python >= 3.5 + Flask + click.

To build the (not yet optional) SQLite PCRE C extension: a C compiler (e.g. gcc/clang) and the sqlite3 & pcre libraries & headers.

Debian/Ubuntu

$ apt install python3-dev build-essential libsqlite3-dev libpcre3-dev
$ apt install python3-flask   # optional: Flask & click w/o pip

Installing

Using pip

$ pip install jiten

From git

NB: this installs the latest development version, not the latest release.

$ git clone https://github.com/obfusk/jiten.git
$ cd jiten
$ pip install -e .

NB: you may need to add e.g. ~/.local/bin to your $PATH in order to run jiten.

Miscellaneous

Web Interface on Android

You can also run the web interface locally (& offline) on your android phone. First, install termux, then run:

$ apt install clang python
$ pip install jiten

You can then run the web interface with:

$ jiten serve

and open http://localhost:5000 in your browser.

The web interface will keep running until you close termux or reboot.

Generating the DB

$ jiten setup

Forcing HTTPS

$ export JITEN_HTTPS=force

Forcing Domain Name

$ export JITEN_DOMAIN=jiten.obfusk.dev

License

Code

© Felix C. Stegerman

AGPLv3+

JMDict & KanjiDic

© James William BREEN and The Electronic Dictionary Research and Development Group

CC-BY-SA

Wadoku (pitch)

© Ulrich Apel & Wadoku.de contributors

Non-commercial

Tatoeba (sentences & audio)

© Tatoeba contributors

CC-BY

Audio by huizi99, Mizu & yomi (CC BY-NC 4.0).

KanjiVG (radicals)

© Ulrich Apel

CC-BY-SA

Stroke Order Font

© Ulrich Apel, the AAAA project and the Wadoku project

BSD-3-Clause

Kana Tables

© Wikipedia contributors

CC-BY-SA CC-BY-SA

Material Design Icons

© Google

CC-BY

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jiten-0.3.5.tar.gz (63.9 MB view details)

Uploaded Source

File details

Details for the file jiten-0.3.5.tar.gz.

File metadata

  • Download URL: jiten-0.3.5.tar.gz
  • Upload date:
  • Size: 63.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.6

File hashes

Hashes for jiten-0.3.5.tar.gz
Algorithm Hash digest
SHA256 7603f3bd6d26c9f2cabc9a33a7250565fd166b2ea3952e7ff81ab770caa08c6b
MD5 11541c1219fdb1d40e189cea1e4ac934
BLAKE2b-256 f0aed41cfb8545e78c90915c34c8b82c7a59b80fddf025b1275ce0f2164190b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page