home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / linuxdoc-sgml-1.1 / sgmls-1.1 / ebcdic.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  1.5 KB  |  41 lines

  1. /* SGML Character Use: EBCDIC
  2. */
  3.  
  4. #define EOFCHAR   '\077'      /* FUNCTION: EE (entity end: files). */
  5. #define EOBCHAR   '\034'      /* NONCHAR: EOB (file entity: end of buffer. */
  6. #define RSCHAR    '\045'      /* FUNCTION: RS (record start). */
  7. #define RECHAR    '\015'      /* FUNCTION: RE (record end). */
  8. #define TABCHAR   '\005'      /* FUNCTION: TAB (horizontal tab). */
  9. #define SPCCHAR   '\100'      /* FUNCTION: SPACE (horizontal space). */
  10. #define GENRECHAR '\026'      /* NONCHAR: Generated RE. */
  11. #define DELCDATA  '\035'      /* NONCHAR: Delimiter for CDATA entity in
  12.                  attribute value. */
  13. #define DELSDATA  '\036'      /* NONCHAR: Delimiter for SDATA entity in
  14.                  attribute value. */
  15. #define DELNONCH  '\037'      /* NONCHAR: non-SGML character prefix. */
  16.  
  17. /* This should work for EBCDIC.  See comment in latin1.h. */
  18. #define SHIFTNON(ch) ((UNCH)(ch) | 0200)
  19. #define UNSHIFTNON(ch) ((UNCH)(ch) & ~0200)
  20.  
  21. /* See comment in latin1.h. */
  22. #define CANON_NONSGML 255
  23.  
  24. /* See comment in latin1.h. */
  25. #define CANON_DATACHAR 254
  26.  
  27. /* Components for a formal public identifier for the whole of the
  28. system character set.  Protect with ifndef so that it can be overriden
  29. in config.h. */
  30.  
  31. /* Use a private escape sequence. */
  32. #ifndef SYSTEM_CHARSET_DESIGNATING_SEQUENCE
  33. #define SYSTEM_CHARSET_DESIGNATING_SEQUENCE "ESC 2/5 2/15 3/0"
  34. #endif
  35. #ifndef SYSTEM_CHARSET_OWNER
  36. #define SYSTEM_CHARSET_OWNER "-//IBM"
  37. #endif
  38. #ifndef SYSTEM_CHARSET_DESCRIPTION
  39. #define SYSTEM_CHARSET_DESCRIPTION "Code Page 1047"
  40. #endif
  41.