Defining the Language and Territory

Implementing Globalization and Bidirectional Support 23-9

23.4 Bidirectional Support

Bidirectional support enables you to design applications in those languages whose natural writing direction is right to left, such as Middle Eastern and North African languages. Bidirectional support enables you to control: ■ Layout direction, which includes displaying items with labels at the right of the item and correct placement of check boxes and radio buttons. ■ Reading order, which includes text direction for example, right to left or left to right . ■ Alignment, which includes switching point-of-origin from upper left to upper right. When you are designing bidirectional applications, you might want to use the globalization support environment variables DEVELOPER_NLS_LANG and USER_NLS_ LANG rather than inheriting the NLS_LANG settings. For example, if you want to use an LITHUANIAN ISO-8859-4, ISO-8859-13, windows-1257, UTF-8 MALAY ISO-8859-1, ISO-8859-15, windows-1252, UTF-8 MALAYALAM UTF-8 MARATHI UTF-8 MEXICAN SPANISH ISO-8859-1, ISO-8859-15, windows-1252, UTF-8 NORWEGIAN ISO-8859-1, ISO-8859-15, windows-1252, UTF-8 ORIYA UTF-8 POLISH ISO-8859-2, windows-1250, UTF8 PORTUGESE ISO-8859-1, ISO-8859-15, windows-1252, UTF-8 PUNJABI UTF-8 ROMANIAN ISO-8859-2, windows-1250, UTF-8 RUSSIAN ISO-8859-5, windows-1251, KOI8-R, UTF-8 SIMPLIFIED CHINESE GBK, GB18030, UTF-8 SLOVAK ISO-8859-2, windows-1250, UTF-8 SLOVENIAN ISO-8859-2, windows-1250, UTF-8 SPANISH ISO-8859-1, ISO-8859-15, windows-1252, UTF-8 SWEDISH ISO-8859-1, ISO-8859-15, windows-1252, UTF-8 TAMIL UTF-8 TELUGU UTF-8 THAI TIS-620, UTF-8 TRADITIONAL CHINESE Big5, Big5-HKSCS, UTF-8 TURKISH ISO-8859-9, windows-1254, UTF-8 UKRANIAN ISO-8859-5, windows-1251, KOI8-U, UTF-8 VIETNAMESE windows-1258, UTF-8 Table 23–2 Cont. Valid Values for the IANA-Defined Character Sets Languages Valid IANA-Defined Character Sets 23-10 Publishing Reports to the Web with Oracle Reports Services American interface while developing an Arabic application in a Windows environment, then set these environment variables as follows: DEVELOPER_NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256 USER_NLS_LANG=ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256 Note that, in this example, the DEVELOPER_NLS_LANG environment variable uses an Arabic character set. For more information, refer to Section 23.2, Globalization Support Environment Variables . On UNIX, you may continue to see misalignment of right-aligned text in PDF output for languages that read right to left. To work around this issue, use fixed width fonts instead of variable width fonts. For example, Miriam Fixed True Type font Hebrew is a fixed width font available on Windows 2000, and can be used for font subsetting on UNIX platforms to correct any font alignment issues with Hebrew fonts. For more information about resolving font issues across different platforms, see Chapter 12, Font Model and Cross-Platform Deployment .

23.4.1 Enhanced BIDI Reshaping

Oracle Reports 11g Release 1 11.1.1 has introduced a new Enhanced BIDI reshaping mechanism using the XDO APIs. This feature uses a new environment variable, REPORTS_ENHANCED_BIDIHANDLING, which specifies whether or not to use the new BIDI reshaping mechanism. You must set the value of this environment variable to YES if you want to use the new enhanced BIDI algorithm. If you do not set the environment variable, or if you set the value of the environment variable to NO, it uses the old mechanism. If you set the value of REPORTS_ENHANCED_BIDIHANDLING to YES: ■ All the values that were supported in the old BIDI reshaping mechanism are supported for REPORTS_ARABIC_NUMERAL environment variable. ■ The following values are supported for REPORTS_BIDI_ALGORITHM environment variable: – UNICODE – ORACLE – UNICODE_VARIANT ■ The default value is UNICODE. For more information on how to use this environment variable, see Section B.1.46, REPORTS_ENHANCED_BIDIHANDLING .

23.5 Unicode

Unicode is a global character set that allows multilingual text to be displayed in a single application. This enables multinational corporations to develop a single multilingual application and deploy it worldwide. Global markets require a character set that: ■ Allows a single implementation of a product for all languages, yet is simple enough to be implemented everywhere. ■ Contains all major living scripts. ■ Supports multilingual users and organizations. ■ Enables worldwide interchange of data through the Internet.