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
-
Make an input file with a phrase on each line.
-
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
-
Make a html div named "wordtree"
-
Run jsonFromTree with the json tree as the first arg and the root word as the second.
- make the options and parameters be read from CSS
- fix the SVG canvas size
- fix the textsize
- test it!