Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/moritree/jisho-nomikomi

A command line tool for generating Anki cards with information scraped from jisho (an online Japanese dictionary).
https://github.com/moritree/jisho-nomikomi

anki cli japanese

Last synced: 27 days ago
JSON representation

A command line tool for generating Anki cards with information scraped from jisho (an online Japanese dictionary).

Awesome Lists containing this project

README

        

# jisho-nomikomi πŸ‘Ή θΎžζ›Έγƒ»ι£²γΏθΎΌγΏ
A command line tool for generating [Anki](https://apps.ankiweb.net/) cards
with information from [jisho.org](https://jisho.org/) (an online Japanese dictionary).

> **θΎžζ›Έγƒ»ι£²γΏθΎΌγΏ β†’ jisho nomikomi β†’ dictionary swallowing**
>
> I wanted a cute name that's fun to say in my head.
> I like to imagine this program greedily scraping up data like a dubious little creature,
> and crunch-crunching it into a tidy little format.

# Usage βš™οΈ 使い方
## Installation
To use the CLI, you can make a new virtualenv and then install the package. From a terminal within the project folder:
```
python -m venv .venv
. .venv/bin/activate
pip install --editable .
```

## Commands
You can run any command with the option `--help` for documentation.

### generation
- `token [OPTIONS] [TEXT]...` – identify the tokens in a Japanese text, and cache information for those you select.
- `word [OPTIONS] [WORDS]...` – generate and cache information for each of the given words

### library
- `library export [OPTIONS]` – export the cached library to a csv file,
according to the format described in the config file
- `library delete [WORDS]...` – delete specified words from the library
- `library example [OPTIONS] [WORDS]...` – generate examples for specified words; can select from a list of options
- `library view` – view the current cached library of generated cards

### config
- `config header` – configuring fields to be written in the
[Anki header file](https://docs.ankiweb.net/importing/text-files.html#file-headers) on export. \
All fields have the flag option `-rm` to remove the field from the header entirely, instead of updating values.
- `config header columns [OPTIONS] [ORDER_FORMAT]...` – what each exported .csv column corresponds to
- The option `-v` displays a list of all valid column field types.
- Will regenerate library cache data with updated fields.
- `config header deck [TITLE]` – presets the deck to import into, if it exists
- `config header tags [ALL_TAGS]...` – list of tags, separated by spaces, to be applied to every card on import
- `config senses` – configure the (maximum) number of senses of a word to include in a card
- `config view` – view the current config settings.