Changes

Jump to navigation Jump to search
35 bytes removed ,  07:17, 30 May 2006
improved Python script
== The python script ==
Ok, I am not a programmer, so this could probably be done in a cleaner way. However, it works for me.
(A bit enhanced/modernized now...)
<pre>
#!/usr/bin/python
import os, string
# Set these paths to what they should be in your case
mapfile="/home/texlive2004/texmf-dist/fonts/map/dvips/cm-super/cm-super-t2a.map"
encfile="cm-super-t2a.enc"
tfmoutdir="/home/texlive2004/texmf-dist/fonts/tfm/public/cm-super/"
f=openfile(mapfile, 'rrU')
# First read a line that is a comment.
rest=f.readlines()
for currentline in rest:
splitspace=stringcurrentline.split(currentline," ")
tfmname=splitspace[0]
afmname=string.lower(splitspace[1].lower() commandtorun="afm2tfm " + afmname + "%s.afm -T %s %s%s.tfm" + % (afmname, encfile + " " + , tfmoutdir + , tfmname + ".tfm")
print "Running: " + commandtorun
os.popen(commandtorun)

Navigation menu