Mingzefei / typinglearner-vocab-convert

scripts for converting Typing Learning Vocabulary(json) into pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

scripts for converting Typing Learning Vocabulary(json) into pdf

NOTE: There's a bug for Chinese html2pdf unfixed.

NOW: json2html works well, and the output HTML file can be printed.

test1

Quickstart

  • requires Python3 and json, pandas
pip install json
pip install pandas
  • run json2html.py
python json2html.py -i ./test/test1.json -o ./test/test1.html

Argv:

  • -h : print help
  • -i : Vocabulary path
  • -o : output HTML path
  • -c : HTML table columns, default value,ukphone,translation, split by ,
  • -hd: head of HTML, like -hd my\ words or -hd 'my words', default the Vocabulary path

avalible columns: value, usphone, ukphone, definition, translation, bnc, frq

If input columns are not in the list above, table adds new BLANK columns.

About

scripts for converting Typing Learning Vocabulary(json) into pdf


Languages

Language:HTML 85.4%Language:Python 14.6%