home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume8 / dca2troff / do_sfe2.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-02-18  |  782 b   |  41 lines

  1. struct lang {
  2.     int splangn;
  3.     char *splang;
  4. } spellchk[] = {
  5.     0,    "No spellcheck",
  6.     1,    "American English",
  7.     2,    "UK English",
  8.     3,    "German",
  9.     4,    "Dutch",
  10.     5,    "National French",
  11.     6,    "Canadian French",
  12.     7,    "Italian",
  13.     8,    "Spanish",
  14.     9,    "Swedish",
  15.     10,    "Finnish",
  16.     11,    "Danish",
  17.     12,    "Norwegian",
  18.     0xffff,    "Use current language"
  19. };
  20.  
  21. #include "dca2troff.h"
  22. /* structured field class e2 */
  23. do_sfe2()
  24. {
  25.     switch(sf_type)
  26.     {
  27.     case 0x01:            /* PMF  - Primary Master Format */
  28.     case 0x02:            /* AMF  - Alternate Master Format */
  29.     case 0x04:            /* TUFC - Text Unit Format Change */
  30.         flush_sf();
  31.         return;
  32.     case 0x05:            /* DP   - Document Parameters */
  33.         flush_sf();
  34.         return;
  35.     default:
  36.         fprintf(stderr, "unknown sf e2 type (x%02x)\n", sf_type);
  37.         flush_sf();
  38.         return;
  39.     }
  40. }
  41.