Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lpf_smlbp(8) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpr(1)

sysinfo(5)

printcap(5)

lbp_filters(8)

LPF_SMLBP(8)  —  NEWS-OS Programmer’s Manual

NAME

lpf_smlbp − Multi-language line printer filter for NWP-533/537/543

SYNOPSIS

/usr/sony/lib/lpf_smlbp
/usr/sony/lib/lpf_sjlbp
/usr/sony/lib/lpf_selbp
/usr/sony/lib/lpf_sklbp
/usr/sony/lib/lpf_sclbp

DESCRIPTION

lpf_smlbp is a lpr(1) output filter for printing plain text on a NEWS laser beam printer (NWP-533/537/543). 

This program is given several names by links, and there are several startup methods, such as the following. 

• Startup as lpf_smlbp
Based on the system variable SMLBP declared in the /etc/sysinfo file (see sysinfo(5) ), character codes and character sets are set as follows. 

Language (Code) Contents of /etc/sysinfo file
Japanese (SJIS) SMLBP=sjis or SMLBP=\E%S\E(J\E)I
Japanese (EUC) SMLBP=euc or SMLBP=\E%@\E(B\E$)B\E∗I\E$+B
Western European
languages (ISO 8859-1)
SMLBP=ascii or SMLBP=\E%@\E(B\E-A
Korean (EUC) SMLBP=korean or SMLBP=\E%@\E(B\E$)C
Chinese (Taiwan) (TCA) SMLBP=tca or SMLBP=\E%T\E(B

ESC is indicated by \E or \033. 
If SMLBP is missing, the input is processed as Japanese EUC text.
If SMLBP=\E%S\E(B\E)I, 0x5c can be printed as “backslash” rather than “yen” even in Shift-JIS (SJIS).

• Startup as lpf_sjlbp
Input is processed as Japanese Shift-JIS text.

• Startup as lpf_selbp
Input is processed as ISO 8859-1 text.

• Startup as lpf_sklbp
Input is processed as Korean EUC text.

• Startup as lpf_sclbp
Input is processed as Chinese (Taiwan) TCA text.

This filter can also handle ISO 2022 (JIS X 0202).  This allows character codes and character sets to be changed using escape sequences embedded the text.  This means that JIS code text can also be used as input.  It is also possible to print text containing text in more than one language. 

Changing

ESC % @ISO 2022 (JIS X 0202 or EUC)
ESC % SShift-JIS code (nonstandard)
ESC % TTCA code (nonstandard)
 “Nonstandard” here means character codes that do
not conform to the ISO 2022 specification.

CallingSI (0x0f) LS0: invokes G0 for GL
SO (0x0e)LS1: invokes G1 for GL
ESC nLS2: invokes G2 for GL
ESC oLS3: invokes G3 for GL
 ESC ~LS1R: invokes G1 for GR
ESC }LS2R: invokes G2 for GR
ESC |LS3R: invokes G3 for GR
 SS2 (0x8e)SS2: invokes G2 for GL for the next character only
SS3 (0x8f)SS3: invokes G3 for GL for the next character only
ESC NSS2: invokes G2 for GL for the next character only
ESC OSS3: invokes G3 for GL for the next character only
 GL: 0x20−0x7f,GR: 0xa0−0xff.
G0 is not invoked for GR.
The SS2 and SS3 can invoke G2 and G3 for GR for
the next character only.

IndicatingESC ( F Designates a 94 character set for G0
ESC ) FDesignates a 94 character set for G1
ESC ∗ FDesignates a 94 character set for G2
ESC + FDesignates a 94 character set for G3
 ESC − FDesignates a 96 character set for G1
ESC . FDesignates a 96 character set for G2
ESC / FDesignates a 96 character set for G3
 ESC $ FDesignates a 94x94 character set for G0
ESC $ ( FDesignates a 94x94 character set for G0
ESC $ ) FDesignates a 94x94 character set for G1
ESC $ ∗ FDesignates a 94x94 character set for G2
ESC $ + FDesignates a 94x94 character set for G3
 F is the final character that indicates a character set.
See below. A 96 character set cannot be designated as G0.

Character set F• 94 character set
BASCII (ANSI X3.4-1986, left of ISO 8859-1)
JJIS Roman letters (JIS X 0201-1976)
IJIS katakana (JIS X 0201-1976)
iHiragana (nonstandard)
@IRV (ISO 646)
AUK (BSI 4730)
CSweden/Finland
ENorway/Denmark
KGermany (DIN 66083)
RFrance (NF Z62010-1973)
YItaly
ZSpain
HSweden, for names
 H is interpreted as J.
 • 96 character set
ALatin 1 supplementary characters (right of ISO 8859-1)
 • 94x94 character set
BJapanese kanji (JIS X 0208-1983)
CKorean characters (KS C 5601-1987)
0Taiwan Chinese characters (CNS 11643-1986 first page)
1Taiwan Chinese characters (CNS 11643-1986 second page)
@Japanese kanji (JIS C 6226-1978)
AChinese characters (GB 2312-1980)
 NEWS has no font for @, so it is interpreted as B.
NEWS has no font for A, so no character is output.

ControlBS (0x08)Backspace
HT (0x09)Horizontal tab (fixed every 8 spaces)
NL (0x0a)New line
FF (0x0c)Formfeed
CR (0x0d)Carriage return
ESC 7 (0x1b 0x37)Reverse new line
ESC 8 (0x1b 0x38)Half-line return
ESC 9 (0x1b 0x39)Half-line advance

USAGE EXAMPLE

To use the lpf_smlbp filter, the filter name must be recorded in /etc/printcap. 

For example, of the entries following smlbp in /etc/printcap are as shown below, lpr(1) will convert files containing codes of the type specified by environment variable LANG to ISO 2022 7-bit printer codes based on ct=news.  The result will then be printed using the filter specified by if.  To print files containing codes other than that specified by the environment variable LANG, code filters can be specified using options such as lpr −Se. 

smlbp|nwp533|Sony NEWS NWP-533:\
:ct=news:\
:if=/usr/adm/lbp-errs:\
:sd=/usr/spool/nwp533:\
:lp=/dev/lbp:sh:mx#0:\
:lb:li=/usr/sony/lib/lbpinfo:\
:if=/usr/sony/lib/lpf_sjlbp:\
:Sj=/usr/sony/lib/lpf_sjlbp:\
:Sm=/usr/sony/lib/lpf_smlbp:\
:Se=/usr/sony/lib/lpf_selbp:\
:Sk=/usr/sony/lib/lpf_sklbp:\
:Sc=/usr/sony/lib/lpf_sclbp:\
:nf=/usr/sony/lib/lpf_lbpnf:\
.....

FILES

/etc/printcap   Printer function database
/usr/sony/lib/font/devnwp533/ank055.font Alphanumeric and kana (JIS X 0201-1976)
/usr/sony/lib/font/devnwp533/latin055.font ASCII and Latin (ISO 8859-1:1987)
/usr/sony/lib/font/devnwp533/knj055.font Kanji font (JIS X 0208-1983)
/usr/sony/lib/font/devnwp533/korea055.font Korean font (KS C 5601-1987)
/usr/sony/lib/font/devnwp533/china064.font Taiwan Chinese font (CNS 11643-1986)

OTHER

The Korean font is supplied by the spot distributor for NEWS in Korea. 
The Taiwan Chinese font is supplied by the spot distributor for NEWS in Taiwan.

SEE ALSO

lpr(1), sysinfo(5), printcap(5), lbp_filters(8). 
NEWS-OS Release 4.0 User’s Guide “Chapter 8 Printer Files and Print Output”

NEWS-OSRelease 4.2.1R

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