summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/xcharter/altone.py
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/fonts/xcharter/altone.py')
-rwxr-xr-xMaster/texmf-dist/doc/fonts/xcharter/altone.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/fonts/xcharter/altone.py b/Master/texmf-dist/doc/fonts/xcharter/altone.py
index f2a255a3691..0f89240d09c 100755
--- a/Master/texmf-dist/doc/fonts/xcharter/altone.py
+++ b/Master/texmf-dist/doc/fonts/xcharter/altone.py
@@ -5,6 +5,13 @@ import os, sys
# Run this in the root directory containing afm files and a texmf branch
# Before running, all encoding files a_* should be renamed to xch_*
# and the corresponding changes applied to xcharter.map
+t2aligs='''% LIGKERN hyphen hyphen =: endash ; endash hyphen =: emdash ;
+% LIGKERN quoteleft quoteleft =: quotedblleft ;
+% LIGKERN quoteright quoteright =: quotedblright ;
+% LIGKERN comma comma =: quotedblbase ; less less =: guillemotleft ;
+% LIGKERN greater greater =: guillemotright ;
+% LIGKERN f f =: ff ; f i =: fi ; f l =: fl ; ff i =: ffi ; ff l =: ffl ;
+'''
encfiles=set()
enclst=[]
enclstt1=[]
@@ -32,7 +39,7 @@ with open(tmfv+"/fonts/map/dvips/xcharter/XCharter.map",'r') as f:
h=tmp[5][1:-4] # psfile, without .pfb or <
a=tmp[0][:-6] # name of vf
vflst.append(a)
- s="/usr/texbin/afm2tfm "+h+" -T "+tmfv+"/fonts/enc/dvips/xcharter/"+enc+" -v "+a+" "+tmp[0]
+ s="/Library/TeX/texbin/afm2tfm "+h+" -T "+tmfv+"/fonts/enc/dvips/xcharter/"+enc+" -v "+a+" "+tmp[0]
afmcmds.append(s)
encfilest1=set(enclstt1)
@@ -77,7 +84,7 @@ with open(tmfv+"/fonts/map/dvips/xcharter/XCharter.map",'r') as f:
if a[-6:]=="--base":
a=tmp[0][:-6] # name of vf
vflst.append(a)
- s="/usr/texbin/afm2tfm "+h+" -T "+tmfv+"/fonts/enc/dvips/xcharter/"+enc+" -v "+a+" "+tmp[0]
+ s="afm2tfm "+h+" -T "+tmfv+"/fonts/enc/dvips/xcharter/"+enc+" -v "+a+" "+tmp[0]
afmcmds.append(s)
#print newlines
@@ -92,6 +99,7 @@ for f in sorted(encfiles):
tmp=tmp.replace("AutoEnc","AutoEnc1")
tmp=tmp.replace("one.oldstyle","one.Alt.oldstyle")
with open(tmfv+"/fonts/enc/dvips/xcharter/"+f,'w') as g:
+ g.write(t2aligs)
g.write(tmp)
#Finally, write the afmcmds and update mapfile
@@ -100,7 +108,7 @@ for j in range(len(vflst)):
s=afmcmds[j]
print s
if os.system(s)==0:
- if os.system("/usr/texbin/vptovf "+a)==0:
+ if os.system("vptovf "+a)==0:
os.system("/bin/mv -f "+a+".tfm "+tmfv+"/fonts/tfm/public/xcharter")
os.system("/bin/mv -f "+a+"--base.tfm "+tmfv+"/fonts/tfm/public/xcharter")
os.system("/bin/mv -f "+a+".vf "+tmfv+"/fonts/vf/public/xcharter")