1 /* This file is part of the GNU plotutils package.  Copyright (C) 1995,
2    1996, 1997, 1998, 1999, 2000, 2005, 2008, Free Software Foundation, Inc.
3 
4    The GNU plotutils package is free software.  You may redistribute it
5    and/or modify it under the terms of the GNU General Public License as
6    published by the Free Software foundation; either version 2, or (at your
7    option) any later version.
8 
9    The GNU plotutils package is distributed in the hope that it will be
10    useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    General Public License for more details.
13 
14    You should have received a copy of the GNU General Public License along
15    with the GNU plotutils package; see the file COPYING.  If not, write to
16    the Free Software Foundation, Inc., 51 Franklin St., Fifth Floor,
17    Boston, MA 02110-1301, USA. */
18 
19 /* This header file specifies HP's Roman-8 encoding (used by HP's vector
20    fonts [`stick fonts'], including both fixed-width stick fonts and
21    variable-width arc fonts).  In particular, it gives a mapping from the
22    upper half of the ISO-Latin-1 character set to Roman-8. */
23 
24 /* ISO-Latin-1 characters not included in Roman-8; we map each of them to
25    040, i.e., to the space character. */
26 #define COPYRIGHT 040
27 #define NEGATION 040
28 #define REGISTERED 040
29 #define RAISEDONE 040
30 #define RAISEDTWO 040
31 #define RAISEDTHREE 040
32 #define CEDILLA 040
33 #define MULTIPLY 040
34 #define DIVIDES 040
35 
36 static const unsigned char iso_to_roman8 [128] =
37 {
38     0, 0, 0, 0, 0, 0, 0, 0,
39     0, 0, 0, 0, 0, 0, 0, 0,
40     0, 0, 0, 0, 0, 0, 0, 0,
41     0, 0, 0, 0, 0, 0, 0, 0,
42     /* printable iso-latin-1 characters */
43     040, 0270, 0277, 0257, 0272, 0274, (unsigned char)'|', 0275,
44     0253, COPYRIGHT, 0371, 0373, NEGATION, (unsigned char)'-', REGISTERED, 0260,
45     0263, 0376, RAISEDTWO, RAISEDTHREE, 0250, 0363, 0364, 0362,
46     CEDILLA, RAISEDONE, 0372, 0375, 0367, 0370, 0365, 0271,
47     0241, 0340, 0242, 0341, 0330, 0320, 0323, 0264,
48     0243, 0334, 0244, 0245, 0346, 0345, 0246, 0247,
49     0343, 0266, 0350, 0347, 0337, 0351, 0332, MULTIPLY,
50     0322, 0255, 0355, 0256, 0333, 0261, 0360, 0336,
51     0310, 0304, 0300, 0342, 0314, 0324, 0327, 0265,
52     0311, 0305, 0301, 0315, 0331, 0325, 0321, 0335,
53     0344, 0267, 0312, 0306, 0302, 0352, 0316, DIVIDES,
54     0326, 0313, 0307, 0303, 0317, 0262, 0361, 0357,
55 };
56