From ea2cc3f762e7c6bcd663b2c724400e155882e4c4 Mon Sep 17 00:00:00 2001 From: Just Date: Wed, 19 Jan 2000 12:37:17 +0000 Subject: [PATCH] use ".ttx" extension instead of ".xml". TTX is now the name of the format, not just the app. Still needs work, though. git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@63 4cde692c-a291-49d1-8350-778aa11640f8 --- Mac/TTXMain.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Mac/TTXMain.py b/Mac/TTXMain.py index 5c0811b4a..5de03f049 100644 --- a/Mac/TTXMain.py +++ b/Mac/TTXMain.py @@ -100,7 +100,7 @@ class TTX(FrameWork.Application, MiniAEFrame.AEServer): if not os.path.exists(dstfolder): os.mkdir(dstfolder) srcfilename = dstfilename = os.path.basename(path) - if dstfilename[-4:] == ".xml": + if dstfilename[-4:] in (".ttx", ".xml"): dstfilename = dstfilename[:-4] if dstfilename[-4:] not in (".TTF", ".ttf"): dstfilename = dstfilename + ".TTF" @@ -126,7 +126,7 @@ class TTX(FrameWork.Application, MiniAEFrame.AEServer): return else: f.close() - pb = ProgressBar("Reading XML file '%s'..." % srcfilename) + pb = ProgressBar("Reading TTX file '%s'..." % srcfilename) try: tt = ttLib.TTFont() tt.importXML(path, pb) @@ -144,7 +144,7 @@ class TTX(FrameWork.Application, MiniAEFrame.AEServer): pb = ProgressBar("Dumping '%s' to XML..." % filename) if filename[-4:] in (".TTF", ".ttf"): filename = filename[:-4] - filename = filename + ".xml" + filename = filename + ".ttx" dst = os.path.join(dstfolder, filename) try: tt = ttLib.TTFont(path) @@ -173,7 +173,7 @@ class TTX(FrameWork.Application, MiniAEFrame.AEServer): if not resname: resname = filename + `i` pb = ProgressBar("Dumping '%s' to XML..." % resname) - dst = os.path.join(dstfolder, resname + ".xml") + dst = os.path.join(dstfolder, resname + ".ttx") try: tt = ttLib.TTFont(path, i) tt.saveXML(dst, pb)