Skip to content

scripts for converting Typing Learning Vocabulary(json) into pdf

Notifications You must be signed in to change notification settings

Mingzefei/typinglearner-vocab-convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published