[XeTeX] DVIasm

Philip Taylor P.Taylor at Rhul.Ac.Uk
Mon Feb 8 08:37:43 CET 2016


P.S.  Experimenting against both versions, I found that what Python 3
detected as syntax errors in the Version 2 source prevented the test
from ever being evaluated, but the following three changes allow the
diagnostic to be issue correctly for both Python 2 and Python 3 :

def BadDVI(msg):
  raise AttributeError, 'Bad DVI file: %s!' % msg

->

def BadDVI(msg):
  raise (AttributeError, 'Bad DVI file: %s!' % msg)


      if q <= 0 or q >= 01000000000:
        warning("%s---not loaded, bad scale (%d)!" % (n, q))
      elif d <= 0 or d >= 01000000000:

->

      if q <= 0 or q >= 512:
        warning("%s---not loaded, bad scale (%d)!" % (n, q))
      elif d <= 0 or d >= 512:

** Phil.


More information about the XeTeX mailing list