defaultsfile(4G)
NAME
sb_defaults − Starbase defaults file
DESCRIPTION
A defaults file contains information about the fonts loaded during a gopen, and what the text switching mode is after a gopen occurs. Note that this set of fonts and text switching mode are overridden by calling designate_character_set, text_switching_mode, and text_font_index. The defaults file has the following structure.
| DEFAULTS FILE STRUCTURE | |
| CONTENT | EXPLANATION |
| Comments | Ignored by Starbase. |
| End of Comments | 10 or more successive hyphens on a line. |
| Text font index | An integer that selects the initial font index. |
| Text switching mode | An integer that selects initial text switching mode. |
| g0 character set | US ASCII character set. |
| g1 character set | HP Roman character set. |
| g2 character set | US ASCII character set. |
| g3 character set | HP Roman character set. |
When a gopen is executed, Starbase searches for a defaults files in the following order:
$SB_DEFAULTS
A defaults file can be specified by the $SB_DEFAULTS environment variable. This is convenient for application-specific defaults.
$HOME/.sb_defaults/f1
A defaults file may be located at $HOME/.sb_defaults. This provides user-specific defaults.
/etc/opt/starbase/defaults
/etc/opt/starbase/defaults is for system defaults.
The structure of the defaults file depends on the value of text switching mode. When the text switching mode is ISO 7- or 8-bit, all four character sets must be specified. For example, the defaults file supplied with Starbase looks like this:
.
.
<comments>
.
----------------------------------------------------------------
1# text font index
1# character switching mode (ISO 8-bit)
usascii# g0 character set
hproman# g1 character set
usascii# g2 character set
hproman# g3 character set
When the text switching mode is HP 8-bit, only the g0 and g1 character sets need to be specified. For example:
.
.
<comments>
.
----------------------------------------------------------------
1# text font index
2# text switching mode (HP 8-bit)
japanese# g0 character set
korean# g1 character set
When text switching mode is HP 8-bit and the g0 character set is an EUC codeset (such as japanese.euc), then the g1, g2, and g3 character sets do not need to be set. For example:
.
.
<comments>
.
----------------------------------------------------------------
1# text font index
2# text switching mode (HP 8-bit)
japanese.euc# g0 character set
FILES
/etc/opt/starbase/defaults - system defaults file $HOME/.sb_defaults - user defined defaults file
VARIABLES
SB_DEFAULTS can specify the location of a user-defined defaults file
SEE ALSO
Starbase Reference: designate_character_set(3G), starbase(3G), text_font_index(3G), text_switching_mode(3G). Starbase Graphics Techniques: "Using Starbase Text".
Hewlett-Packard Company — November 03, 1994