Just | 6cc5887 | 1999-12-16 22:04:30 +0000 | [diff] [blame^] | 1 | TTX/TTLib 1.0a5 |
| 2 | |
| 3 | |
| 4 | You 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 | |
| 46 | Oof. Almost there. Now run the "install.py" script from the TTX archive. |
| 47 | This 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 | |
| 50 | Additional Mac instructions: |
| 51 | De-binhex "TTX.rsrc.hqx" by dropping it onto StuffIt expander. (Or use your |
| 52 | own preferred method ;-) |
| 53 | The "TTX.py" script included in this archive is the Mac-only main program: |
| 54 | Drop it onto the "BuildApplet" app inside the Python folder; this will |
| 55 | produce the TTX applet. |
| 56 | |
| 57 | For Unix and DOS I've provided two command line programs: |
| 58 | - tt2xml.py |
| 59 | - xml2tt.py |
| 60 | They do pretty much what you'd expect. They take one or two arguments: an input |
| 61 | file name and optionally an output file name. |
| 62 | If you don't provide an output file name, an output file name will be contructed |
| 63 | from the input file name: foo.ttf becomes foo.xml in tt2xml.py and vice versa |
| 64 | for xml2tt.py. WARNING: these tools will silently overwrite existing files! |
| 65 | Adam Twarloch contributed a Windows registry file (ttffile.reg) which |
| 66 | makes the two obove tools available under the Right Mouse Button. You will |
| 67 | need to edit the paths in this file according to your installation: the |
| 68 | file is just an example! Ideally the correct file could be generated by |
| 69 | the install.py script. |
| 70 | |
| 71 | To learn more about using TTLib, read the comments and documentation in |
| 72 | TTLib/ttlib/__init__.py; to learn more about writing table converters, read |
| 73 | TTLib/ttlib/tables/table_API_readme.txt. |
| 74 | |
| 75 | That's it so far! Thanks for your efforts, it's much appreciated. If you |
| 76 | encounter any problems, or if you have any questions, be sure to let me know: |
| 77 | just@letterror.com. Oh, I'd be happy to hear success stories, too... |
| 78 | |
| 79 | Just |