beautypg.com

Multilanguage text – Adobe Flash Professional CC 2014 v.13.0 User Manual

Page 295

background image

Multilanguage text

To the top

About multilanguage text
Creating multilanguage text
XML file format for multilanguage text
Multilanguage text and ActionScript

About multilanguage text

You can configure a FLA file to display text in different languages depending on the language of the operating system that plays the Flash
Professional content.

Multilanguage text in Flash

You can include multilanguage text in your document in the following ways:

(Deprecated with Flash Professional CC) The Strings panel lets localizers edit strings in a central location in Flash Professional or in external
XML files with their preferred software or translation memory. Flash supports multiline strings in both the Strings panel and the XML files.

Select which character sets to embed in your applications, which limits the number of character glyphs in your published SWF file and
reduces its size.

Use a Western-style keyboard to create text on the Stage in Chinese, Japanese, and Korean.

If you have Unicode fonts installed on your system, enter text directly into a text field. Because the fonts are not embedded, your users must
also have Unicode fonts.

Other, less common methods of including multilingual text in your Flash Professional documents include the following:

Include an external text file in a dynamic or input text field by using the #include action.

Load external text or XML files into a Flash Professional application at runtime by using the loadVariables or getURL actions, or the LoadVars
or XML objects.

Enter Unicode escape characters in the string value for a dynamic or input text field variable.

Create an embedded font as a symbol in your Library.

For Unicode-encoded text to appear correctly, users must have access to fonts containing the glyphs (characters) used in that text.

For a sample of multilingual content, see the Flash Samples page at

www.adobe.com/go/learn_fl_samples

. Download and decompress the

Samples zip file and navigate to the Text\MultilingualContent folder to access the sample.

About fonts for Unicode-encoded text

When you use external files that are Unicode encoded, your users must have access to fonts containing all the glyphs used in your text files. By
default, Flash Professional stores the names of fonts used in dynamic or input text files. During SWF file playback, Flash Player 7 (and earlier
versions) looks for those fonts on the operating system running the player.

If the text in a SWF file contains glyphs that the specified font does not support, both Flash Player 7 and Flash Player 8 attempt to locate a font on
the user’s system that supports those glyphs. The player cannot always locate an appropriate font. This behavior depends on the fonts available
on the user’s system, as well as on the operating system running Flash Player.

XML font embedding table

When you select ranges of fonts to embed in a FLA file, Flash Professional uses the UnicodeTable.xml file to determine which characters to
embed. The UnicodeTable.xml file contains ranges of characters required for various languages and resides in the user configuration folder of
your computer. The file is located in the following directories:

Windows: \Documents and Settings\\Local Settings\Application
Data\Adobe\Flash\\Configuration\FontEmbedding\

Macintosh: /Library/Application Support/Adobe/Flash //Configuration/FontEmbedding/

The font set groupings are based on the Unicode Blocks as defined by the Unicode Consortium. To provide a simpler workflow, when you select a
particular language, all related glyph ranges are embedded even if they are scattered into disjointed groupings.

For example, if you select Korean, the following Unicode character ranges are embedded:

288