matplotlib.dviread
index
/astro-wise/AWEHOME/x86_64/AWBASE/common/lib/python2.5/site-packages/matplotlib/dviread.py

An experimental module for reading single-page dvi files output by
TeX. Several limitations make this not (currently) useful as a
general-purpose dvi preprocessor. The idea is that the file has a
single page with only a single formula or other piece of text.
 
Interface:
 
   dvi = Dvi(filename)
   dvi.read()
   text, boxes = dvi.output(72)
   for x,y,font,glyph in text:
       fontname, pointsize = dvi.fontinfo(font)
       ...
   for x,y,height,width in boxes:
       ...

 
Modules
       
os
struct

 
Classes
       
__builtin__.object
Dvi
Tfm

 
class Dvi(__builtin__.object)
     Methods defined here:
__init__(self, filename)
arg(self, nbytes, signed=False)
bop(self, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, p)
dispatch(self, byte)
down(self, a)
down_y(self, new_y)
down_z(self, new_z)
eop(self)
fnt_def(self, k, c, s, d, a, l, n)
fnt_num(self, k)
fontinfo(self, f)
Name and size in (Adobe) points.
nop(self)
output(self, dpi)
Return lists of text and box objects transformed into a standard
Cartesian coordinate system at the given dpi value. The coordinates
are floating point numbers, but otherwise precision is not lost and
coordinate values are not clipped to integers.
pop(self)
post(self)
post_post(self)
pre(self, i, num, den, mag, comment)
push(self)
put_char(self, char)
put_rule(self, a, b)
read(self, debug=False)
right(self, b)
right_w(self, new_w)
right_x(self, new_x)
set_char(self, char)
set_rule(self, a, b)
xxx(self, special)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Tfm(__builtin__.object)
     Methods defined here:
__init__(self, filename)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        dvistate = <matplotlib.cbook.Bunch instance at 0xa4c8c0>