changed some variable names.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@12 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
e4d59426c5
commit
a7b9f2919e
12
tt2xml.py
12
tt2xml.py
@ -32,14 +32,14 @@ for option, value in options:
|
||||
|
||||
|
||||
if len(args) == 1:
|
||||
ttpath = args[0]
|
||||
name, ext = os.path.splitext(ttpath)
|
||||
xmlpath = name + '.xml'
|
||||
ttPath = args[0]
|
||||
name, ext = os.path.splitext(ttPath)
|
||||
xmlPath = name + '.xml'
|
||||
elif len(args) == 2:
|
||||
ttpath, xmlpath = args
|
||||
ttPath, xmlPath = args
|
||||
else:
|
||||
print __doc__ % sys.argv[0]
|
||||
sys.exit(2)
|
||||
|
||||
tt = ttLib.TTFont(ttpath, verbose=verbose)
|
||||
tt.saveXML(xmlpath, tables=tables)
|
||||
tt = ttLib.TTFont(ttPath, verbose=verbose)
|
||||
tt.saveXML(xmlPath, tables=tables)
|
||||
|
12
ttDump.py
12
ttDump.py
@ -32,14 +32,14 @@ for option, value in options:
|
||||
|
||||
|
||||
if len(args) == 1:
|
||||
ttpath = args[0]
|
||||
name, ext = os.path.splitext(ttpath)
|
||||
xmlpath = name + '.xml'
|
||||
ttPath = args[0]
|
||||
name, ext = os.path.splitext(ttPath)
|
||||
xmlPath = name + '.xml'
|
||||
elif len(args) == 2:
|
||||
ttpath, xmlpath = args
|
||||
ttPath, xmlPath = args
|
||||
else:
|
||||
print __doc__ % sys.argv[0]
|
||||
sys.exit(2)
|
||||
|
||||
tt = ttLib.TTFont(ttpath, verbose=verbose)
|
||||
tt.saveXML(xmlpath, tables=tables)
|
||||
tt = ttLib.TTFont(ttPath, verbose=verbose)
|
||||
tt.saveXML(xmlPath, tables=tables)
|
||||
|
Loading…
x
Reference in New Issue
Block a user