|
|
1.1 root 1: /*
2: * hyphen.h
3: * Nroff/Troff.
4: * Hyphenation header file.
5: */
6:
7: #define LNUL 0 /* Null */
8: #define LEOK 1 /* End of key */
9: #define LHYP 2 /* Hyphenation point */
10: #define LRHP 3 /* Remove hyphen */
11: #define LCON 4 /* Continuation point */
12: #define LNEW 5 /* Get next char */
13: #define LOLD 6 /* Get previous character */
14: #define LBRF 7 /* Fail */
15: #define LBRS 8 /* Succeed */
16: #define LCBT 9 /* Conditional branch on true */
17: #define LCBF 10 /* Conditional branch on false */
18:
19: /*
20: * These must agree with the definitions in `code.h'.
21: * The order must not be changed.
22: */
23: #define LAAA 37 /* a */
24: #define LBBB 38 /* b */
25: #define LCCC 39 /* c */
26: #define LDDD 40 /* d */
27: #define LEEE 41 /* e */
28: #define LFFF 42 /* f */
29: #define LGGG 43 /* g */
30: #define LHHH 44 /* h */
31: #define LIII 45 /* i */
32: #define LJJJ 46 /* j */
33: #define LKKK 47 /* k */
34: #define LLLL 48 /* L */
35: #define LMMM 49 /* m */
36: #define LNNN 50 /* n */
37: #define LOOO 51 /* o */
38: #define LPPP 52 /* p */
39: #define LQQQ 53 /* q */
40: #define LRRR 54 /* r */
41: #define LSSS 55 /* s */
42: #define LTTT 56 /* t */
43: #define LUUU 57 /* u */
44: #define LVVV 58 /* v */
45: #define LWWW 59 /* w */
46: #define LXXX 60 /* x */
47: #define LYYY 61 /* y */
48: #define LZZZ 62 /* z */
49: #define LDCH 63 /* ch */
50: #define LDGH 64 /* gh */
51: #define LDPH 65 /* ph */
52: #define LDSH 66 /* sh */
53: #define LDTH 67 /* th */
54:
55: /*
56: * Sizes of tables.
57: */
58: #define EXCSIZE 346 /* Size of exception table */
59: #define SUFSIZE 28 /* Size of suffix table */
60: #define PRESIZE 30 /* Size of prefix table */
61:
62: /*
63: * Tables.
64: */
65: extern char contab[]; /* For determining type of letter */
66: extern char dbctab[]; /* Certain pairs of consonants */
67: extern char *exctab[EXCSIZE]; /* Exception table */
68: extern char hindbuf[WORSIZE]; /* Index buffer for phonetics */
69: extern char hletbuf[WORSIZE]; /* Phonetic buffer */
70: extern char hyphbuf[WORSIZE]; /* Hyphentaion flag buffer */
71: extern char hyptab[]; /* Data for three above tables */
72: extern char mm0code[]; /* Code for matching something */
73: extern char mm1code[]; /* Code for matching something else */
74: extern char *pretab[PRESIZE]; /* Prefix table */
75: extern char *suftab[SUFSIZE]; /* Suffix table */
76:
77: /* end of hyphen.h */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.