Page of 234

HP 9000 User Manual Page 140

Computers.
Hide thumbs

Advertisement

Data order and mode (Latin vs. non-Latin) information is specified by the
LANGOPTS
environment variable. To set the
LANGOPTS
environment variable
using the Bourne or Korn Shell:
Where:
mode
order
LANGOPTS=
[mode] [_order]
export LANGOPTS
may be either
1
(for Latin) or n (for non-Latin). Non-Latin
mode is assumed for values other than
1
and n.
describes the data order of a file and may be either
k
(for
keyboard) or s (for screen) ..
For further details on the
LANGOPTS
environment variable, see
environ(5).
Since most printers are designed for printing left-to-right languages, printing
right-to-left data requires special formatting. The command
nljust
provides
this special formatting. It aligns such data with the right margin and composes
the data in right-to-left print order. For example,
nljust
would typically be
used as a filter with the
Ip
and
pr
commands, such as in:
pr file
I
nljust -
I
Ip
As with
forder, nljust
also gets mode and order information from the
LANGOPTS
variable.
For special situations that cannot be handled by data ordering commands, the
routine
strord
converts between screen order and keyboard order and can be
used to provide any special processing that may be needed. As a simplified
example, consider a program that reads data in either keyboard or screen
order, and writes it to a terminal in screen order. The relevant portions of the
program are:
Advanced NLS Topics 8·7
8

Advertisement

   Related Manuals for HP 9000

Comments to this Manuals

Symbols: 0
Latest comments: