![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Writing a bytecode interpreter (for TeX dvi files)
From: Andreas Lobinger <andreas.lobinger@netsurf.de>
Date: Fri May 27 2005 - 10:59:26 CEST
Aloha,
Jonathan Fine wrote:
As far as i know, dvi is a very straight forward format, commands
s = file('a.dvi','r').read() # read complete file to string
while s:
if command < 128:
You can work directly on strings, or convert to a list. If you don't
Wishing a happy day
|