TextCruncher Xtra TEXTCRUNCHER XTRA HELP: LIMITATIONS IN DIRECTOR 11  
 

- IMPORTANT: TextCruncher is available for Director 11, in order to allow distribution and upgrade of legacy content. However, Director 11 uses a different string encoding (Unicode, specifically UTF8) in all internal string representations. As a result of this change, several functions of TextCruncher are no longer relevant, and have been deprecated or superseded by built-in commands.

 

As a general rule, existing projects that do not use high-ascii characters (ã, é, ç, ú) should continue to work fine, and no changes are needed. TextCruncher will also continue to work as fast as possible to search, replace and scan internal string data, as no conversions are done.

 

- The functions TextToUpperCase and TextToLowerCase have been deprecated in D11. You can substitute them by built-in JavaScript functions in Director, and these will work correctly with high-ascii and Unicode characters as well. To do this, paste the following handlers in a JavaScript movie script member of your movie:


function TextToUpperCase(sometext) {
return sometext.toUpperCase() ;
}

function TextToLowerCase(sometext) {
return sometext.toLowerCase() ;
}

 

Do not forget to set the movie script type to "JavaScript".

 

- The built-in JavaScript functions escape and unescape can be used to replace the deprecated TC_URLEncode and TC_URLDecode functions, and work correctly with UTF8 data.

 

- SetCaseSensitivity should be set to "TRUE" in D11 for most applications. Conversion between high-ascii characters in Unicode is expensive and slow, and should generally be avoided unless you are only working with English or non-accented character strings.

 

- Older limitations of the Xtra still apply. See this page for more information.