In Chapter 4 Section J, the CDS/ISIS 2.3 manual gives brief instructions on how to control printer functions by sending escape sequences within print formats. The examples given are for Epson dot matrix printers, and do not work with the Hewlett-Packard laser and inkjet printers that are common today and that use PCL (Printer Command Language). This paper explains how to send escape sequences, and what sequences are needed for Hewlett-Packard printers.
Escape sequences can apply to the whole document, or be applied to complete fields or subfields. CDS/ISIS assumes that any string in a print format starting with ! is followed by an escape sequence enclosed in delimiters, and it is convenient to use ! as the delimiter character.
!!(s1s3B!,v25,!!(s0s0B!Note that this uses two combined escape sequences, each with correct upper and lower case.
Courier 10cpi 12 point !!(s0p10h3T! Courier 12cpi 10 point !!(s0p12h3T! Letter Gothic 12cpi 12 point !!(s0p12h6T! Line Printer 16.67cpi !!(s0p16.67h0T! Prestige Elite 12cpi 10 point !!(s0p12h2T!The 0p sets fixed pitch printing, the number before the h is the (horizontal) spacing in characters per inch, and the number before the T specifies the font.
Fonts are normally applied to a whole document, so are used near the start of a print format.
The sequences for some of the commoner proportional fonts (specified as 1p) are:
Antique Olive !!(s1p4168T! CG Omega !!(s1p4113T! CG Times !!(s1p4101T! Clarendon Condensed !!(s1p4140T! Coronet !!(s1p4116T! Garamond !!(s1p4197T! Helv !!(s1p4T! TmsRmn !!(s1p5T! Univers !!(s1p52T! Univers Condensed !!(s1p4148T!There is no fixed pitch, so the h parameter is not used. The (vertical) point size can be specified in a sequence, e.g. for 12 point:
!!(s12V!and so the complete sequence for 11 point Univers would be:
!!(s1p11v52T!
12 point CG Times Line width 100, Column width 100, lines per page 60, Data indent 15 12 point Univers Line width 90, Column width 90, lines per page 60, Data indent 13.
Draft quality !!(s1Q! Letter quality !!(s2Q!
PC-8 !!(10U! HP Roman8 !!(8U! ECMA-94 Latin 1 !!(0N!If your special characters do not come out correctly, try specifying a different character set.
Portrait !!&l0O! [ell, zero, capital oh] Landscape !!&l1O! [ell, one, capital oh]
A4 !!&l26A! US Letter !!&l2A! US Legal !!&l3A!These escape sequences must be specified near the start of the print format, either in a separate sequence or combined with orientation.
With proportional fonts, titles and page numbers are not centred; they are too far to the left. There is probably no solution to this, except not to use titles and page numbers.
If you want to use a font other than those specified above, or if your printer does not use PCL, you will need to consult the Technical Manual to discover the correct escape sequences.
MDL,!!&l26a0O!,!!(10U!,!!(s0u0p10h12v0s0b3t2Q!,mfn' ',if a(v10)
and a(v11) then '[Anon.] ' else v 10+|; | fi, v11+|;|,
!!(s3B!,v20,!!(s0B!, "["v21"]",MPL,"In: "v22" ",!!(s1S!,v30"
",!!(s0S!,v31" ", "("v32")",!!(s3B!," "v33,!!(s0B!," ("v34")","
"v35," ISBN "v36,' ['v41+|,|,","v42+|,|,", Price "v43,
", "v44']'," "v45 %##v50(5,0)/(v59*2(5,0)/) %##"DESCRIPTORS:
"v62+|; |%##
Please use PKUNZIP (or equivalent) to unzip the file, and then read the README.TXT file.