* Titel of printer filter:
NEC Pinwriter P2200 08/09/89     * printernavn

***********************************************************************
* This is a printer filter for a common 24 pin matrix printer         *
* Hasse Wehner 24/08/89                                            *
***********************************************************************


ESCDEFINITION
***********************************
* This section describes all      *
* printer commands starting       *
* with the char ESC (1B)          *
* First number in every line      *
* specifies the character follow- *
* ing the ESC                     *
* Next number is a code for how   *
* the length off the command can  *
* be determined:                  *
*  1  The length is fixed         *
*     Next number describes the   *
*     number of chars following   *
*     ESC, <1stnumber>,        *
*                                 *
*  2  The ESC-sequence will       *
*     terminated by a specific    *
*     value. The endvalue is given*
*     as the last number          *
*                                 *
*  3  This command actives     *
*     graphics printing.          *
*     most significant nibble in  *
*     last number, tells how many *
*     bytes is need for "firing"  *
*     a row of matrix pins  *
*     for 8bit graphich this will *
*     normally be 1.     *
*     24 pin printers normally    *
*     need 3 bytes for each strike*
*                                 *
*  4  Length of printer command   *
*     cant be described by any of *
*     the above, next bytes       *
*     refers to in wich exception *
*     the printer command is de-  *
*     scribed                     *
***********************************
19 1 1
25 1 1
2A 4 0   * described in exeption no. 0
2D 1 1
2F 1 1
33 1 1
3A 1 3
3F 1 2
41 1 1
43 1 1   * or 43 1 2
4A 1 1  
4B 3 10  * graphics printing 1 byte for each strike, n1 & n2 immidialy
         * following ESC 4B 
4C 3 10
4E 1 1
51 1 1
52 1 1
53 1 1
54 1 0
55 1 1
57 1 1
59 3 10
5A 3 10
5C 1 3
61 1 1
62 2 0
65 1 2
66 1 2
6A 1 1
6B 1 1
6C 1 1
70 1 1
73 1 1
74 1 1
78 1 1


FSDEFINITION
***********************************************
* This is basically the same as ESCdefinition *
* exept for that the character that started   *
* the command was a FS [1C] instead of ESC    *
* These commands are not used by all 24       *
* pin printer                                 *
***********************************************
43 1 1
45 1 1
49 1 1
53 1 1
56 1 1
5a 3 30        * high-density 24 pin graphic

EXCEPTIONS
*************************************************
* In this section all commands are described *
* whose kategori couldn't be determined in      *
* the ESCdefinitioin                *
* 1st number: exeption no.          *
* 2nd number on same line: no of subcommands *
* next <2nd number> linies defines each sub- *
* command                                       *
*************************************************
0 0b        * This exeption describes 11 subcommands all produces by 
            * 1b 2a ...
0 3 10      * sd     8 pin
1 3 10      * dd     8 pin
2 3 10      * dd     8 pin  double speed
3 3 10      * qd     8 pin
4 3 10      * CRT1   8 pin
6 3 10      * CRT2   8 pin
20 3 30     * sd    24 pin
21 3 30     * dd    24 pin
26 3 30     * CRT2  24 pin
27 3 30     * td    24 pin
28 3 30     * hd    24 pin

            
TRANSLATION
**********************************************
* The most interesting section - it defines  *
* the actual translation that is to be made  *
* Each line defines a translation for        *
* a character in the ATARI ST character set. *
* 1st number: the character to be translated *
* The following numbers on the samme line *
* is the charcters and/or printer commands   *
* the character must be tranlated to before  *
* being print                                *
**********************************************
b3 9b   * '³': ligesom IBM
b2 9d   * '²': ligesom IBM
9e e1   * den ene af de to tyske dobbelt-s 
dd 15   * paragraf tegn
01 1b 4b 0A 00 00 20 60 a0 bf bf a0 60 20 00 * a small image for the up arrow
9f b3   * 9f is used to get vertical lines when making boxes
        * On MS-DOS computers this vertical line has asciinumber b3
        * This translation vill only make sense if you are using the
        * Mac like font suplied on the Harlekin distribution disk.


PRINTERCOMMANDS:
**********************************************
* This section defines the printer commands  *
* that will be installed as "butttons" in *
* the "Printer Filter box" in Harlekin.ACC   *
* a button is defined in to lines:           *
* 1st line: label to be put in button        *
* next line: the commands send to the printer*
*                                            *
* A maximum of 8 buttons can be defined      *
* The label may be no longer than 15 chars   *
**********************************************
Sidevis
0c 1b 4e 6                  * Ny side + skip 6 linier ved perforrering
Margin6
1b 6c 6                     * venstre margin 6 tegn
Reset
1b 40
Small (6/90/15)            * Margin 6, 8 lines/inch, condensed
1b F 1b 30 1b 6c 6
Prop&justify70
1b 70 01 1b 61 03  1b 51 46

END



