All Projects → obfusk → jiten

obfusk / jiten

Licence: AGPL-3.0 license
jiten - japanese android/cli/web dictionary based on jmdict/kanjidic — 日本語 辞典 和英辞典 漢英字典 和独辞典 和蘭辞典

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
Makefile
30231 projects
CSS
56736 projects

Projects that are alternatives of or similar to jiten

jmdict-simplified
JMdict, JMnedict, Kanjidic, KRADFILE/RADKFILE in JSON format
Stars: ✭ 96 (+50%)
Mutual labels:  dictionary, japanese, jmdict, kanjidic
jmdict-kindle
Japanese - English dictionary for Kindle based on the JMdict / EDICT database
Stars: ✭ 151 (+135.94%)
Mutual labels:  dictionary, japanese, jmdict
zkanji
Japanese language study suite and dictionary
Stars: ✭ 55 (-14.06%)
Mutual labels:  japanese, vocabulary, kanji
new-word-tab
A browser extension to learn a new word per new tab
Stars: ✭ 30 (-53.12%)
Mutual labels:  dictionary, vocabulary, english
unofficial-jisho-api
Encapsulates the official Jisho.org API and also provides kanji, example, and stroke diagram search.
Stars: ✭ 88 (+37.5%)
Mutual labels:  dictionary, japanese, jisho
Google Ime Dictionary
日英変換・英語略語展開のための IME 追加辞書 📙 日本語から英語への和英変換や英語略語の展開を Google 日本語入力や ATOK などで可能にする IME 拡張辞書です
Stars: ✭ 30 (-53.12%)
Mutual labels:  dictionary, japanese, english
Memorize
🚀 Japanese-English-Mongolian dictionary. It lets you find words, kanji and more quickly and easily
Stars: ✭ 72 (+12.5%)
Mutual labels:  dictionary, japanese, english
SoMeWeTa
A part-of-speech tagger with support for domain adaptation and external resources.
Stars: ✭ 20 (-68.75%)
Mutual labels:  german, english
langua
A suite of language tools
Stars: ✭ 29 (-54.69%)
Mutual labels:  dictionary, vocabulary
folket
Swedish–English dictionary for macOS (December 20, 2020)
Stars: ✭ 31 (-51.56%)
Mutual labels:  dictionary, english
Britfone
British English pronunciation dictionary
Stars: ✭ 66 (+3.13%)
Mutual labels:  dictionary, english
BinPackage
The vocabulary of modern Icelandic, encapsulated in a Python package
Stars: ✭ 19 (-70.31%)
Mutual labels:  dictionary, vocabulary
English-Persian-Word-Database
English Persian Word Database - Popular database extensions
Stars: ✭ 19 (-70.31%)
Mutual labels:  dictionary, english
ieml-language
The IEML language database. A git database containing the translations for IEML expressions: USL (Uniform Semantic Locator)
Stars: ✭ 17 (-73.44%)
Mutual labels:  dictionary, vocabulary
vocabulary-titan
Chatbot for searching vocabulary on mainstream dictionaries
Stars: ✭ 70 (+9.38%)
Mutual labels:  dictionary, vocabulary
BSD
The Business Scene Dialogue corpus
Stars: ✭ 51 (-20.31%)
Mutual labels:  japanese, english
Jotoba
A free online, self-hostable, multilang Japanese dictionary.
Stars: ✭ 87 (+35.94%)
Mutual labels:  dictionary, japanese
Manji
Manji is a mobile application built to help people learning Japanese learn about Kanji.
Stars: ✭ 142 (+121.88%)
Mutual labels:  dictionary, kanji
FCH-TTS
A fast Text-to-Speech (TTS) model. Work well for English, Mandarin/Chinese, Japanese, Korean, Russian and Tibetan (so far). 快速语音合成模型,适用于英语、普通话/中文、日语、韩语、俄语和藏语(当前已测试)。
Stars: ✭ 154 (+140.63%)
Mutual labels:  japanese, english
HistoryOfMe
Your own personal diary.
Stars: ✭ 50 (-21.87%)
Mutual labels:  german, english

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

Packaging status Packaging status

jiten

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

→ available online at jiten.dev

Get it on F-Droid Get it on Google Play

NB: jiten is now available in the official F-Droid repository, but you can also get it via obfusk's f-droid repo: this contains the exact same APKs available via Google Play, as well as occasional beta versions (which are only installed when selected manually).

Screenshots

app screenshot cli 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 (romaji optional), meanings & more
    • meanings in english, dutch, german, french and/or spanish
    • pitch accent (from Wadoku)
    • browse by frequency/jlpt
  • Kanji dictionary
  • Example sentences (from Tatoeba)
    • with english, dutch, german, french and/or spanish translation
    • some with audio
  • Stroke order
    • input a word or sentence and see how it's written

Interfaces

  • Android app
    • wraps the web interface (running locally on your device) in a webview
    • completely offline, no internet access required
    • easily share and open jiten.obfusk.dev links
  • Web interface
    • available online at https://jiten.obfusk.dev
    • light/dark mode
    • search history (stored locally)
    • tooltips to quickly see meanings and readings for kanji and words
    • use long press for tooltips on mobile
    • convert romaji to hiragana and between hiragana and katakana
    • can be run on your own computer
  • Command-line interface
  • WebView GUI
    • wraps the web interface (running locally on your computer)

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
$ jiten -v jmdict --prio +random  # random "priority" entry
$ jiten -v jmdict -n 4-5 +random  # random JLPT N4 or N5 entry

# convert romaji to hiragana & show romaji readings
$ jiten -v jmdict --max 1 --hiragana --romaji --word neko

# prefix commands: +k (katakana), +h (hiragana), +w (word) etc.
$ jiten -v jmdict --max 1 --romaji '+k +w ko-hi-'   # コーヒー

Kanji

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

$ jiten -v kanji --max 1 '+r 犭艹田'    # search by radicals
$ jiten -v kanji --max 1 '+s 2-3-3'     # search by SKIP code

$ jiten radicals                        # show radicals table

Sentences

$ jiten -v sentences --max 1 kitten

Web Interface

$ jiten -v serve

Help

$ jiten --help
$ jiten jmdict    --help
$ jiten kanji     --help
$ jiten sentences --help

Tab Completion

For Bash, add this to ~/.bashrc:

eval "$(_JITEN_COMPLETE=source_bash jiten)"

For Zsh, add this to ~/.zshrc:

eval "$(_JITEN_COMPLETE=source_zsh jiten)"

For Fish, add this to ~/.config/fish/completions/jiten.fish:

eval (env _JITEN_COMPLETE=source_fish jiten)

WebView GUI for Linux/macOS/Windows

NB: requires pywebview.

$ jiten-gui

Bugs & Feature Requests

Issue Tracker

Questions & Feedback

Discussions

[email protected]

Installing

Debian

An official Debian package should be available soon.

You can also manually build a Debian package using the debian/sid branch, or download pre-built .debs via GitHub releases.

NixOS

An official package is also available in nixpkgs (un)stable.

Using pip

$ pip install jiten

NB: depending on your system you may need to use e.g. pip3 --user instead of just pip.

From git

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

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

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

To update to the latest development version:

$ cd jiten
$ git pull --rebase
$ make

Dependencies

  • Python >= 3.8 + Flask + click + kanjidraw.
  • To build the SQLite PCRE C extension: a C compiler (e.g. gcc/clang) and the sqlite3 & pcre libraries & headers.
  • Basic build tools like make and patch.
  • To run the WebView GUI: pywebview >= 3.3.5.

Debian/Ubuntu

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

NB: currently, you'll need to install kanjidraw manually (i.e. using pip or from git).

Optional: WebView GUI

$ apt install python3-pyqt5.qtwebengine   # recommended: qtwebengine

$ apt install python3-webview             # if >= 3.3.5
$ pip3 --user install pywebview           # otherwise

Miscellaneous

Online Android App

There is also an online android app -- Jiten [Online] -- which essentially provides the same functionality as opening the https://jiten.obfusk.dev website in a web browser.

It does have some some small advantages (like long press for tooltips) and requires less storage space (and could be faster depending on your device and internet connection). You can install both at the same time if you want.

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

© FC 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

JLPT Data

© Jonathan Waller

CC-BY

Kana Tables

© Wikipedia contributors

CC-BY-SA CC-BY-SA

Material Design Icons

© Google

Apache 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].