从日语文本生成Anki牌组
jankigen的Python项目详细描述
詹基根
从日语文本生成Anki牌组
功能
- CLI和GUI
- 从目录生成数据组
- 从单个文本文件生成deck
- 卡片顺序被无序排列以防止文本理解(默认情况下启用)
- 汉字卡和单词卡
- 汉字卡的顺序是在相应的字卡之前
- 自定义用户词典
限制/已知问题
- 它是slooow(我正在使用的一些库不适合这个目的,有很多工作要做)
要求
- Python 3.7+
安装
pip install jankigen
示例命令:
^{pr2}$
jankigen --help
usage: jankigen [-h] [--disable_shuffle_card [DISABLE_SHUFFLE_CARD]] [--enable_deck_per_text_file [ENABLE_DECK_PER_TEXT_FILE]]
[--disable_gen_global_deck_for_all_files [DISABLE_GEN_GLOBAL_DECK_FOR_ALL_FILES]]
[--user_dict USER_DICT] [--user_dict_en USER_DICT_EN]
path
Generate anki deck from file
positional arguments:
path File or directory with text files
optional arguments:
-h, --help show this help message and exit
--disable_shuffle_card [DISABLE_SHUFFLE_CARD]
Shuffles cards to prevent text understanding/spoiler
--enable_deck_per_text_file [ENABLE_DECK_PER_TEXT_FILE]
If searching in a directory, create an anki file for each text file found
--disable_gen_global_deck_for_all_files [DISABLE_GEN_GLOBAL_DECK_FOR_ALL_FILES]
Generate a global deck for all text files
--user_dict USER_DICT
Simplified janome dictionary. A csv file as <surface form>,<part-of-speech>,<reading>
--user_dict_en USER_DICT_EN
Match entries of user_dict with corresponding translations. <surface
form>,<reading>,<english_translation>
构建
python presetup.py
python setup.py sdist
标签:
- 项目
jankigen --help
usage: jankigen [-h] [--disable_shuffle_card [DISABLE_SHUFFLE_CARD]] [--enable_deck_per_text_file [ENABLE_DECK_PER_TEXT_FILE]]
[--disable_gen_global_deck_for_all_files [DISABLE_GEN_GLOBAL_DECK_FOR_ALL_FILES]]
[--user_dict USER_DICT] [--user_dict_en USER_DICT_EN]
path
Generate anki deck from file
positional arguments:
path File or directory with text files
optional arguments:
-h, --help show this help message and exit
--disable_shuffle_card [DISABLE_SHUFFLE_CARD]
Shuffles cards to prevent text understanding/spoiler
--enable_deck_per_text_file [ENABLE_DECK_PER_TEXT_FILE]
If searching in a directory, create an anki file for each text file found
--disable_gen_global_deck_for_all_files [DISABLE_GEN_GLOBAL_DECK_FOR_ALL_FILES]
Generate a global deck for all text files
--user_dict USER_DICT
Simplified janome dictionary. A csv file as <surface form>,<part-of-speech>,<reading>
--user_dict_en USER_DICT_EN
Match entries of user_dict with corresponding translations. <surface
form>,<reading>,<english_translation>
python presetup.py
python setup.py sdist
标签: