Technical data

Nonprivileged users can perform write operations on their private
databases. Only the superuser can perform write operations on the
system-wide database.
B.3 Using a Phrase Database
How you use a phrase database depends on whether you are using the
hardware input method or the SIM service.
B.3.1 Phrase Input Supported Through the SIM Service
You use the SIM service on the traditional and simplified Chinese terminals
or in a terminal emulation window on a workstation.
Before you can use a phrase database through SIM service, you must use
the stty command to perform the following tasks:
Make sure your locale is set to one that supports the appropriate Asian
codeset and that your terminal line discipline is set to adec
Start the SIM service with the following command
% stty sim
Define the key sequence for toggling in and out of phrase input mode
The following example sets this key sequence to be Ctrl/b:
% stty simkey Ctrl/b
Define a key sequence that you do not already use at the command line
or in other applications. For example, do not define the key sequence to
be Ctrl/c (abort operation) or Ctrl/z (suspend operation).
If you do not want to use phrases from the class Default or from your default
phrase database, use the stty command to peform the following tasks:
Specify the phrase class that the SIM service or specialized terminal
software will use to interpret phrase codes. For example:
% stty simclass CORP
Specify the database that specialized terminal software will access
The SIM service always searches your private phrase database first
for a phrase name and, if the name is not found, then searches the
system-wide phrase database. However, terminals that support the
hardware phrase input method can load phrases from only one database
at a time. Therefore, a nonprivileged user using the terminal hardware
input method might enter the following command:
% stty simdb /var/i18n/sim
Phrase Utility B–7