Skip to main content

A command line program that helps looking up kanji in James Heisig's book

Project description

Lookup Kanji by Heisig Keyword or frame number

Short Description

For people who learn kanji with the book by James Heisig (remembering the kanji).

A little command line interface that allows to look up multiple kanji with

  • The keyword (or parts of it)
  • Parts of the mneomic/story
  • The frame number

3.png

Installation:

Installation with python package manager:

pip3 install --user --upgrade rtk-lookup

The command line interface can then be started with

rtk

If this doesn't work, you can use

python3 -m rtklookup 

or add ~/.local/bin/ to your $PATH variable.

Installing latest development version:

git clone https://github.com/klieret/rtk-lookup.git
cd rtk-lookup
pip3 install --editable --user .

To search through your own stories/menmonic, you need to supply them via a text file (e.g. download them from kanji.koohii).

Basic searching

(default) large resist
    大抵
(default) 107 1832
    大抵
(default) large 1832
    大抵

If words are not found, they are converted to hiragana if the romkan module is installed (optional). This romkan module which can be downloaded here.

Examples:

(default) large てい
    大てい
(default) large 抵
    大抵
(default) large tei
    大てい

You can also lookup english keyword with kanji too

(default) 譲
    譲: defer
(default) 図書館
    図: map
    書: write
    館: bldg.

To quit, type .q.

Modes

There are four modes (in parenthesis: command to activate mode)

  • default (.d): Do nothing.
  • copy (.c): Copy result to clipboard.
  • lookup (.w): Lookup expression (default: tangorin.com with firefox)
  • conditional: Lookup expression if the search gave a unique result
  • primitive (.p): Try to find kanji by specifying primitives (this requires an additional file that contains all the kanji stories of the user)

The current mode is displayed by the prompt.

If the input matches more than one result, no action will be performed, regardless of the current mode.

More on searching

If a keyword contains a space, substitute _:

(default) sign_of_the_hog
    亥

word+ will look for all keywords of the form "word1 word2 word3" where word matches (exactly) one of the words.

(default) fish+
    乙: fish guts
    魚: fish
    鰭: fish fin

(default) fin+
    鰭

(default) fish+ thunder
    乙魚鰭雷
    ────────
    乙: fish guts
    魚: fish
    鰭: fish fin

word? will look for all keywords that contain "word":

(default) fish?
    貝: shellfish
    乙: fish guts
    魚: fish
    漁: fishing
    恣: selfish
    鰭: fish fin

(default) fin?
    指: finger
    棺: coffin
    緻: fine
    縁: affinity
    精: refined
    済: finish
    婉: well finished
    鰭: fish fin

(default) fish? thunder
    貝乙魚漁恣鰭雷
    ──────────────
    貝: shellfish
    乙: fish guts
    魚: fish
    漁: fishing
    恣: selfish
    鰭: fish fin

You can mix multiple search options:

Issues, Suggestions, Feature Requests etc.

Open a ticket at this addon's gitbucket issue page. Suggestions and feature requests are welcome as well!

Contributors

License

GNU AGPL, version 3 or later. The list of all kanji by heisig number RTK.tsv was included in an Anki plugin with copyright Ian Worthington Worthy.vii@gmail.com, GNU GPL, version 3 or later.

History

  • 23 Oct 2017: Moved repository to github.
  • 05 Aug 2015: Series of bigger changes.
  • 31 Mai 2015: First version released.

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

rtk-lookup-1.0.0.tar.gz (52.9 kB view details)

Uploaded Source

Built Distribution

rtk_lookup-1.0.0-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file rtk-lookup-1.0.0.tar.gz.

File metadata

  • Download URL: rtk-lookup-1.0.0.tar.gz
  • Upload date:
  • Size: 52.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.9

File hashes

Hashes for rtk-lookup-1.0.0.tar.gz
Algorithm Hash digest
SHA256 958bdc58083092fab15da022fbb7a407694924c36ae969b2ed154fb3bb8232b2
MD5 0c62e0c82688d226bbd3c1e45a9fff03
BLAKE2b-256 21658dd7a9f9430f94d19b3a65265f3b653a838bf423ef12ede63b3de25eb1a3

See more details on using hashes here.

File details

Details for the file rtk_lookup-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rtk_lookup-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 53.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.9

File hashes

Hashes for rtk_lookup-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18d34843221cd1a509d8c7ebc312fda757d62ee573b7324e8d98dbd326b6082d
MD5 343effc75d0e1c4089159e004b5be117
BLAKE2b-256 9650d45396ace2b0939af82d9f78dedfb40c7def136682283ba74ba876e35bcb

See more details on using hashes here.

Supported by

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