Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lpf_smbj10(8) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpr(1)

sysinfo(5)

printcap(5)

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

NAME

lpf_smbj10 − Multi-code line printer filter for CANNON BJ10

SYNOPSIS

/usr/sony/lib/lpf_smbj10
/usr/sony/lib/lpf_sjbj10

DESCRIPTION

lpf_smbj10 is a lpr(1) output filter for printing plain text on a CANNON BJ−10 series printers. 

This program is given two names by links, and each has startup methods, such as the following. 

• Startup as lpf_smbj10
Based on the system variable BJ 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) BJ=sjis or BJ=\E%S\E(J\E)I
Japanese (EUC) BJ=euc or BJ=\E%@\E(B\E$)B\E∗I\E$+B

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

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

This filter can also handle ISO 2022 (JIS X 0202) partly.  This allows character codes and character sets to be changed using escape sequences embedded the text.  This means that JIS code text includes these escape sequences can also be used as input. 

Changing

ESC % @ISO 2022 (JIS X 0202 or EUC)
ESC % SShift-JIS 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 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.

Character set availableF• 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)
 • 94x94 character set
BJapanese kanji (JIS X 0208-1983)
 

ControlBS (0x08)Backspace
HT (0x09)Horizontal tab (fixed every 8 spaces)
NL (0x0a)New line
FF (0x0c)Formfeed
CR (0x0d)Carriage return

USAGE EXAMPLE

To use the lpf_smbj10 (lpf_sjbl10) filter, the filter name must be recorded in /etc/printcap. 

For example, use the printer named ’lp’ add this line to the field containing the entry for lp. 

:if=/usr/sony/lib/lpf_smbj10:\ To excecute printing, enter:

lpr −P printer text-file

FILES

/etc/printcap   Printer function database

BUGS

 
It is necessary to set the printer on auto sheet feeder mode when auto sheet feeder is equiped.
 
Printer must be set to start printing 8.5mm down from a top of a sheet.  This might be diffrent from the shipping settings.
 
Printer works Half-line advance  (0x1b 0x37) only as Caridge-return (0x0d), and Half-line return Reverse-Half-line return as CRLF (0x0d,0x0a).
 

SEE ALSO

lpr(1), sysinfo(5), printcap(5)

NEWS-OS Release 4.2.1R

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