text.c revision b5cda42e4451eb63c27c9fb170e50e628aa89257
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "e.h"
#include "e.def"
#include <locale.h>
int csp;
int psp;
#define CSSIZE 400
char cs[420];
void name4(int, int);
void roman(int);
void shim(void);
int trans(int, char *);
void
{
int c;
char *p;
#ifndef NEQN
#else /* NEQN */
#endif /* NEQN */
if (t == QTEXT)
p = p1;
else if (t == SPACE)
p = "\\ ";
else if (t == THIN)
p = "\\|";
else if (t == TAB)
p = "\\t";
else {
if (lf == 0)
"converted token %.25s... too long"), p1);
}
p = cs;
}
if (dbg)
printf(".\t%dtext: S%d <- %s; b=%d,h=%d,lf=%c,rf=%c\n",
}
int
{
int f;
f = ROM;
switch (c) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
case ':': case ';': case '!': case '%':
case '(': case '[': case ')': case ']':
case ',':
shim();
roman(c); break;
case '.':
roman(c);
else
f = rf;
break;
case '|':
shim();
case '=':
shim();
break;
case '+':
shim();
break;
case '>': case '<':
shim();
name4(c, '=');
psp++;
} else {
}
break;
case '-':
shim();
} else {
}
break;
case '/':
shim();
break;
case '~': case ' ':
case '^':
shim(); break;
case '\\': /* troff - pass 2 or 3 more chars */
shim();
}
break;
case '\'':
break;
case 'f':
/* trying | instead of ^ */
f = ITAL;
}
else
break;
case 'j':
f = ITAL;
}
else
break;
default:
break;
}
return (f);
}
void
shim(void)
{
}
void
roman(int c)
{
}
void
{
}