hunzhongwen

0.1.2 • Public • Published

HunZhongWen

CLI Chinese card generator for some study.

Installing

$ npm i -g hunzhongwen
# or 
$ yarn global add hunzhongwen

Usage

Usage: hunzhongwen [options] [command]

Options:
  -V, --version       output the version number
  -d, --data          # accepts path to the data.json
  -o, --output        # `compile` output
  -c, --config        # path to config.json, defaults to ./config.json
  -h, --help          output usage information

Commands:
  compile <sentence>  Compiles a card
  compile-all         Compiles all cards
  init-config         Initialize hunzhongwen projec

Some more data examples

[
  {
    "sentence": "我 去 阅览室 看 书 和 画报。",
    "meaning": "Я пошел в читальный зал почитать книги и журналы.",
    "words": {
      "": { "excludeWord": true },
      "": { "excludeWord": true },
      "": { "include": [ "read" ] },
      "": { "include": [ "book" ] },
      "": { "include": [ "and" ], "exclude": [ "Taiwan" ] },
      "画报": { "include": [ "magazine" ] }
    }
  },
  {
    "sentence": "在 我 去 学校 的 时候, 他 去 中国。",
    "meaning": "Когда я пошел в школу, он поехал в Китай.",
    "words": {
      "": { "define": "When <A...>", "pinyin": "zai4" },
      "": { "include": [ "possessive" ] },
      "时候": { "define": "<A...>, <B...>", "pinyin": "shi2 hou4" },
      "": { "include": [ "school" ] },
      "": { "excludeWord": true },
      "": { "excludeWord": true },
      "": { "excludeWord": true },
      "中国": { "excludeWord": true }
    }
  }
]

Readme

Keywords

none

Package Sidebar

Install

npm i hunzhongwen

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

220 kB

Total Files

16

Last publish

Collaborators

  • handicraftsman