Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

designate_character_set(3G)

text_switching_mode(3G)

NAME

text_switching_mode − select text character set designation and invocation mode

SYNOPSIS

C Syntax:

void text_switching_mode(fildes,mode);
int fildes,mode;

FORTRAN77 Syntax:

subroutine text_switching_mode(fildes,mode)
integer*4 fildes,mode

Pascal Syntax:

procedure text_switching_mode(fildes,mode:integer);

DESCRIPTION

Input Parameters

fildes Integer file descriptor returned by gopen when an I/O path to a graphics device is opened. 

mode Specifies text set designation mode. 

Discussion

There are several specifiable text switching modes:

ISO_7BIT mode - (mode =0 ) similar to ISO 8-bit mode but only the lower seven bits of each character are used. 

ISO_8BIT mode - (mode = 1) implements ISO 2022.2(1982), permitting designation and invocation of all four G-sets individually. 

HP_8BIT mode - (mode = 2) implements the HP 8-bit standard.  Designating character set G0 automatically designates its associated set, G2.  Designating character set G1 automatically designates its associated set, G3.  When the encoding of the characterset G0 is EUC, (ex.  japanese.euc) designating the character set G0 automatically designates all associated sets, G1, G2, and G3.  The associated set is the set used when the eighth bit of a character is set.  An associated font can use the HP-15 or EUC format for character sets that need multi-bytes/character.  An HP-15 or EUC font should not be used with other switching modes. 

Designating usascii is the same as using the HP-UX character set ROMAN8, and jisascii is the same as the HP-UX set KANA8. 

The following is a list of each font, and its associated set:

Font Name Associated Set
usascii HPROMAN
hproman NULL
jisascii KATAKANA
katakana NULL
japanese KANJI
japanese.euc KANJI
kanji KATAKANA
korean KOREAN16
chinese-s CHINESE-S16
chinese-t CHINESE-T16

Fonts for the various character sets are located in /usr/lib/starbase/stroke/font.

The escape codes needed to work with the character sets and fonts are listed in the table below. 

Shift Function ISO_7BIT ISO_8BIT HP_8BIT
Shift out SO 0/14 - 0/14
Shift in SI 0/15 - 0/15
Locking shift zero LS0 - 00/15 -
Locking shift one LS1 - 00/14 -
Locking shift one right LS1R - esc 7/14 -
Locking shift two LS2 esc 6/14 esc 6/14 -
Locking shift two right LS2R - esc 7/13 -
Locking shift three LS3 esc 6/15 esc 6/15 -
Locking shift three right LS3R - esc 7/12 -
Single shift two SS2 esc 4/14 08/14 -
Single shift three SS3 esc 4/15 08/15 -

If a single-byte representation of SS2 is required in 7 bits, it should be coded as 1/9. 
 

DEFAULTS

ISO_8BIT mode as set in /usr/lib/starbase/defaults.

SEE ALSO

designate_character_set(3G)

Hewlett-Packard Company  —  HP-UX Release 9.03: April 1994

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026