Configuring for Unicode
To use Unicode in Uniface development and deployment, Unicode character fonts and input methods must be installed and Uniface must be correctly configured.
In a Unicode-based GUI platform such as Microsoft Windows, not all Unicode characters are enabled, because the total number of characters is too great. The Unicode characters that you want must be installed if they are not available.
There are many Unicode fonts available from which you can choose to install. Uniface does not know which font you want, so you must specify the desired font in Uniface’s .ini file.
To configure for Unicode In Microsoft Windows:
-
Copy the Unicode font file (for example, ARIALUNI.TTF) into the Windows Fonts directory.
As a result, the Windows Character Map shows the installed font in the Font list.
-
To set the Unicode font to the items
displayed on your desktop:
- Open Display in the Windows' Control Panel.
- On the Appearance tab, set the Unicode font in the Font field for the applicable item in the Item field, such as Active (Inactive) Title Bar, Menu, and Message Box.
This procedure varies with the versions of Windows. Refer to the Windows Help for the details.
With this setting, the Unicode characters in the form titles, menu items and tool tips in your Uniface application are displayed correctly.
-
Enable a set of characters and its input
method.
-
In Microsoft Windows, choose Regional
Options from the Control Panel to install the desired
language.
Refer to the Windows Help for the language installation.
-
In Regional Options, install the
Input Method Editor (IME).
Refer to the Windows Help for the input method installation.
After installation, a Language Bar containing the installed language appears in the right corner of the Windows Task Bar.
Note: This step is not required if you do not need to enter Unicode characters through the IME.
-
In Microsoft Windows, choose Regional
Options from the Control Panel to install the desired
language.
-
Use a Unicode-supported database and
database connector.
SQLite is Uniface’s default database on the Windows platform and it supports Unicode. For other databases, see the DBMS connector documentation. For more information, see Database Connectors.
-
Install Uniface.
During installation, there is a Character set selection screen. The language selected there does not effect the use of Unicode. In fact, Uniface simultaneously supports two character sets: Unicode and the one selected during installation.
-
Modify the .ini
file.
In the [SCREEN] section of the .ini file, replace the EditFont with the Unicode font.
For example:
EditFont=Arial Unicode MS,8,regular
Configure Uniface for Japanese Language Support
For example, in an English Windows 2000 installation, to configure Uniface for Japanese language support, do the following:
- Suppose, the Arial Unicode MS is the Unicode font. The file name for the Arial Unicode MS font is ARIALUNI.TTF. Paste the ARIALUNI.TTF file into the \WINNT\Fonts directory. As a result, Arial Unicode MS is installed.
- In the background of the Windows, from the
pop-up menu, select Properties to open the Display
Properties. In the Appearance tab, set Arial Unicode MS for each of
the following items in the Item field:
- Active Title Bar
- Icon
- Inactive Title Bar
- Menu
- Message Box
- Palette Title
- Selected Items
- Tool Tip
- If you need to input Japanese characters
through the IME, this step and step 4 are necessary.
In the General tab of Regional Options, select Japanese. Click Apply, and follow the interactive procedure to finish Japanese language installation.
- In the Input Locales tab of Regional Options, click Add. From the Input Locale drop-down list, select Japanese, and follow the interactive procedure to finish the input method installation.
- Install Uniface. In the Character set selection screen, select English.
- Replace the [SCREEN] section of the
usys.ini file with the following:
[SCREEN] Label=Arial Unicode MS,Western,8,regular HyperLabel=Arial Unicode MS,Western,8,underline MonoHuge=Arial Unicode MS,18,regular MonoLarge=Arial Unicode MS,12,regular MonoMedium=Arial Unicode MS,10,regular MonoSmall=Arial Unicode MS,8,regular MonoTiny=Arial Unicode MS,7,regular SansHuge=Arial Unicode MS,18,regular SansLarge=Arial Unicode MS,12,regular SansMedium=Arial Unicode MS,10,regular SansSmall=Arial Unicode MS,8,regular SansTiny=Arial Unicode MS,7,regular SerifHuge=Arial Unicode MS,18,regular SerifLarge=Arial Unicode MS,12,regular SerifMedium=Arial Unicode MS,10,regular SerifSmall=Arial Unicode MS,8,regular SerifTiny=Arial Unicode MS,7,regular TahomaSmall=Arial Unicode MS,8,regular TahomaMedium=Arial Unicode MS,9,regular TahomaLarge=Arial Unicode MS,11,regular VerdanaSmall=Arial Unicode MS,8,regular VerdanaMedium=Arial Unicode MS,9,regular VerdanaLarge=Arial Unicode MS,11,regular font0=Arial Unicode MS,Western,8,regular EditFont=Arial Unicode MS,Western,8,regular ListFont=Arial Unicode MS,Western,8,regular GFP=Arial Unicode MS,Western,8,regular ButtonFont=Arial Unicode MS,Western,8,regular combo=Arial Unicode MS,Western,8,regular debug=Arial Unicode MS,Western,8,regular buttons=Arial Unicode MS,Western,8,regular messagefont=Arial Unicode MS,Western,8,regular