xref: /csrg-svn/old/roff/nroff_term/tablpr.c (revision 48306)
1*48306Sbostic /*-
2*48306Sbostic  * %sccs.include.proprietary.c%
3*48306Sbostic  *
4*48306Sbostic  *	@(#)tablpr.c	4.2 (Berkeley) 04/18/91
5*48306Sbostic  */
6*48306Sbostic 
714366Ssam #define INCH 240
814366Ssam /*
914366Ssam  * LPR or CRT 10 Pitch
1014366Ssam  * nroff driving table
1114366Ssam  * no reverse or half line feeds
1214366Ssam  * by UCB Computer Center
1314366Ssam  */
1414366Ssam struct {
1514366Ssam 	int bset;
1614366Ssam 	int breset;
1714366Ssam 	int Hor;
1814366Ssam 	int Vert;
1914366Ssam 	int Newline;
2014366Ssam 	int Char;
2114366Ssam 	int Em;
2214366Ssam 	int Halfline;
2314366Ssam 	int Adj;
2414366Ssam 	char *twinit;
2514366Ssam 	char *twrest;
2614366Ssam 	char *twnl;
2714366Ssam 	char *hlr;
2814366Ssam 	char *hlf;
2914366Ssam 	char *flr;
3014366Ssam 	char *bdon;
3114366Ssam 	char *bdoff;
3214366Ssam 	char *ploton;
3314366Ssam 	char *plotoff;
3414366Ssam 	char *up;
3514366Ssam 	char *down;
3614366Ssam 	char *right;
3714366Ssam 	char *left;
3814366Ssam 	char *codetab[256-32];
3914366Ssam 	int zzz;
4014366Ssam 	} t = {
4114366Ssam /*bset*/	0,
4214366Ssam /*breset*/	0,
4314366Ssam /*Hor*/		INCH/10,
4414366Ssam /*Vert*/	INCH/6,
4514366Ssam /*Newline*/	INCH/6,
4614366Ssam /*Char*/	INCH/10,
4714366Ssam /*Em*/		INCH/10,
4814366Ssam /*Halfline*/	INCH/12,
4914366Ssam /*Adj*/		INCH/10,
5014366Ssam /*twinit*/	"",
5114366Ssam /*twrest*/	"",
5214366Ssam /*twnl*/	"\n",
5314366Ssam /*hlr*/		"",
5414366Ssam /*hlf*/		"",
5514366Ssam /*flr*/		"",
5614366Ssam /*bdon*/	"",
5714366Ssam /*bdoff*/	"",
5814366Ssam /*ploton*/	"",
5914366Ssam /*plotoff*/	"",
6014366Ssam /*up*/		"",
6114366Ssam /*down*/	"",
6214366Ssam /*right*/	"",
6314366Ssam /*left*/	"",
6414366Ssam /*codetab*/
6514366Ssam "\001 ",	/*space*/
6614366Ssam "\001!",	/*!*/
6714366Ssam "\001\"",	/*"*/
6814366Ssam "\001#",	/*#*/
6914366Ssam "\001$",	/*$*/
7014366Ssam "\001%",	/*%*/
7114366Ssam "\001&",	/*&*/
7214366Ssam "\001'",	/*' close*/
7314366Ssam "\001(",	/*(*/
7414366Ssam "\001)",	/*)*/
7514366Ssam "\001*",	/***/
7614366Ssam "\001+",	/*+*/
7714366Ssam "\001,",	/*,*/
7814366Ssam "\001-",	/*-*/
7914366Ssam "\001.",	/*.*/
8014366Ssam "\001/",	/*/*/
8114366Ssam "\2010",	/*0*/
8214366Ssam "\2011",	/*1*/
8314366Ssam "\2012",	/*2*/
8414366Ssam "\2013",	/*3*/
8514366Ssam "\2014",	/*4*/
8614366Ssam "\2015",	/*5*/
8714366Ssam "\2016",	/*6*/
8814366Ssam "\2017",	/*7*/
8914366Ssam "\2018",	/*8*/
9014366Ssam "\2019",	/*9*/
9114366Ssam "\001:",	/*:*/
9214366Ssam "\001;",	/*;*/
9314366Ssam "\001<",	/*<*/
9414366Ssam "\001=",	/*=*/
9514366Ssam "\001>",	/*>*/
9614366Ssam "\001?",	/*?*/
9714366Ssam "\001@",	/*@*/
9814366Ssam "\201A",	/*A*/
9914366Ssam "\201B",	/*B*/
10014366Ssam "\201C",	/*C*/
10114366Ssam "\201D",	/*D*/
10214366Ssam "\201E",	/*E*/
10314366Ssam "\201F",	/*F*/
10414366Ssam "\201G",	/*G*/
10514366Ssam "\201H",	/*H*/
10614366Ssam "\201I",	/*I*/
10714366Ssam "\201J",	/*J*/
10814366Ssam "\201K",	/*K*/
10914366Ssam "\201L",	/*L*/
11014366Ssam "\201M",	/*M*/
11114366Ssam "\201N",	/*N*/
11214366Ssam "\201O",	/*O*/
11314366Ssam "\201P",	/*P*/
11414366Ssam "\201Q",	/*Q*/
11514366Ssam "\201R",	/*R*/
11614366Ssam "\201S",	/*S*/
11714366Ssam "\201T",	/*T*/
11814366Ssam "\201U",	/*U*/
11914366Ssam "\201V",	/*V*/
12014366Ssam "\201W",	/*W*/
12114366Ssam "\201X",	/*X*/
12214366Ssam "\201Y",	/*Y*/
12314366Ssam "\201Z",	/*Z*/
12414366Ssam "\001[",	/*[*/
12514366Ssam "\001\\",	/*\*/
12614366Ssam "\001]",	/*]*/
12714366Ssam "\001^",	/*^*/
12814366Ssam "\001_",	/*_*/
12914366Ssam "\001`",	/*` open*/
13014366Ssam "\201a",	/*a*/
13114366Ssam "\201b",	/*b*/
13214366Ssam "\201c",	/*c*/
13314366Ssam "\201d",	/*d*/
13414366Ssam "\201e",	/*e*/
13514366Ssam "\201f",	/*f*/
13614366Ssam "\201g",	/*g*/
13714366Ssam "\201h",	/*h*/
13814366Ssam "\201i",	/*i*/
13914366Ssam "\201j",	/*j*/
14014366Ssam "\201k",	/*k*/
14114366Ssam "\201l",	/*l*/
14214366Ssam "\201m",	/*m*/
14314366Ssam "\201n",	/*n*/
14414366Ssam "\201o",	/*o*/
14514366Ssam "\201p",	/*p*/
14614366Ssam "\201q",	/*q*/
14714366Ssam "\201r",	/*r*/
14814366Ssam "\201s",	/*s*/
14914366Ssam "\201t",	/*t*/
15014366Ssam "\201u",	/*u*/
15114366Ssam "\201v",	/*v*/
15214366Ssam "\201w",	/*w*/
15314366Ssam "\201x",	/*x*/
15414366Ssam "\201y",	/*y*/
15514366Ssam "\201z",	/*z*/
15614366Ssam "\001{",	/*{*/
15714366Ssam "\001|",	/*|*/
15814366Ssam "\001}",	/*}*/
15914366Ssam "\001~",	/*~*/
16014366Ssam "\000",		/*nar sp*/
16114366Ssam "\001-",	/*hyphen*/
16214366Ssam "\001o\b+",	/*bullet*/
16314366Ssam "\002[]",	/*square*/
16414366Ssam "\001-",	/*3/4 em*/
16514366Ssam "\001_",	/*rule*/
16614366Ssam "\0031/4",	/*1/4*/
16714366Ssam "\0031/2",	/*1/2*/
16814366Ssam "\0033/4",	/*3/4*/
16914366Ssam "\001-",	/*minus*/
17014366Ssam "\202fi",	/*fi*/
17114366Ssam "\202fl",	/*fl*/
17214366Ssam "\202ff",	/*ff*/
17314366Ssam "\203ffi",	/*ffi*/
17414366Ssam "\203ffl",	/*ffl*/
17514366Ssam "\000\0",	/*degree*/
17614366Ssam "\001|\b-",	/*dagger*/
17714366Ssam "\001s\bS",	/*section*/
17814366Ssam "\001'",	/*foot mark*/
17914366Ssam "\001'",	/*acute accent*/
18014366Ssam "\001`",	/*grave accent*/
18114366Ssam "\001_",	/*underrule*/
18214366Ssam "\001/",	/*slash (longer)*/
18314366Ssam "\000",		/*half narrow space*/
18414366Ssam "\001 ",	/*unpaddable space*/
18514366Ssam "\201o\b(", 	/*alpha*/
18614366Ssam "\2018\b|", 	/*beta*/
18714366Ssam "\201>\b/", 	/*gamma*/
18814366Ssam "\201d\b`", 	/*delta*/
18914366Ssam "\201C\b-", 	/*epsilon*/
19014366Ssam "\000\0", 	/*zeta*/
19114366Ssam "\201n",	/*eta*/
19214366Ssam "\201o\b-", 	/*theta*/
19314366Ssam "\201i",	/*iota*/
19414366Ssam "\201k",	/*kappa*/
19514366Ssam "\201,\b\\", 	/*lambda*/
19614366Ssam "\201u",	/*mu*/
19714366Ssam "\201v",	/*nu*/
19814366Ssam "\000\0", 	/*xi*/
19914366Ssam "\201o",	/*omicron*/
20014366Ssam "\202i\b~i\b~",	/*pi*/
20114366Ssam "\201p",	/*rho*/
20214366Ssam "\201o\b~", 	/*sigma*/
20314366Ssam "\201i\b~", 	/*tau*/
20414366Ssam "\201u",	/*upsilon*/
20514366Ssam "\201o\b|", 	/*phi*/
20614366Ssam "\201x",	/*chi*/
20714366Ssam "\201u\b|", 	/*psi*/
20814366Ssam "\201w", 	/*omega*/
20914366Ssam "\201I\b~", 	/*Gamma*/
21014366Ssam "\202/\b_\\\b_", /*Delta*/
21114366Ssam "\201O\b-",	/*Theta*/
21214366Ssam "\202/\\",	/*Lambda*/
21314366Ssam "\201=\b_",	/*Xi*/
21414366Ssam "\202TT",	/*Pi*/
21514366Ssam "\201>\b_\b~", 	/*Sigma*/
21614366Ssam "\000",		/**/
21714366Ssam "\201Y",	/*Upsilon*/
21814366Ssam "\201O\b|",	/*Phi*/
21914366Ssam "\201U\b|",	/*Psi*/
22014366Ssam "\201O\b_",	/*Omega*/
22114366Ssam "\001v\b/",	/*square root*/
22214366Ssam "\000\0",	/*terminal sigma*/
22314366Ssam "\001~",	/*root en*/
22414366Ssam "\001>\b_",	/*>=*/
22514366Ssam "\001<\b_",	/*<=*/
22614366Ssam "\001=\b_",	/*identically equal*/
22714366Ssam "\001-",	/*equation minus*/
22814366Ssam "\001~\b_",	/*approx =*/
22914366Ssam "\001~",	/*approximates*/
23014366Ssam "\001=\b/",	/*not equal*/
23114366Ssam "\002->",	/*right arrow*/
23214366Ssam "\002<-",	/*left arrow*/
23314366Ssam "\001|\b^",	/*up arrow*/
23414366Ssam "\001|\bv",	/*down arrow*/
23514366Ssam "\001=",	/*equation equal*/
23614366Ssam "\001x",	/*multiply*/
23714366Ssam "\001:\b-",	/*divide*/
23814366Ssam "\001+\b_",	/*plus-minus*/
23914366Ssam "\002(\b~)\b~",	/*cup (union)*/
24014366Ssam "\002(\b_)\b_",	/*cap (intersection)*/
24114366Ssam "\002(=",	/*subset of*/
24214366Ssam "\002=)",	/*superset of*/
24314366Ssam "\002(=\b_",	/*improper subset*/
24414366Ssam "\002=\b_)",	/*improper superset*/
24514366Ssam "\002oo",	/*infinity*/
24614366Ssam "\001o\b`",	/*partial derivative*/
24714366Ssam "\002\\\b~/\b~", /*gradient*/
24814366Ssam "\000\0",	/*not*/
24914366Ssam "\000\0",	/*integral sign*/
25014366Ssam "\002oc",	/*proportional to*/
25114366Ssam "\001O\b/",	/*empty set*/
25214366Ssam "\001<\b-",	/*member of*/
25314366Ssam "\001+",	/*equation plus*/
25414366Ssam "\003(R)",	/*registered*/
25514366Ssam "\003(C)",	/*copyright*/
25614366Ssam "\001|",	/*box rule */
25714366Ssam "\001c\b/",	/*cent sign*/
25814366Ssam "\001|\b=",	/*dbl dagger*/
25914366Ssam "\002=>",	/*right hand*/
26014366Ssam "\002<=",	/*left hand*/
26114366Ssam "\001*",	/*math * */
26214366Ssam "\000\0",	/*bell system sign*/
26314366Ssam "\001|",	/*or (was star)*/
26414366Ssam "\001O",	/*circle*/
26514366Ssam "\001|",	/*left top of big brace*/
26614366Ssam "\001|",	/*left bot of big brace*/
26714366Ssam "\001|",	/*right top of big brace*/
26814366Ssam "\001|",	/*right bot of big brace*/
26914366Ssam "\001|",	/*left center of big brace*/
27014366Ssam "\001|",	/*right center of big brace*/
27114366Ssam "\001|",	/*bold vertical*/
27214366Ssam "\001|",	/*left floor (lb of big bracket)*/
27314366Ssam "\001|",	/*right floor (rb of big bracket)*/
27414366Ssam "\001|",	/*left ceiling (lt of big bracket)*/
27514366Ssam "\001|"		/*right ceiling (rt of big bracket)*/
27614366Ssam };
277