Adobe 65007312 Programming Guide - Page 146
ZString characters and escape sequences, Sequence, Replacement
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 146 highlights
CHAPTER 7: Using ZStrings for Localization ZString format 146 Like any Lua string, ZStrings can be enclosed in single or double quotes. For example: LOC "$$$/MyPlugin/Dialogs/Description/sectionName=Description" LOC '$$$/MyPlugin/Dialogs/Description/Title=Document Title:' ZString characters and escape sequences ZStrings in code should consist entirely of low-ASCII characters. The key should only contain characters in the set "a-ZA-Z0-9/". The value can contain any low-ASCII character. X ZStrings allow some common non-low-ASCII characters to be substituted for escape sequences in the strings. For example, the sequence ^T includes the trademark symbol (™) in that location in the resulting string. X The general-purpose sequence ^U encodes any arbitrary Unicode character by its code point, in the form ^U+1234. X An escape sequence with a number is a replacement point.; the sequence to be replaced by another string supplied as an additional argument to LOC(); see "The LOC function" on page 147. These substitution sequences are recognized: Sequence ^r ^n ^B ^C ^D ^I ^R ^S ^T e ^E Replacement carriage return line feed bullet copyright degree increment registered trademark n-ary summation trademark not left single straight quote right single straight quote left double quote right double quote right single curly quote ellipsis ("...") Latin small e with acute accent Latin small e with circumflex