Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ text_switch(3G) — HP-UX 5.20

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.  The associated set is the set used when the eighth bit of a character is set.  An associated font can use the HP-15 format for character sets that need 2-bytes/character.  An HP-15 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
 

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  LS3 |   -    |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

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

SEE ALSO

designate_character_set(3G)

Hewlett-Packard Company  —  May 11, 2021

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