add UnicodeEngine (MultiEngineText and axis texters returning MultiEngineText), texte...
[PyX.git] / contrib / dvitype.py
bloba2568311753ffbe59c2628e5e38f5551d12445bb
1 #!/usr/bin/env python
2 # -*- encoding: utf-8 -*-
5 # Copyright (C) 2005-2011 André Wobst <wobsta@users.sourceforge.net>
7 # dvitype is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # epstopng is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with epstopng; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 from optparse import OptionParser
22 from pyx import version
23 from pyx.dvi import dvifile
25 parser = OptionParser(usage="usage: %prog dvi-file",
26 version="%prog " + version.version)
27 (options, args) = parser.parse_args()
28 if len(args) != 1:
29 parser.error("can process a single dvi-file only")
31 df = dvifile.DVIfile(args[0], debug=True)
32 while df.readpage():
33 pass