1 /* 2 * Copyright (c) 1983 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that the above copyright notice and this paragraph are 7 * duplicated in all such forms and that any documentation, 8 * advertising materials, and other materials related to such 9 * distribution and use acknowledge that the software was developed 10 * by the University of California, Berkeley. The name of the 11 * University may not be used to endorse or promote products derived 12 * from this software without specific prior written permission. 13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16 */ 17 18 #ifndef lint 19 static char sccsid[] = "@(#)lpdchar.c 5.3 (Berkeley) 06/30/88"; 20 #endif /* not lint */ 21 22 /* 23 * Character set for line printer daemon 24 */ 25 #include "lp.local.h" 26 27 #define c_______ 0 28 #define c______1 01 29 #define c_____1_ 02 30 #define c____1__ 04 31 #define c____11_ 06 32 #define c___1___ 010 33 #define c___1__1 011 34 #define c___1_1_ 012 35 #define c___11__ 014 36 #define c__1____ 020 37 #define c__1__1_ 022 38 #define c__1_1__ 024 39 #define c__11___ 030 40 #define c__111__ 034 41 #define c__111_1 035 42 #define c__1111_ 036 43 #define c__11111 037 44 #define c_1_____ 040 45 #define c_1____1 041 46 #define c_1___1_ 042 47 #define c_1__1__ 044 48 #define c_1_1___ 050 49 #define c_1_1__1 051 50 #define c_1_1_1_ 052 51 #define c_11____ 060 52 #define c_11_11_ 066 53 #define c_111___ 070 54 #define c_111__1 071 55 #define c_111_1_ 072 56 #define c_1111__ 074 57 #define c_1111_1 075 58 #define c_11111_ 076 59 #define c_111111 077 60 #define c1______ 0100 61 #define c1_____1 0101 62 #define c1____1_ 0102 63 #define c1____11 0103 64 #define c1___1__ 0104 65 #define c1___1_1 0105 66 #define c1___11_ 0106 67 #define c1__1___ 0110 68 #define c1__1__1 0111 69 #define c1__11_1 0115 70 #define c1__1111 0117 71 #define c1_1____ 0120 72 #define c1_1___1 0121 73 #define c1_1_1_1 0125 74 #define c1_1_11_ 0126 75 #define c1_111__ 0134 76 #define c1_1111_ 0136 77 #define c11____1 0141 78 #define c11___1_ 0142 79 #define c11___11 0143 80 #define c11_1___ 0150 81 #define c11_1__1 0151 82 #define c111_11_ 0166 83 #define c1111___ 0170 84 #define c11111__ 0174 85 #define c111111_ 0176 86 #define c1111111 0177 87 88 char scnkey[][HEIGHT] = /* this is relatively easy to modify */ 89 /* just look: */ 90 { 91 { c_______, 92 c_______, 93 c_______, 94 c_______, 95 c_______, 96 c_______, 97 c_______, 98 c_______, 99 c_______ }, /* */ 100 101 { c__11___, 102 c__11___, 103 c__11___, 104 c__11___, 105 c__11___, 106 c_______, 107 c_______, 108 c__11___, 109 c__11___ }, /* ! */ 110 111 { c_1__1__, 112 c_1__1__, 113 c_______, 114 c_______, 115 c_______, 116 c_______, 117 c_______, 118 c_______, 119 c_______ }, /* " */ 120 121 { c_______, 122 c__1_1__, 123 c__1_1__, 124 c1111111, 125 c__1_1__, 126 c1111111, 127 c__1_1__, 128 c__1_1__, 129 c_______ }, /* # */ 130 131 { c___1___, 132 c_11111_, 133 c1__1__1, 134 c1__1___, 135 c_11111_, 136 c___1__1, 137 c1__1__1, 138 c_11111_, 139 c___1___ }, /* $ */ 140 141 { c_1_____, 142 c1_1___1, 143 c_1___1_, 144 c____1__, 145 c___1___, 146 c__1____, 147 c_1___1_, 148 c1___1_1, 149 c_____1_ }, /* % */ 150 151 { c_11____, 152 c1__1___, 153 c1___1__, 154 c_1_1___, 155 c__1____, 156 c_1_1__1, 157 c1___11_, 158 c1___11_, 159 c_111__1 }, /* & */ 160 161 { c___11__, 162 c___11__, 163 c___1___, 164 c__1____, 165 c_______, 166 c_______, 167 c_______, 168 c_______, 169 c_______ }, /* ' */ 170 171 { c____1__, 172 c___1___, 173 c__1____, 174 c__1____, 175 c__1____, 176 c__1____, 177 c__1____, 178 c___1___, 179 c____1__ }, /* ( */ 180 181 { c__1____, 182 c___1___, 183 c____1__, 184 c____1__, 185 c____1__, 186 c____1__, 187 c____1__, 188 c___1___, 189 c__1____ }, /* ) */ 190 191 { c_______, 192 c___1___, 193 c1__1__1, 194 c_1_1_1_, 195 c__111__, 196 c_1_1_1_, 197 c1__1__1, 198 c___1___, 199 c_______ }, /* * */ 200 201 { c_______, 202 c___1___, 203 c___1___, 204 c___1___, 205 c1111111, 206 c___1___, 207 c___1___, 208 c___1___, 209 c_______ }, /* + */ 210 211 { c_______, 212 c_______, 213 c_______, 214 c_______, 215 c__11___, 216 c__11___, 217 c__1____, 218 c_1_____, 219 c_______ }, /* , */ 220 221 { c_______, 222 c_______, 223 c_______, 224 c_______, 225 c1111111, 226 c_______, 227 c_______, 228 c_______, 229 c_______ }, /* - */ 230 231 { c_______, 232 c_______, 233 c_______, 234 c_______, 235 c_______, 236 c_______, 237 c_______, 238 c__11___, 239 c__11___ }, /* . */ 240 241 { c_______, 242 c______1, 243 c_____1_, 244 c____1__, 245 c___1___, 246 c__1____, 247 c_1_____, 248 c1______, 249 c_______ }, /* / */ 250 251 { c_11111_, 252 c1_____1, 253 c1____11, 254 c1___1_1, 255 c1__1__1, 256 c1_1___1, 257 c11____1, 258 c1_____1, 259 c_11111_ }, /* 0 */ 260 261 { c___1___, 262 c__11___, 263 c_1_1___, 264 c___1___, 265 c___1___, 266 c___1___, 267 c___1___, 268 c___1___, 269 c_11111_ }, /* 1 */ 270 271 { c_11111_, 272 c1_____1, 273 c______1, 274 c_____1_, 275 c__111__, 276 c_1_____, 277 c1______, 278 c1______, 279 c1111111 }, /* 2 */ 280 281 { c_11111_, 282 c1_____1, 283 c______1, 284 c______1, 285 c__1111_, 286 c______1, 287 c______1, 288 c1_____1, 289 c_11111_ }, /* 3 */ 290 291 { c_____1_, 292 c____11_, 293 c___1_1_, 294 c__1__1_, 295 c_1___1_, 296 c1____1_, 297 c1111111, 298 c_____1_, 299 c_____1_ }, /* 4 */ 300 301 { c1111111, 302 c1______, 303 c1______, 304 c11111__, 305 c_____1_, 306 c______1, 307 c______1, 308 c1____1_, 309 c_1111__ }, /* 5 */ 310 311 { c__1111_, 312 c_1_____, 313 c1______, 314 c1______, 315 c1_1111_, 316 c11____1, 317 c1_____1, 318 c1_____1, 319 c_11111_ }, /* 6 */ 320 321 { c1111111, 322 c1_____1, 323 c_____1_, 324 c____1__, 325 c___1___, 326 c__1____, 327 c__1____, 328 c__1____, 329 c__1____ }, /* 7 */ 330 331 { c_11111_, 332 c1_____1, 333 c1_____1, 334 c1_____1, 335 c_11111_, 336 c1_____1, 337 c1_____1, 338 c1_____1, 339 c_11111_ }, /* 8 */ 340 341 { c_11111_, 342 c1_____1, 343 c1_____1, 344 c1_____1, 345 c_111111, 346 c______1, 347 c______1, 348 c1_____1, 349 c_1111__ }, /* 9 */ 350 351 { c_______, 352 c_______, 353 c_______, 354 c__11___, 355 c__11___, 356 c_______, 357 c_______, 358 c__11___, 359 c__11___ }, /* : */ 360 361 362 { c__11___, 363 c__11___, 364 c_______, 365 c_______, 366 c__11___, 367 c__11___, 368 c__1____, 369 c_1_____, 370 c_______ }, /* ; */ 371 372 { c____1__, 373 c___1___, 374 c__1____, 375 c_1_____, 376 c1______, 377 c_1_____, 378 c__1____, 379 c___1___, 380 c____1__ }, /* < */ 381 382 { c_______, 383 c_______, 384 c_______, 385 c1111111, 386 c_______, 387 c1111111, 388 c_______, 389 c_______, 390 c_______ }, /* = */ 391 392 { c__1____, 393 c___1___, 394 c____1__, 395 c_____1_, 396 c______1, 397 c_____1_, 398 c____1__, 399 c___1___, 400 c__1____ }, /* > */ 401 402 { c__1111_, 403 c_1____1, 404 c_1____1, 405 c______1, 406 c____11_, 407 c___1___, 408 c___1___, 409 c_______, 410 c___1___ }, /* ? */ 411 412 { c__1111_, 413 c_1____1, 414 c1__11_1, 415 c1_1_1_1, 416 c1_1_1_1, 417 c1_1111_, 418 c1______, 419 c_1____1, 420 c__1111_ }, /* @ */ 421 422 { c__111__, 423 c_1___1_, 424 c1_____1, 425 c1_____1, 426 c1111111, 427 c1_____1, 428 c1_____1, 429 c1_____1, 430 c1_____1 }, /* A */ 431 432 { c111111_, 433 c_1____1, 434 c_1____1, 435 c_1____1, 436 c_11111_, 437 c_1____1, 438 c_1____1, 439 c_1____1, 440 c111111_ }, /* B */ 441 442 { c__1111_, 443 c_1____1, 444 c1______, 445 c1______, 446 c1______, 447 c1______, 448 c1______, 449 c_1____1, 450 c__1111_ }, /* C */ 451 452 { c11111__, 453 c_1___1_, 454 c_1____1, 455 c_1____1, 456 c_1____1, 457 c_1____1, 458 c_1____1, 459 c_1___1_, 460 c11111__ }, /* D */ 461 462 { c1111111, 463 c1______, 464 c1______, 465 c1______, 466 c111111_, 467 c1______, 468 c1______, 469 c1______, 470 c1111111 }, /* E */ 471 472 { c1111111, 473 c1______, 474 c1______, 475 c1______, 476 c111111_, 477 c1______, 478 c1______, 479 c1______, 480 c1______ }, /* F */ 481 482 { c__1111_, 483 c_1____1, 484 c1______, 485 c1______, 486 c1______, 487 c1__1111, 488 c1_____1, 489 c_1____1, 490 c__1111_ }, /* G */ 491 492 { c1_____1, 493 c1_____1, 494 c1_____1, 495 c1_____1, 496 c1111111, 497 c1_____1, 498 c1_____1, 499 c1_____1, 500 c1_____1 }, /* H */ 501 502 { c_11111_, 503 c___1___, 504 c___1___, 505 c___1___, 506 c___1___, 507 c___1___, 508 c___1___, 509 c___1___, 510 c_11111_ }, /* I */ 511 512 { c__11111, 513 c____1__, 514 c____1__, 515 c____1__, 516 c____1__, 517 c____1__, 518 c____1__, 519 c1___1__, 520 c_111___ }, /* J */ 521 522 { c1_____1, 523 c1____1_, 524 c1___1__, 525 c1__1___, 526 c1_1____, 527 c11_1___, 528 c1___1__, 529 c1____1_, 530 c1_____1 }, /* K */ 531 532 { c1______, 533 c1______, 534 c1______, 535 c1______, 536 c1______, 537 c1______, 538 c1______, 539 c1______, 540 c1111111 }, /* L */ 541 542 { c1_____1, 543 c11___11, 544 c1_1_1_1, 545 c1__1__1, 546 c1_____1, 547 c1_____1, 548 c1_____1, 549 c1_____1, 550 c1_____1 }, /* M */ 551 552 { c1_____1, 553 c11____1, 554 c1_1___1, 555 c1__1__1, 556 c1___1_1, 557 c1____11, 558 c1_____1, 559 c1_____1, 560 c1_____1 }, /* N */ 561 562 { c__111__, 563 c_1___1_, 564 c1_____1, 565 c1_____1, 566 c1_____1, 567 c1_____1, 568 c1_____1, 569 c_1___1_, 570 c__111__ }, /* O */ 571 572 { c111111_, 573 c1_____1, 574 c1_____1, 575 c1_____1, 576 c111111_, 577 c1______, 578 c1______, 579 c1______, 580 c1______ }, /* P */ 581 582 { c__111__, 583 c_1___1_, 584 c1_____1, 585 c1_____1, 586 c1_____1, 587 c1__1__1, 588 c1___1_1, 589 c_1___1_, 590 c__111_1 }, /* Q */ 591 592 { c111111_, 593 c1_____1, 594 c1_____1, 595 c1_____1, 596 c111111_, 597 c1__1___, 598 c1___1__, 599 c1____1_, 600 c1_____1 }, /* R */ 601 602 { c_11111_, 603 c1_____1, 604 c1______, 605 c1______, 606 c_11111_, 607 c______1, 608 c______1, 609 c1_____1, 610 c_11111_ }, /* S */ 611 612 { c1111111, 613 c___1___, 614 c___1___, 615 c___1___, 616 c___1___, 617 c___1___, 618 c___1___, 619 c___1___, 620 c___1___ }, /* T */ 621 622 { c1_____1, 623 c1_____1, 624 c1_____1, 625 c1_____1, 626 c1_____1, 627 c1_____1, 628 c1_____1, 629 c1_____1, 630 c_11111_ }, /* U */ 631 632 { c1_____1, 633 c1_____1, 634 c1_____1, 635 c_1___1_, 636 c_1___1_, 637 c__1_1__, 638 c__1_1__, 639 c___1___, 640 c___1___ }, /* V */ 641 642 { c1_____1, 643 c1_____1, 644 c1_____1, 645 c1_____1, 646 c1__1__1, 647 c1__1__1, 648 c1_1_1_1, 649 c11___11, 650 c1_____1 }, /* W */ 651 652 { c1_____1, 653 c1_____1, 654 c_1___1_, 655 c__1_1__, 656 c___1___, 657 c__1_1__, 658 c_1___1_, 659 c1_____1, 660 c1_____1 }, /* X */ 661 662 { c1_____1, 663 c1_____1, 664 c_1___1_, 665 c__1_1__, 666 c___1___, 667 c___1___, 668 c___1___, 669 c___1___, 670 c___1___ }, /* Y */ 671 672 { c1111111, 673 c______1, 674 c_____1_, 675 c____1__, 676 c___1___, 677 c__1____, 678 c_1_____, 679 c1______, 680 c1111111 }, /* Z */ 681 682 { c_1111__, 683 c_1_____, 684 c_1_____, 685 c_1_____, 686 c_1_____, 687 c_1_____, 688 c_1_____, 689 c_1_____, 690 c_1111__ }, /* [ */ 691 692 { c_______, 693 c1______, 694 c_1_____, 695 c__1____, 696 c___1___, 697 c____1__, 698 c_____1_, 699 c______1, 700 c_______ }, /* \ */ 701 702 { c__1111_, 703 c_____1_, 704 c_____1_, 705 c_____1_, 706 c_____1_, 707 c_____1_, 708 c_____1_, 709 c_____1_, 710 c__1111_ }, /* ] */ 711 712 { c___1___, 713 c__1_1__, 714 c_1___1_, 715 c1_____1, 716 c_______, 717 c_______, 718 c_______, 719 c_______ }, /* ^ */ 720 721 { c_______, 722 c_______, 723 c_______, 724 c_______, 725 c_______, 726 c_______, 727 c_______, 728 c1111111, 729 c_______ }, /* _ */ 730 731 { c__11___, 732 c__11___, 733 c___1___, 734 c____1__, 735 c_______, 736 c_______, 737 c_______, 738 c_______, 739 c_______ }, /* ` */ 740 741 { c_______, 742 c_______, 743 c_______, 744 c_1111__, 745 c_____1_, 746 c_11111_, 747 c1_____1, 748 c1____11, 749 c_1111_1 }, /* a */ 750 751 { c1______, 752 c1______, 753 c1______, 754 c1_111__, 755 c11___1_, 756 c1_____1, 757 c1_____1, 758 c11___1_, 759 c1_111__ }, /* b */ 760 761 { c_______, 762 c_______, 763 c_______, 764 c_1111__, 765 c1____1_, 766 c1______, 767 c1______, 768 c1____1_, 769 c_1111__ }, /* c */ 770 771 { c_____1_, 772 c_____1_, 773 c_____1_, 774 c_111_1_, 775 c1___11_, 776 c1____1_, 777 c1____1_, 778 c1___11_, 779 c_111_1_ }, /* d */ 780 781 { c_______, 782 c_______, 783 c_______, 784 c_1111__, 785 c1____1_, 786 c111111_, 787 c1______, 788 c1____1_, 789 c_1111__ }, /* e */ 790 791 { c___11__, 792 c__1__1_, 793 c__1____, 794 c__1____, 795 c11111__, 796 c__1____, 797 c__1____, 798 c__1____, 799 c__1____ }, /* f */ 800 801 { c_111_1_, 802 c1___11_, 803 c1____1_, 804 c1____1_, 805 c1___11_, 806 c_111_1_, 807 c_____1_, 808 c1____1_, 809 c_1111__ }, /* g */ 810 811 { c1______, 812 c1______, 813 c1______, 814 c1_111__, 815 c11___1_, 816 c1____1_, 817 c1____1_, 818 c1____1_, 819 c1____1_ }, /* h */ 820 821 { c_______, 822 c___1___, 823 c_______, 824 c__11___, 825 c___1___, 826 c___1___, 827 c___1___, 828 c___1___, 829 c__111__ }, /* i */ 830 831 { c____11_, 832 c_____1_, 833 c_____1_, 834 c_____1_, 835 c_____1_, 836 c_____1_, 837 c_____1_, 838 c_1___1_, 839 c__111__ }, /* j */ 840 841 { c1______, 842 c1______, 843 c1______, 844 c1___1__, 845 c1__1___, 846 c1_1____, 847 c11_1___, 848 c1___1__, 849 c1____1_ }, /* k */ 850 851 { c__11___, 852 c___1___, 853 c___1___, 854 c___1___, 855 c___1___, 856 c___1___, 857 c___1___, 858 c___1___, 859 c__111__ }, /* l */ 860 861 { c_______, 862 c_______, 863 c_______, 864 c1_1_11_, 865 c11_1__1, 866 c1__1__1, 867 c1__1__1, 868 c1__1__1, 869 c1__1__1 }, /* m */ 870 871 { c_______, 872 c_______, 873 c_______, 874 c1_111__, 875 c11___1_, 876 c1____1_, 877 c1____1_, 878 c1____1_, 879 c1____1_ }, /* n */ 880 881 { c_______, 882 c_______, 883 c_______, 884 c_1111__, 885 c1____1_, 886 c1____1_, 887 c1____1_, 888 c1____1_, 889 c_1111__ }, /* o */ 890 891 { c1_111__, 892 c11___1_, 893 c1____1_, 894 c1____1_, 895 c11___1_, 896 c1_111__, 897 c1______, 898 c1______, 899 c1______ }, /* p */ 900 901 { c_111_1_, 902 c1___11_, 903 c1____1_, 904 c1____1_, 905 c1___11_, 906 c_111_1_, 907 c_____1_, 908 c_____1_, 909 c_____1_ }, /* q */ 910 911 { c_______, 912 c_______, 913 c_______, 914 c1_111__, 915 c11___1_, 916 c1______, 917 c1______, 918 c1______, 919 c1______ }, /* r */ 920 921 { c_______, 922 c_______, 923 c_______, 924 c_1111__, 925 c1____1_, 926 c_11____, 927 c___11__, 928 c1____1_, 929 c_1111__ }, /* s */ 930 931 { c_______, 932 c__1____, 933 c__1____, 934 c11111__, 935 c__1____, 936 c__1____, 937 c__1____, 938 c__1__1_, 939 c___11__ }, /* t */ 940 941 { c_______, 942 c_______, 943 c_______, 944 c1____1_, 945 c1____1_, 946 c1____1_, 947 c1____1_, 948 c1___11_, 949 c_111_1_ }, /* u */ 950 951 { c_______, 952 c_______, 953 c_______, 954 c1_____1, 955 c1_____1, 956 c1_____1, 957 c_1___1_, 958 c__1_1__, 959 c___1___ }, /* v */ 960 961 { c_______, 962 c_______, 963 c_______, 964 c1_____1, 965 c1__1__1, 966 c1__1__1, 967 c1__1__1, 968 c1__1__1, 969 c_11_11_ }, /* w */ 970 971 { c_______, 972 c_______, 973 c_______, 974 c1____1_, 975 c_1__1__, 976 c__11___, 977 c__11___, 978 c_1__1__, 979 c1____1_ }, /* x */ 980 981 { c1____1_, 982 c1____1_, 983 c1____1_, 984 c1____1_, 985 c1___11_, 986 c_111_1_, 987 c_____1_, 988 c1____1_, 989 c_1111__ }, /* y */ 990 991 { c_______, 992 c_______, 993 c_______, 994 c111111_, 995 c____1__, 996 c___1___, 997 c__1____, 998 c_1_____, 999 c111111_ }, /* z */ 1000 1001 { c___11__, 1002 c__1____, 1003 c__1____, 1004 c__1____, 1005 c_1_____, 1006 c__1____, 1007 c__1____, 1008 c__1____, 1009 c___11__ }, /* } */ 1010 1011 { c___1___, 1012 c___1___, 1013 c___1___, 1014 c___1___, 1015 c___1___, 1016 c___1___, 1017 c___1___, 1018 c___1___, 1019 c___1___ }, /* | */ 1020 1021 { c__11___, 1022 c____1__, 1023 c____1__, 1024 c____1__, 1025 c_____1_, 1026 c____1__, 1027 c____1__, 1028 c____1__, 1029 c__11___ }, /* } */ 1030 1031 { c_11____, 1032 c1__1__1, 1033 c____11_, 1034 c_______, 1035 c_______, 1036 c_______, 1037 c_______, 1038 c_______, 1039 c_______ }, /* ~ */ 1040 1041 { c_1__1__, 1042 c1__1__1, 1043 c__1__1_, 1044 c_1__1__, 1045 c1__1__1, 1046 c__1__1_, 1047 c_1__1__, 1048 c1__1__1, 1049 c__1__1_ } /* rub-out */ 1050 }; 1051