home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Washington_1988 / DevCon88.3 / Printer / src / HP / data.c next >
Encoding:
Text File  |  1992-08-27  |  5.0 KB  |  146 lines

  1. /*
  2.     Data.c table for HP_LaserJet (Plus and II compatible) driver.
  3.     David Berezowski - March/88.
  4.  
  5.   Copyright (c) 1988 Commodore-Amiga, Inc.
  6.  
  7.   Executables based on this information may be used in software
  8.   for Commodore Amiga computers.  All other rights reserved.
  9.  
  10.   This information is provided "as is"; no warranties are made.
  11.   All use is at your own risk, and no liability or responsibility is assumed.
  12. */
  13.  
  14.  
  15. char *CommandTable[] = {
  16.     "\375\033E\375",/* 00 aRIS reset            */
  17.     "\377",        /* 01 aRIN initialize            */
  18.     "\012",        /* 02 aIND linefeed            */
  19.     "\015\012",    /* 03 aNEL CRLF                */
  20.     "\033&a-1R",    /* 04 aRI reverse LF            */
  21.  
  22.             /* 05 aSGR0 normal char set        */
  23.     "\033&d@\033(sbS",
  24.     "\033(s1S",    /* 06 aSGR3 italics on            */
  25.     "\033(sS",    /* 07 aSGR23 italics off        */
  26.     "\033&dD",    /* 08 aSGR4 underline on        */
  27.     "\033&d@",    /* 09 aSGR24 underline off        */
  28.     "\033(s5B",    /* 10 aSGR1 boldface on            */
  29.     "\033(sB",    /* 11 aSGR22 boldface off        */
  30.     "\377",        /* 12 aSFC set foreground color        */
  31.     "\377",        /* 13 aSBC set background color        */
  32.  
  33.     "\033(s10h1T",    /* 14 aSHORP0 normal pitch        */
  34.     "\033(s12h2T",    /* 15 aSHORP2 elite on            */
  35.     "\033(s10h1T",    /* 16 aSHORP1 elite off            */
  36.     "\033(s15H",    /* 17 aSHORP4 condensed fine on        */
  37.     "\033(s10H",    /* 18 aSHORP3 condensed fine off    */
  38.     "\377",        /* 19 aSHORP6 enlarge on        */
  39.     "\377",        /* 20 aSHORP5 enlarge off        */
  40.  
  41.     "\033(s7B",    /* 21 aDEN6 shadow print on        */
  42.     "\033(sB",    /* 22 aDEN5 shadow print off        */
  43.     "\033(s3B",    /* 23 aDEN4 double strike on        */
  44.     "\033(sB",    /* 24 aDEN3 double strike off        */
  45.     "\377",        /* 25 aDEN2 NLQ on            */
  46.     "\377",        /* 26 aDEN1 NLQ off            */
  47.  
  48.     "\377",        /* 27 aSUS2 superscript on        */
  49.     "\377",        /* 28 aSUS1 superscript off        */
  50.     "\377",        /* 29 aSUS4 subscript on        */
  51.     "\377",        /* 30 aSUS3 subscript off        */
  52.     "\377",        /* 31 aSUS0 normalize the line        */
  53.     "\033&a-.5R",    /* 32 aPLU partial line up        */
  54.     "\033=",    /* 33 aPLD partial line down        */
  55.  
  56.     "\033(s3T",    /* 34 aFNT0 Typeface 0            */
  57.     "\033(s0T",    /* 35 aFNT1 Typeface 1            */
  58.     "\033(s1T",    /* 36 aFNT2 Typeface 2            */
  59.     "\033(s2T",    /* 37 aFNT3 Typeface 3            */
  60.     "\033(s4T",    /* 38 aFNT4 Typeface 4            */
  61.     "\033(s5T",    /* 39 aFNT5 Typeface 5            */
  62.     "\033(s6T",    /* 40 aFNT6 Typeface 6            */
  63.     "\033(s7T",    /* 41 aFNT7 Typeface 7            */
  64.     "\033(s8T",    /* 42 aFNT8 Typeface 8            */
  65.     "\033(s9T",    /* 43 aFNT9 Typeface 9            */
  66.     "\033(s10T",    /* 44 aFNT10 Typeface 10        */
  67.                               
  68.     "\033(s1P",    /* 45 aPROP2 proportional on        */
  69.     "\033(sP",    /* 46 aPROP1 proportional off        */
  70.     "\033(sP",    /* 47 aPROP0 proportional clear        */
  71.     "\377",        /* 48 aTSS set proportional offset    */
  72.     "\377",        /* 49 aJFY5 auto left justify        */
  73.     "\377",        /* 50 aJFY7 auto right justify        */
  74.     "\377",        /* 51 aJFY6 auto full jusitfy        */
  75.     "\377",        /* 52 aJFY0 auto jusity off        */
  76.     "\377",        /* 53 aJFY3 letter space        */
  77.     "\377",        /* 54 aJFY1 word fill            */
  78.  
  79.     "\033&l8D",    /* 55 aVERP0 1/8" line spacing        */
  80.     "\033&l6D",    /* 56 aVERP1 1/6" line spacing        */
  81.     "\377",        /* 57 aSLPP set form length        */
  82.     "\033&l1L",    /* 58 aPERF perf skip n (n > 0)        */
  83.     "\033&lL",    /* 59 aPERF0 perf skip off        */
  84.                         
  85.     "\377",        /* 60 aLMS set left margin        */
  86.     "\377",        /* 61 aRMS set right margin        */
  87.     "\377",        /* 62 aTMS set top margin        */
  88.     "\377",        /* 63 aBMS set bottom margin        */
  89.     "\377",        /* 64 aSTBM set T&B margins        */
  90.     "\377",        /* 65 aSLRM set L&R margins        */
  91.     "\0339\015",    /* 66 aCAM clear margins        */
  92.  
  93.     "\377",        /* 67 aHTS set horiz tab        */
  94.     "\377",        /* 68 aVTS set vert tab            */
  95.     "\377",        /* 69 aTBC0 clear horiz tab        */
  96.     "\377",        /* 70 aTBC3 clear all horiz tabs    */
  97.     "\377",        /* 71 aTBC1 clear vert tab        */
  98.     "\377",        /* 72 aTBC4 clear all vert tabs        */
  99.     "\377",        /* 73 aTBCALL clear all h & v tabs    */
  100.     "\377",        /* 74 aTBSALL set default tabs        */
  101.  
  102.     "\377",        /* 75 aEXTEND extended commands        */
  103.     "\377"        /* 76 aRAW next 'n' chars are raw    */
  104. };
  105.  
  106. char *ExtendedCharTable[] = {
  107. /*
  108.     " ", "!", "c", "L", "o", "Y", "|", "S",
  109.  
  110.     "\"", "c", "a", "<", "~", "-", "r", "-",
  111.  
  112.     "*", "+", "2", "3", "'", "u", "P", ".",
  113.  
  114.     ",", "1", "o", ">", "/", "/", "/", "?",
  115.  
  116.     "A", "A", "A", "A", "A", "A", "A", "C",
  117.  
  118.     "E", "E", "E", "E", "I", "I", "I", "I",
  119.  
  120.     "D", "N", "O", "O", "O", "O", "O", "x",
  121.  
  122.     "O", "U", "U", "U", "U", "Y", "P", "B",
  123.  
  124.     "a", "a", "a", "a", "a", "a", "a", "c",
  125.  
  126.     "e", "e", "e", "e", "i", "i", "i", "i",
  127.  
  128.     "d", "n", "o", "o", "o", "o", "o", "/",
  129.  
  130.     "o", "u", "u", "u", "u", "y", "p", "y"
  131. */
  132.  
  133.     " ", "\270", "\277", "\273", "\272", "\274", "|", "\275",
  134.     "\253", "c", "\371", "\373", "~", "\366", "r", "\260",
  135.     "\263", "\376", "2", "3", "\250", "\363", "\364", "\362",
  136.     ",", "1", "\372", "\375", "\367", "\370", "\365", "\271",
  137.     "\241", "\340", "\242", "\341", "\330", "\320", "\323", "\264",
  138.     "\243", "\334", "\244", "\245", "\346", "\345", "\246", "\247",
  139.     "\343", "\266", "\350", "\347", "\337", "\351", "\332", "x",
  140.     "\322", "\255", "\355", "\256", "\333", "\261", "\360", "\336",
  141.     "\310", "\304", "\300", "\342", "\314", "\324", "\327", "\265",
  142.     "\311", "\305", "\301", "\315", "\331", "\325", "\321", "\335",
  143.     "\344", "\267", "\312", "\306", "\302", "\352", "\316", "-\010:",
  144.     "\326", "\313", "\307", "\303", "\317", "\262", "\361", "\357"
  145. };
  146.