Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 876 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 876 Bytes

wordtree.js

An implementation of wordtree in Raphaël SVG + jQuery + python. The testapp is written on python webapp framework and is already deployed on wordtreejs.appspot.com

How-to

  1. Make an input file with a phrase on each line.

  2. Generate the input JSON tree with jsontree.py by command-line:

    $ python jsontree.py

    or

    Generate the input JSON tree with the jsonFromTree function on jsontree.py, passing a list of strings and a word as parameter

  3. Make a html div named "wordtree"

  4. Run jsonFromTree with the json tree as the first arg and the root word as the second.

TODO

  • make the options and parameters be read from CSS
  • fix the SVG canvas size
  • fix the textsize
  • test it!