blob: 214cb03d94bba1344e96be206fdc2f4796984999 [file] [log] [blame]
Just6cc58871999-12-16 22:04:30 +00001TTX/TTLib 1.0a5
2
3
4You need the following software to use TTX/TTLib:
5
6- Python 1.5.1 or newer 1.5.2. Version 1.5.2 is here:
7 http://www.python.org/1.5/
8
9 on Windows: grab the Windows installer, run the full install
10 on Un*x: follow the build instructions
11 on Linux: maybe you already *have* Python: check whether you have
12 version 1.5.1 or newer.
13 on MacOS: grab the installer, run "Easy Install"
14
15- The Numeric Python extension (you don't need this under MacOS, since it's
16 included with the MacPython installer).
17
18 The compiled Win32 version:
19 ftp://ftp-icf.llnl.gov/pub/python/LLNLDistribution.zip
20
21 The source distribution is here:
22 ftp://ftp-icf.llnl.gov/pub/python/LLNLDistribution.tgz
23
24 Included in this archive is a directory called "Numeric" (but do unzip
25 the whole archive, it's needed for the install script!).
26 On Linux or other Unices: follow the build instructions.
27
28 On Windows & Unix:
29 In the "Numeric" directory there is a script called "installthis.py".
30 If you've installed Python successfully, you can just run it, it will
31 install (copy!) the neccesary stuff to the Python directory all by itself.
32
33- xmlproc (a Python based XML parser) from:
34 http://www.stud.ifi.uio.no/~larsga/download/python/xml/xmlproc.html
35
36 I don't know the official install procedure, but the archive should contain
37 a directory called "xml", move that directory to the Python directory and
38 you should be all set. To make sure: start python (python.exe on Win32)
39 and type at the ">>>" prompt:
40
41 >>> import xml.parsers.xmlproc.xmlproc
42
43 followed by a return. If that doesn't cause an error, you're all set.
44
45
46Oof. Almost there. Now run the "install.py" script from the TTX archive.
47This will make sure Python knows where to find TTLib. It doesn't copy anything.
48(Note that the "install.py" script has only been lightly tested.)
49
50Additional Mac instructions:
51De-binhex "TTX.rsrc.hqx" by dropping it onto StuffIt expander. (Or use your
52own preferred method ;-)
53The "TTX.py" script included in this archive is the Mac-only main program:
54Drop it onto the "BuildApplet" app inside the Python folder; this will
55produce the TTX applet.
56
57For Unix and DOS I've provided two command line programs:
58 - tt2xml.py
59 - xml2tt.py
60They do pretty much what you'd expect. They take one or two arguments: an input
61file name and optionally an output file name.
62If you don't provide an output file name, an output file name will be contructed
63from the input file name: foo.ttf becomes foo.xml in tt2xml.py and vice versa
64for xml2tt.py. WARNING: these tools will silently overwrite existing files!
65Adam Twarloch contributed a Windows registry file (ttffile.reg) which
66makes the two obove tools available under the Right Mouse Button. You will
67need to edit the paths in this file according to your installation: the
68file is just an example! Ideally the correct file could be generated by
69the install.py script.
70
71To learn more about using TTLib, read the comments and documentation in
72TTLib/ttlib/__init__.py; to learn more about writing table converters, read
73TTLib/ttlib/tables/table_API_readme.txt.
74
75That's it so far! Thanks for your efforts, it's much appreciated. If you
76encounter any problems, or if you have any questions, be sure to let me know:
77just@letterror.com. Oh, I'd be happy to hear success stories, too...
78
79Just