[comp.sources.atari.st] v02i029: 1stjet -- 1st-Word configuration file for DeskJet

koreth@ssyx.ucsc.edu (Steven Grimm) (03/19/89)

Submitted-by: sdsu.sdsu.edu!ucselx!coffey (Pat Coffey)
Posting-number: Volume 2, Issue 29
Archive-name: 1stjet

To switch from draft to letter quality on the desk jet.  You should
rename the file deskjet.hex, edit off this part, and run install.prg
to produce the 1st_print.dot file.

---------------------cut here-------------------------
****************************************************************
*
*    Hewlett-Packard DeskJet Printer Driver Configuration Table
*    For use with First Word (public domain version)
*    This file contains tables defining the code sequences
*    to be sent to the printer to perform various functions
*    and to access the characters from codes in the Atari
*    character set.
*    Author: Frederic MORA 
*            Pat Coffey       
*    Modification history
*          PaC 1988     Download Fredric MORA's first word plus driver
*                       confifguration table from GENIE
*          PaC 9/25/88  Change italic from double underline to compressed    
*                       add lq & draft codes
****************************************************************

*
* Name of printer
* ===============
*
HP DeskJet


*    Configuration variables
*    =======================
*
*    These six variables define certain printer
*    configuration details required by 1st Word Plus:
*
*    (1)  1 for microspacing daisywheel, else 0
*    (2)  Character width in printer units (daisy)
*    (3)  Linefeed height in printer units
*    (4)  Mid-carriage (daisy) pixels/inch (matrix) (96H for 150 dpi)
*    (5)  Bold offset in printer units (daisy)
*    (6)  1 to pause printing between pages, else 0


0, 0, C, 96, 0, 0


*
* Printer characteristics
* =======================
*
* This table specifies the printer command sequences.
* If the top bit of a code is set, then this indicates the position
* of a parameter passed to the printer. The code whose top bit is set
* in this table is added to the parameter passed before being sent to the
* printer. It is not used in all command sequences, only in those where 
* the printer requires  a variable value such as the length of a vertical 
* tab.
*
* 0            * Character width
1, D, A        * Linefeed WITH return
* 2            * Forward print
* 3            * Reverse print
* 4            * Vertical tab to line 
* 5            * Absolute horizontal tab 
6, 1B, 28, 73, 31, 71, 33, 42      * Draft bold on:  Esc ( s  2 q 3 B
7, 1B, 28, 73, 31, 71, 30, 42      * Draft bold off Esc ( s 2 q 0 B
8, 1B, 28, 73, 32, 71, 33, 42    * Near Letter Quality bold on:Esc ( s 3 B
9, 1B, 28, 73, 32, 71 30, 42      * NLQ bold off:             Esc ( s 0 B
* "Draft italic" on (compressed):   Esc ( s 1 q  6 V
A, 1B, 28, 73, 31, 71, 36, 56
B, 1B, 28, 73, 31, 71, 31, 30, 56  * Draft italic off   esc ( s 1 q 10 h 12 V
* "NLQ italic" on (compressed)      Esc ( s 2 q 10 h 12 V
C, 1B, 28, 73, 32, 71, 36, 56      * NLQ italic on
D, 1B, 28, 73, 32, 71, 31, 30, 56     * NLQ italic off            Esc & d @
E, 1B, 28, 73, 31, 71, 31, 36, 68, 36, 56       * Draft light on (6 point font)
F,  1B, 28, 73, 31, 71,31, 30, 68, 31, 30, 56             * Draft light off
10, 1B, 28, 73, 32, 71, 31, 36, 68, 36, 56   * NLQ light on   (6 point font)
11, 1B, 28, 73, 32, 71, 31, 30, 68, 31, 30, 56   * NLQ light off
* Draft superscript on with 6 point superscript: Esc ( s 6 V Esc ( s +1 U
12, 1B, 28, 73, 31, 71, 36, 56, 1B, 28, 73, 2B, 31, 55
 * Draft superscript off (back to 12 point):     Esc ( s 0 U Esc ( s 12 V
13, 1B, 28, 73, 31, 71, 30, 55, 1B, 28, 73, 31, 32, 56
* NLQ superscript on with 6 point superscript:   Esc ( s 6 V Esc ( s +1 U
14, 1B, 28, 73, 32, 71, 36, 56, 1B, 28, 73, 2B, 31, 55
* NLQ superscript off (back to 12 point):        Esc ( s 0 U Esc ( s 12 V
15, 1B, 28, 73, 32, 71, 30, 55, 1B, 28, 73, 31, 32, 56
* Draft subscript on with 6 point subscript:     Esc ( s -1 U Esc ( s 6 V
16, 1B, 28, 73, 31, 71, 2D, 31, 55, 1B, 28, 73, 36, 56
* Draft subscript off (back to 12 point):        Esc ( s 0 U Esc ( s 12 V
17, 1B, 28, 73, 31, 71, 30, 55, 1B, 28, 73, 31, 32, 56
* NLQ subscript on with 6 point subscript:       Esc ( s -1 U Esc ( s 6 V
18, 1B, 28, 73, 32, 71, 2D, 31, 55, 1B, 28, 73, 36, 56
* NLQ subscript off (back to 12 point):          Esc ( s 0 U Esc ( s 12 V
19, 1B, 28, 73, 32, 71, 30, 55, 1B, 28, 73, 31, 32, 56
* Draft underline (single fixed) on:             Esc & d 1 D
1A, 1B, 26, 64, 31, 44
1B, 1B, 26, 64, 40  * Draft underline off:       Esc & d @
* NLQ underline (single fixed) on:               Esc & d 1 D
1C, 1B, 26, 64, 31, 44
1D, 1B, 26, 64, 40  * NLQ underline off:         Esc & d @
1E, 1B, 26, 6C, 30, 48   * Formfeed              Esc & l 0 H
*1F, 12         * Horizontal initialisation
*20, C          * Vertical initialisation
21, 1B, 45      * Termination: printer reset     Esc E
22,  8                        * Backspace
23,  D                        * Carriage return
*24, 1B, 43, 80                * Form length in lines
*25, 1B, 41, 80, 1B, 32        * Set line feed to N units
*26  * Start graphics  
* 27                          * Reserved

0              * NULL termination byte

*
* Translation Table
* =================
*
* This table provides translation from single Atari input bytes into
* multiple printer codes, and is useful for printing extraneous
* characters such as accented characters etc. All characters are 
* subjected to translation, but if there is no entry in the table for
* a particular code, then the original code is sent to the printer.
*
* The entries must be arranged in ascending order of Atari input
* code. The table is NULL terminated.
* 
* This table assumes that the HP DeskJet printer is set in 
* PC8 Character Set (Switches A1 to A4 down)

0                                  * NULL: print a space 
1             * No Up arrow
2             * No Down arrow
3             * No Right arrow
4             * No Left arrow
5             * No close box
6             * No size box
7             * No full box
8             * No tick
9             * No clock
A             * No bell
B, 0D                              * musical note
E             * No LH Atari symbol     
F             * No RH Atari symbol
10, 30        * LCD 0
11, 31        * LCD 1
12, 32        * LCD 2    
13, 33        * LCD 3
14, 34        * LCD 4
15, 35        * LCD 5
16, 36        * LCD 6
17, 37        * LCD 7     
18, 38        * LCD 8
19, 39        * LCD 9     
7F                       * No triangle
9E, E1                   * Esszet
B0         * No Lower case a tilde
B1         * No Lower case o tilde
B2         * No Capital crossed O 
B3         * No Lower case crossed o
B4         * No lower case oe dipthong
B5                       * No capital OE dipthong
B6, 41                   * No capital A grave: print A
B7, 41                   * No capital A tilde: print A
B8, 4F                   * No capital O tilde: print O
B9         * No Umlaut
BA, 27                   * Acute: print '
BB, C5                   * Dagger
BC, 15                   * Paragraph symbol
BD                       * No copyright symbol
BE                       * No Registered symbol
BF                       * No Trademark symbol
C0        * No ij ligature
C1        * No IJ ligature
C2        * No Hebrew...
C3
C4
C5
C6
C7
C8
C9
CA
CB
CC
CD
CE
CF
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
DA
DB
DC
DD, 14       * Section mark 
DE, 5E       * Dropped circumflex
DF, EC       *  infinity
FE           * No superior 3
FF        * No macron     
0