HP-UX 11i v3 International Printing Features

30
Language, codeset, and locale aliases
Setup macros
Unicode character language font mapping sequence
Default Unicode bidirectional algorithm state
Iconv galley characters and custom conversions
All the fonts defined in the configuration files are associated with a language tag, which is simply the
language and territory part of the locale name (for example, en_US or ja_JP). When printing non-
Unicode characters, only the fonts associated with the language tag of the current locale are used. If
the current language tag is not one that is defined within the configuration files, it defaults to the
en_US language tag.
When printing Unicode characters, however, all fonts that are associated with different language tags
can be used. In these instances, the Unicode character language-font mapping sequence is useful. It
determines the sequence of language-tag associated fonts that are checked for whether they have the
glyph for a given Unicode character.
Typically, a locale-specific configuration file defines the Unicode character language-font mapping
sequence. It might also define the default Unicode bidirectional algorithm state, which can be on or
off by default.
These are the reasons why the recommended way to provide codeset information to the psfontpf
print filter is by passing the right locale name. If you need to print out characters in a codeset that is
not supported by any of the HP-UX locales, but the corresponding codeset-to-Unicode converters exist,
the codeset name can be explicitly specified in the command line. Even in this case, it is helpful to
provide a locale name to designate the language tag to be used.
For Unicode text that is prefixed by a Unicode Byte Ordering Mark (BOM – U+FEFF), the psfontpf
print filter can automatically detect the Unicode transformation format of the Unicode text. If a BOM is
not there, user must explicitly state the Unicode transformation format name (for example, UTF-16BE).
User Options Supported by the psfontpf Print Filter
The psfontpf print filter accepts a large number of –o options supplied by the lp command to
modify its behavior. These options can be classified into two broad types:
A single keyword
A keyword-option pair (keyword=option)
Because the list of acceptable options is expanded by the inclusion of PPD and other user
customizations provided by the users when invoking the psmsgen tool, the list of all user options can
vary. Some options are specific to text printing, whereas others apply to both text and PostScript
printing. Table 9 and Table 10 describe all the built-in user options supported by the psfontpf print
filter, for text printing only and for both text and PostScript printing, respectively.
Table 9: Built-in Text Trinting Only psfontpf –o User Options
Feature Options Description
bidi=bvalue
Specifies the state of the Unicode bidirectional algorithm:
off – disable
on – right-to-left printing for lines begun with strong right-to-left
character
rtol – force right-to-left printing for all lines
auto – on for Unicode, off for other codesets (default)
Unicode algorithms
nform=NF
Specifies the Unicode normalization form to be used for Unicode text
data. The valid values are NFC (default), NFD, NFKC, NFKD or
None.
Page margins
bm=bottom-margin
tm=top-margin
lm=left-margin
Specifies the bottom, top, left, right, and page margins. Setting the
page margin sets the same value to all four side margins. The unit
can be in for inch (default), pt for point, cm, or mm.