The TeX escapes \s-1, \s0 around all-capital words, \*(L, \*(R for
distinguishing left/right quoting, a mysterious \& and a \ in general
(e.g. for \- as forced hyphen) occur quite often in the man-page text.
They now no longer clutter the help popups.
}
char *textPtr;
+char *texEscapes[] = { "s-1", "s0", "&", "*(L", "*(R", NULL };
int
GetNext(FILE *f)
*p++ = ' '; cnt++;
while(*line) {
if(*line < ' ') { line++; continue;}
+ if(*line == '\\') {
+ char **esc;
+ line++;
+ for(esc = texEscapes; *esc; esc++) {
+ len = strlen(*esc);
+ if(!strncmp(*esc, line, len)) {
+ line += len;
+ break;
+ }
+ }
+ continue;
+ }
if(*line == ' ' && p - q > 80) *line = '\n', q = p;
*p++ = *line++;
}