rewrite smoother to make use of the subnormpath facilities
[PyX/mjg.git] / faq / tipa.py
blob532cb9e1672b44612d88a04a265e74dc48653a8a
1 import sys
2 sys.path.insert(0, "..")
3 from pyx import *
5 text.set(mode="latex", docclass="scrartcl", docopt="11pt", fontmaps="tipa.map")
6 text.preamble(r"\usepackage{tipa}")
7 c = canvas.canvas()
8 c.text(0, 0, r"\textipa{[%s]}" % sys.argv[1])
9 c.writePDFfile("tipa%s.pdf" % sys.argv[2], bboxenlarge=0)