HP 9000 User Manual page 140

Computers
Hide thumbs Also See for 9000:
Table of Contents

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

Table of Contents
loading

Table of Contents