38 lines
1.3 KiB
Markdown
38 lines
1.3 KiB
Markdown
# Yakudatsu (cli)
|
||
A simple cli tool to look up Japanese words using jisho.org's API.
|
||
Additionally, searching for kanji by radicals and browsing tatoeba's database of example sentences is also available.
|
||
|
||
### Jisho dictionary
|
||
<img src=".img/dab0ab082751a1b17271309c2ffc3c16d53c8498513619e50235e8157bab01fa.png">
|
||
|
||
### Searching by radicals
|
||
<img src=".img/16adb8274ff5e12b13545df2996dbdc3be149b9cd5575ceb38e2d9e031117ab9.png">
|
||
|
||
### Tatoeba sentences
|
||
<img src=".img/97bc905fa6f0ea31314aa4c7fae16d4883d555184f7e65d7f1e41cd6a389148c.png">
|
||
|
||
## Installation
|
||
Binaries are directly available from the release tab.
|
||
|
||
## Compilation
|
||
|
||
Download source and run
|
||
```
|
||
cargo build --release
|
||
```
|
||
|
||
## Usage
|
||
A readline wrapper like `rlwrap` is strongly recommended if using `ykdt` interactively (-i or empty input).
|
||
```
|
||
ykdt [<words to look up>]
|
||
ykdt :[<radicals in kanji>]
|
||
ykdt _[<expressions in sentences>]
|
||
```
|
||
When looking up kanji, * (or *) can be used to add a radical that can't be easily typed, e.g. 气.
|
||
|
||
## Sources
|
||
Dictionary definitions retrieved using [jisho](jisho.org)'s API.
|
||
|
||
To search kanji by radicals, the [radkfile](https://www.edrdg.org/krad/kradinf.html) needs to be installed in either `~/.local/share/` on Linux or `~\AppData\Local\ `on Windows.
|
||
|
||
Example sentences taken from [tatoeba](https://tatoeba.org/).
|