Optimizing Text


Overview Introduction Background Pictures Sound Movies Text General


The new version of Apple Media Tool, version 2.0, supports RTF text. This is a well known format and most of the current word-processors allow you to save your documents in this format. RTF is not a very well optimized format to load, but it is has a very rich feature set. When you have a very large text document, let's say bigger then 32,000 characters, you will notice that the loading of the media will take some time, yes even on your 150 Mhz PowerPC 9500. It is not the loading that takes time but analyzing the RTF format. What can we do about this?


text [1]: Different format for Mac Only Title.


If you are building a MacOS only title and your text doesn't need hyperlinks and has only one font style, then save your text as Text only or Simple Text or use the old format of AMT 1.2. These formats load very fast.

text [2]: File Type 'RTF '.


Set the file type of your text media to 'RTF '. AMT supports different formats on the MacOS platform. When it opens a text document it has to check what kind of text document it is. The check process involves opening and closing several times your text document, but when you set the file type to 'RTF ', AMT immediately knows what it is dealing with. You can change the file type of your document with several third party tools like ResEdit, etc. I personally use FileTyper; it is a Shareware application and supports drag and drop.

If you want to check the filetype of your document and you don't have a program like FileTyper, there is a simple trick: go to the Finder, do Find (cmd-F), and then choose file type as search criteria. Now drag your document to the fill-in box. You will notice that a 4 letter word appears; this is the file type of your document.


figure 13: Find TEXT filetype

text [3]: Optimize RTF file.


Don't create it on a computer with hundreds of fonts installed because they will all end up in the font table of the RTF file and have to be read. AMT only uses a subset of the RTF codes. If you open an RTF file without translation you can see these codes and modify them as you wish. Take a look at the raw RTF file and get rid of anything that isn't used by AMT. See Mark Fleming's FTP site for a list of the RTF codes that are used. Mark Fleming also made available on his ftp site an application " RTFCleaner.v1.0" It will attempt to remove unused RTF statements to save space and time when AMT titles read the file. Note: It will leave "{}" that are unused when it remove some statements. And it does not remove unused fonts.

text [4]: Splitting up your Text document.


You can split up your document into different documents. At the end of each document, you can create a hyperlink button to the next part of the document. The AMT command for the hyperlink can be "go to" another screen, where we placed the next document.

Or you could consider not to use scrollBars in your document and split up your text so that they fit nicely in your text frame. Then use next and previous buttons to walk through your text.

You will see later on that with Switch Media Techniques we can do better.


text [5]: Use SetText Command.


Imagine you have a very small text item and you have to change its text regularly. You can, of course, create for each text a separate text document and then use the hide and show command to bring up the right text. But in AMT 2.0 there is the SetText command, which allows you to the change the contents of a text object.

Resources

RTF_Cheater.txt This document, created by Jan Costenbader, you can find on Mark Fleming's ftp site. This document describes briefly all the symbols available in the RTF format. ftp://ftp.ccs.queensu.ca/pub/macintosh/amt2.0/
ftp://ftp.primate.wisc.edu/pub/RTF/ This directory contains RTF Tools, software for performing RTF document conversion, as well as copies of the Microsoft RTF Specification documents.

Tools

FileTyper v4.2.2 Is a Shareware Drag and Drop application that allows you to change File attributes, like for example the FileType. It allows you to "change all" when you drag a group of documents on the application.
CTC 2.1 Change Type & Creator freeware application from Mark Fleming. ftp://ftp.ccs.queensu.ca/pub/macintosh/Mark_Translators/ctcV2.1.sit.hqx
RTFCleaner.v1.0.1 An application from Mark Fleming, it will attempt to remove unused RTF statements to save space and time when AMT titles read the file. ftp://ftp.ccs.queensu.ca/pub/macintosh/amt2.0/UtilApps_MPW/RTFCleaner.v1.01.sit.hqx
Convert2rtf An AppleScript for Batch convertion of WordProcessing documents to RTF documents from Mark Fleming. ftp://ftp.ccs.queensu.ca/pub/macintosh/amt2.0/UtilApps_ MPW/Convert2rtf.sit.hqx