home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_1.3 / Read-Me1.3 / Printer1.3 / Driver.Examples / src / epsonQ / data.c next >
Encoding:
Text File  |  1988-08-01  |  6.2 KB  |  215 lines

  1. /*
  2.     Data.c table for EpsonQ driver.
  3.     David Berezowski - March/88.
  4. */
  5.  
  6. char *CommandTable[] ={
  7.     "\375\033@\375",/* 00 aRIS reset            */
  8.     "\377",        /* 01 aRIN initialize            */
  9.     "\377",        /* 02 aIND linefeed            */
  10.     "\012\015",    /* 03 aNEL CRLF                */
  11.     "\377",        /* 04 aRI reverse LF            */
  12.  
  13.             /* 05 aSGR0 normal char set        */
  14.     "\0335\033-\376\033F",
  15.     "\0334",    /* 06 aSGR3 italics on            */
  16.     "\0335",    /* 07 aSGR23 italics off        */
  17.     "\033-\001",    /* 08 aSGR4 underline on        */
  18.     "\033-\376",    /* 09 aSGR24 underline off        */
  19.     "\033E",    /* 10 aSGR1 boldface on            */
  20.     "\033F",    /* 11 aSGR22 boldface off        */
  21.     "\377",        /* 12 aSFC set foreground color        */
  22.     "\377",        /* 13 aSBC set background color        */
  23.  
  24.             /* 14 aSHORP0 normal pitch        */
  25.     "\033P\022\033W\376",
  26.             /* 15 aSHORP2 elite on            */
  27.     "\033M\022\033W\376",
  28.     "\033P",    /* 16 aSHORP1 elite off            */
  29.             /* 17 aSHORP4 condensed fine on        */
  30.     "\017\033P\033W\376",
  31.     "\022",        /* 18 aSHORP3 condensed fine off    */
  32.     "\033W\001",    /* 19 aSHORP6 enlarge on        */
  33.     "\033W\376",    /* 20 aSHORP5 enlarge off        */
  34.  
  35.     "\377",        /* 21 aDEN6 shadow print on        */
  36.     "\377",        /* 22 aDEN5 shadow print off        */
  37.     "\033G",    /* 23 aDEN4 double strike on        */
  38.     "\033H",    /* 24 aDEN3 double strike off        */
  39.     "\033x\001",    /* 25 aDEN2 NLQ on            */
  40.     "\033x\376",    /* 26 aDEN1 NLQ off            */
  41.  
  42.     "\033S\376",    /* 27 aSUS2 superscript on        */
  43.     "\033T",    /* 28 aSUS1 superscript off        */
  44.     "\033S\001",    /* 29 aSUS4 subscript on        */
  45.     "\033T",    /* 30 aSUS3 subscript off        */
  46.     "\033T",    /* 31 aSUS0 normalize the line        */
  47.     "\377",        /* 32 aPLU partial line up        */
  48.     "\377",        /* 33 aPLD partial line down    */
  49.  
  50.     "\033R\376",    /* 34 aFNT0 Typeface 0            */
  51.     "\033R\001",    /* 35 aFNT1 Typeface 1            */
  52.     "\033R\002",    /* 36 aFNT2 Typeface 2            */
  53.     "\033R\003",    /* 37 aFNT3 Typeface 3            */
  54.     "\033R\004",    /* 38 aFNT4 Typeface 4            */
  55.     "\033R\005",    /* 39 aFNT5 Typeface 5            */
  56.     "\033R\006",    /* 40 aFNT6 Typeface 6            */
  57.     "\033R\007",    /* 41 aFNT7 Typeface 7            */
  58.     "\033R\010",    /* 42 aFNT8 Typeface 8            */
  59.     "\033R\011",    /* 43 aFNT9 Typeface 9            */
  60.     "\033R\012",    /* 44 aFNT10 Typeface 10        */
  61.  
  62.     "\033p1",    /* 45 aPROP2 proportional on        */
  63.     "\033p0",    /* 46 aPROP1 proportional off        */
  64.     "\377",        /* 47 aPROP0 proportional clear        */
  65.     "\377",        /* 48 aTSS set proportional offset    */
  66.             /* 49 aJFY5 auto left justify        */
  67.     "\033x\001\033a\376",
  68.             /* 50 aJFY7 auto right justify        */
  69.     "\033x\001\033a\002",
  70.             /* 51 aJFY6 auto full jusitfy        */
  71.     "\033x\001\033a\003",
  72.     "\033a\376",    /* 52 aJFY0 auto jusity off        */
  73.     "\377",        /* 53 aJFY3 letter space        */
  74.             /* 54 aJFY1 word fill            */
  75.     "\033x\001\033a\001",
  76.  
  77.     "\0330",    /* 55 aVERP0 1/8" line spacing        */
  78.     "\0332",    /* 56 aVERP1 1/6" line spacing        */
  79.     "\377",        /* 57 aSLPP set form length        */
  80.     "\377",        /* 58 aPERF perf skip n (n > 0)        */
  81.     "\033O",    /* 59 aPERF0 perf skip off        */
  82.  
  83.     "\377",        /* 60 aLMS set left margin        */
  84.     "\377",        /* 61 aRMS set right margin        */
  85.     "\377",        /* 62 aTMS set top margin        */
  86.     "\377",        /* 63 aBMS set bottom margin        */
  87.     "\377",        /* 64 aSTBM set T&B margins        */
  88.     "\377",        /* 65 aSLRM set L&R margins        */
  89.     "\377",        /* 66 aCAM clear margins        */
  90.  
  91.     "\377",        /* 67 aHTS set horiz tab        */
  92.     "\377",        /* 68 aVTS set vert tab            */
  93.     "\377",        /* 69 aTBC0 clear horiz tab        */
  94.     "\033D\376",    /* 70 aTBC3 clear all horiz tabs    */
  95.     "\377",        /* 71 aTBC1 clear vert tab        */
  96.     "\377",        /* 72 aTBC4 clear all vert tabs        */
  97.     "\033D\376",    /* 73 aTBCALL clear all h & v tabs    */
  98.             /* 74 aTBSALL set default tabs        */
  99. "\033D\010\020\030\040\050\060\070\100\110\120\130\140\150\160\170\200\376",
  100.  
  101.     "\377",        /* 75 aEXTEND extended commands        */
  102.     "\377",        /* 76 aRAW next 'n' chars are raw    */
  103. };
  104.  
  105. char *ExtendedCharTable[] = {
  106.     " ",                    /* NBSP*/
  107.     "\033R\007[\033R\\0",            /* i */
  108.     "c\010|",                /* c| */
  109.     "\033R\003#\033R\\0",            /* L- */
  110.     "\033R\005$\033R\\0",            /* o */
  111.     "\033R\010\\\\\033R\\0",        /* Y- */
  112.     "|",                    /* | */
  113.     "\033R\002@\033R\\0",            /* SS */
  114.  
  115.     "\033R\001~\033R\\0",            /* " */
  116.     "c",                     /* copyright */
  117.     "\033S\\0a\010_\033T",            /* a_ */
  118.     "<",                    /* << */
  119.     "~",                    /* - */
  120.     "-",                    /* SHY */
  121.     "r",                    /* registered trademark */
  122.     "-",                    /* - */
  123.  
  124.     "\033R\001[\033R\\0",            /* degrees */
  125.     "+\010_",                /* +_ */
  126.     "\033S\\0002\033T",            /* 2 */
  127.     "\033S\\0003\033T",            /* 3 */
  128.     "'",                    /* ' */
  129.     "u",                    /* u */
  130.     "P",                    /* reverse P */
  131.     "\033S\\000.\033T",            /* . */
  132.  
  133.     ",",                    /* , */
  134.     "\033S\\0001\033T",            /* 1 */
  135.     "\033R\001[\033R\\0\010-",        /* o_ */
  136.     ">",                    /* >> */
  137.     "\033S\\0001\033T\010-\010\033S\0014\033T",    /* 1/4 */
  138.     "\033S\\0001\033T\010-\010\033S\0012\033T",    /* 1/2 */
  139.     "\033S\\0003\033T\010-\010\033S\0014\033T",    /* 3/4 */
  140.     "\033R\007]\033R\\0",            /* upside down ? */
  141.  
  142.     "A\010`",                /* `A */
  143.     "A\010'",                /* 'A */
  144.     "A\010^",                /* ^A */
  145.     "A\010~",                /* ~A */
  146.     "\033R\002[\033R\\0",            /* "A */
  147.     "\033R\004]\033R\\0",            /* oA */
  148.     "\033R\004[\033R\\0",            /* AE */
  149.     "C\010,",                /* C, */
  150.  
  151.     "E\010`",                /* `E */
  152.     "\033R\011@\033R\\0",            /* 'E */
  153.     "E\010^",                /* ^E */
  154.     "E\010\033R\001~\033R\\0",        /* "E */
  155.     "I\010`",                /* `I */
  156.     "I\010`",                /* 'I */
  157.     "I\010^",                /* ^I */
  158.     "I\010\033R\001~\033R\\0",        /* "I */
  159.  
  160.     "D\010-",                /* -D */
  161.     "\033R\007\\\\\033R\\0",        /* ~N */
  162.     "O\010`",                /* `O */
  163.     "O\010'",                /* 'O */
  164.     "O\010^",                /* ^O */
  165.     "O\010~",                /* ~O */
  166.     "\033R\002\\\\\033R\\0",        /* "O */
  167.     "x",                    /* x */
  168.  
  169.     "\033R\004\\\\\033R\\0",        /* 0 */
  170.     "U\010`",                /* `U */
  171.     "U\010'",                /* 'U */
  172.     "U\010^",                /* ^U */
  173.     "\033R\002]\033R\\0",            /* "U */
  174.     "Y\010'",                /* 'Y */
  175.     "T",                    /* Thorn */
  176.     "\033R\002~\033R\\0",            /* B */
  177.  
  178.     "\033R\001@\033R\\0",            /* `a */
  179.     "a\010'",                /* 'a */
  180.     "a\010^",                /* ^a */
  181.     "a\010~",                /* ~a */
  182.     "\033R\002{\033R\\0",            /* "a */
  183.     "\033R\004}\033R\\0",            /* oa */
  184.     "\033R\004{\033R\\0",            /* ae */
  185.     "\033R\001\\\\\033R\\0",        /* c, */
  186.  
  187.     "\033R\001}\033R\\0",            /* `e */
  188.     "\033R\001{\033R\\0",            /* 'e */
  189.     "e\010^",                /* ^e */
  190.     "e\010\033R\001~\033R\\0",        /* "e */
  191.     "\033R\006~\033R\\0",            /* `i */
  192.     "i\010'",                /* 'i */
  193.     "i\010^",                /* ^i */
  194.     "i\010\033R\001~\033R\\0",        /* "i */
  195.  
  196.     "d",                    /* d */
  197.     "\033R\007|\033R\\0",            /* ~n */
  198.     "\033R\006|\033R\\0",            /* `o */
  199.     "o\010'",                /* 'o */
  200.     "o\010^",                /* ^o */
  201.     "o\010~",                /* ~o */
  202.     "\033R\002|\033R\\0",            /* "o */
  203.     ":\010-"                /* :- */
  204.  
  205.     "\033R\004|\033R\\0",            /* o/ */
  206.     "\033R\001|\033R\\0",            /* `u */
  207.     "u\010'",                /* 'u */
  208.     "u\010^",                /* ^u */
  209.     "\033R\002}\033R\\0",            /* "u */
  210.     "y\010'",                /* 'y */
  211.     "t",                    /* thorn */
  212.     "y\010\033R\001~\033R\\0"        /* "y */
  213. };
  214.  
  215.