xref: /original-bsd/old/roff/nroff/ntab.c (revision 16bc4816)
1 /*-
2  * Copyright (c) 1991 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)ntab.c	4.2 (Berkeley) 04/18/91";
10 #endif /* not lint */
11 
12 #define BYTE 8
13 #define PAIR(A,B) (A|(B<<BYTE))
14 /*
15 character name tables
16 modified for BTL special font version 4
17 and Commercial II
18 */
19 
20 
21 int chtab [] = {
22 PAIR('h','y'), 0200,	/*hyphen*/
23 PAIR('b','u'), 0201,	/*bullet*/
24 PAIR('s','q'), 0202,	/*square*/
25 PAIR('e','m'), 0203,	/*3/4em*/
26 PAIR('r','u'), 0204,	/*rule*/
27 PAIR('1','4'), 0205,	/*1/4*/
28 PAIR('1','2'), 0206,	/*1/2*/
29 PAIR('3','4'), 0207,	/*3/4*/
30 PAIR('m','i'), 0302,	/*equation minus*/
31 PAIR('f','i'), 0211,	/*fi*/
32 PAIR('f','l'), 0212,	/*fl*/
33 PAIR('f','f'), 0213,	/*ff*/
34 PAIR('F','i'), 0214,	/*ffi*/
35 PAIR('F','l'), 0215,	/*ffl*/
36 PAIR('d','e'), 0216,	/*degree*/
37 PAIR('d','g'), 0217,	/*dagger*/
38 PAIR('s','c'), 0220,	/*section*/
39 PAIR('f','m'), 0221,	/*foot mark*/
40 PAIR('a','a'), 0222,	/*acute accent*/
41 PAIR('g','a'), 0223,	/*grave accent*/
42 PAIR('u','l'), 0224,	/*underrule*/
43 PAIR('s','l'), 0225,	/*slash (longer)*/
44 PAIR('*','a'), 0230,	/*alpha*/
45 PAIR('*','b'), 0231,	/*beta*/
46 PAIR('*','g'), 0232,	/*gamma*/
47 PAIR('*','d'), 0233,	/*delta*/
48 PAIR('*','e'), 0234,	/*epsilon*/
49 PAIR('*','z'), 0235,	/*zeta*/
50 PAIR('*','y'), 0236,	/*eta*/
51 PAIR('*','h'), 0237,	/*theta*/
52 PAIR('*','i'), 0240,	/*iota*/
53 PAIR('*','k'), 0241,	/*kappa*/
54 PAIR('*','l'), 0242,	/*lambda*/
55 PAIR('*','m'), 0243,	/*mu*/
56 PAIR('*','n'), 0244,	/*nu*/
57 PAIR('*','c'), 0245,	/*xi*/
58 PAIR('*','o'), 0246,	/*omicron*/
59 PAIR('*','p'), 0247,	/*pi*/
60 PAIR('*','r'), 0250,	/*rho*/
61 PAIR('*','s'), 0251,	/*sigma*/
62 PAIR('*','t'), 0252,	/*tau*/
63 PAIR('*','u'), 0253,	/*upsilon*/
64 PAIR('*','f'), 0254,	/*phi*/
65 PAIR('*','x'), 0255,	/*chi*/
66 PAIR('*','q'), 0256,	/*psi*/
67 PAIR('*','w'), 0257,	/*omega*/
68 PAIR('*','A'), 0101,	/*Alpha*/
69 PAIR('*','B'), 0102,	/*Beta*/
70 PAIR('*','G'), 0260,	/*Gamma*/
71 PAIR('*','D'), 0261,	/*Delta*/
72 PAIR('*','E'), 0105,	/*Epsilon*/
73 PAIR('*','Z'), 0132,	/*Zeta*/
74 PAIR('*','Y'), 0110,	/*Eta*/
75 PAIR('*','H'), 0262,	/*Theta*/
76 PAIR('*','I'), 0111,	/*Iota*/
77 PAIR('*','K'), 0113,	/*Kappa*/
78 PAIR('*','L'), 0263,	/*Lambda*/
79 PAIR('*','M'), 0115,	/*Mu*/
80 PAIR('*','N'), 0116,	/*Nu*/
81 PAIR('*','C'), 0264,	/*Xi*/
82 PAIR('*','O'), 0117,	/*Omicron*/
83 PAIR('*','P'), 0265,	/*Pi*/
84 PAIR('*','R'), 0120,	/*Rho*/
85 PAIR('*','S'), 0266,	/*Sigma*/
86 PAIR('*','T'), 0124,	/*Tau*/
87 PAIR('*','U'), 0270,	/*Upsilon*/
88 PAIR('*','F'), 0271,	/*Phi*/
89 PAIR('*','X'), 0130,	/*Chi*/
90 PAIR('*','Q'), 0272,	/*Psi*/
91 PAIR('*','W'), 0273,	/*Omega*/
92 PAIR('s','r'), 0274,	/*square root*/
93 PAIR('t','s'), 0275,	/*terminal sigma*/
94 PAIR('r','n'), 0276,	/*root en*/
95 PAIR('>','='), 0277,	/*>=*/
96 PAIR('<','='), 0300,	/*<=*/
97 PAIR('=','='), 0301,	/*identically equal*/
98 PAIR('~','='), 0303,	/*approx =*/
99 PAIR('a','p'), 0304,	/*approximates*/
100 PAIR('!','='), 0305,	/*not equal*/
101 PAIR('-','>'), 0306,	/*right arrow*/
102 PAIR('<','-'), 0307,	/*left arrow*/
103 PAIR('u','a'), 0310,	/*up arrow*/
104 PAIR('d','a'), 0311,	/*down arrow*/
105 PAIR('e','q'), 0312,	/*equation equal*/
106 PAIR('m','u'), 0313,	/*multiply*/
107 PAIR('d','i'), 0314,	/*divide*/
108 PAIR('+','-'), 0315,	/*plus-minus*/
109 PAIR('c','u'), 0316,	/*cup (union)*/
110 PAIR('c','a'), 0317,	/*cap (intersection)*/
111 PAIR('s','b'), 0320,	/*subset of*/
112 PAIR('s','p'), 0321,	/*superset of*/
113 PAIR('i','b'), 0322,	/*improper subset*/
114 PAIR('i','p'), 0323,	/*  " superset*/
115 PAIR('i','f'), 0324,	/*infinity*/
116 PAIR('p','d'), 0325,	/*partial derivative*/
117 PAIR('g','r'), 0326,	/*gradient*/
118 PAIR('n','o'), 0327,	/*not*/
119 PAIR('i','s'), 0330,	/*integral sign*/
120 PAIR('p','t'), 0331,	/*proportional to*/
121 PAIR('e','s'), 0332,	/*empty set*/
122 PAIR('m','o'), 0333,	/*member of*/
123 PAIR('p','l'), 0334,	/*equation plus*/
124 PAIR('r','g'), 0335,	/*registered*/
125 PAIR('c','o'), 0336,	/*copyright*/
126 PAIR('b','r'), 0337,	/*box vert rule*/
127 PAIR('c','t'), 0340,	/*cent sign*/
128 PAIR('d','d'), 0341,	/*dbl dagger*/
129 PAIR('r','h'), 0342,	/*right hand*/
130 PAIR('l','h'), 0343,	/*left hand*/
131 PAIR('*','*'), 0344,	/*math * */
132 PAIR('b','s'), 0345,	/*bell system sign*/
133 PAIR('o','r'), 0346,	/*or*/
134 PAIR('c','i'), 0347,	/*circle*/
135 PAIR('l','t'), 0350,	/*left top (of big curly)*/
136 PAIR('l','b'), 0351,	/*left bottom*/
137 PAIR('r','t'), 0352,	/*right top*/
138 PAIR('r','b'), 0353,	/*right bot*/
139 PAIR('l','k'), 0354,	/*left center of big curly bracket*/
140 PAIR('r','k'), 0355,	/*right center of big curly bracket*/
141 PAIR('b','v'), 0356,	/*bold vertical*/
142 PAIR('l','f'), 0357,	/*left floor (left bot of big sq bract)*/
143 PAIR('r','f'), 0360,	/*right floor (rb of ")*/
144 PAIR('l','c'), 0361,	/*left ceiling (lt of ")*/
145 PAIR('r','c'), 0362,	/*right ceiling (rt of ")*/
146 0,0};
147