h_roman8.h 2.4 KB

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