1.1.0 • Published 5 years ago

kanji-rand v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Kanji-rand

CLI for presenting a random kanji from specific collections.

Usage: kanji-rand

Yeah thats the full usage, configuring it is shown here:

Example config at ~/.config/kanji-rand/user-config.json:

{
  "filters": [
    "joyo-grade-1", "joyo-grade-2", "jlpt-n5"
  ],
  "randomStyle": "shuffle",
  "userLists": [],
  "configDirectory": "/home/myusername/.config/kanji-rand"
}

built in filters are: "joyo-grade-[1-6]" and "jlpt-n[1-5]".

Check the github for how collections are stored in json and point to it in your userLists like this:

{
  ...
  "userLists": [
    "/home/myusername/path/to/kanji-collection.json"
  ]
}

Remember to add a filter for it, otherwise it won't be included. So if your kanji-collection-or-something.json is:

{
  "kanji": {
    "my-list": "A B C D E FGHIJ"
  }
}

then you would add "my-list" as a filter and it will randomly choose from A, B, C, D, E, FGHIJ.