tree2image

tree2image is a Python script that converts syntax trees to bitmap images. It can parse several different syntax tree formats, including treebank-style trees (delimited by parenthases or brackets) and LaTeX qtree-package trees. It can produce images using many different file formats, including gif, png, jpeg, and xbm. It has support for triangular roofs, subscripts, and superscripts. Several aspects of the output image (such as the font, spacing, and color) can be controlled with command-line arguments.

tree2.gif

I wrote tree2image for use by the x-render XEmacs mode, which can be used to render trees within an Emacs document (e.g., when editing a LaTeX document that contains qtrees).