make xman work again.

if we run into unformatted pages, they're candidate for mandoc (otherwise,
groff should have formatted them already).

We shouldn't ever try to run them thru tbl first, since mandoc takes care
of enough tbl constructs, and will get confused at roff low-level anyways.

So, just run thru cat to avoid changing xman too much.

Since mandoc doesn't have a -Tlatin1 mode, approximate it with -Tascii.
-Tutf8 is definitely out of question until xman talks utf8.

okay matthieu@
This commit is contained in:
espie 2012-01-08 14:03:48 +00:00
parent 5e8328b955
commit 6de1c98f99

View File

@ -177,7 +177,9 @@ from the X Consortium.
#endif
#ifndef HANDLE_ROFFSEQ
# if defined(ultrix)
# if defined(__OpenBSD__)
# define FORMAT "| mandoc -Tascii"
# elif defined(ultrix)
# define FORMAT "| nroff -man" /* The format command. */
# elif defined(CSRG_BASED)
# define FORMAT "| eqn | tbl | nroff -mandoc"
@ -194,14 +196,16 @@ from the X Consortium.
# define ZSOELIM "zsoelim"
# else
# define ZSOELIM "soelim"
#endif
# endif
# define EQN "eqn"
# define TBL "tbl"
# define GRAP "grap"
# define PIC "pic"
# define VGRIND "vgrind"
# define REFER "refer"
# if defined(CSRG_BASED)
# if defined(__OpenBSD__)
# define FORMAT "mandoc -Tascii"
# elif defined(CSRG_BASED)
# define FORMAT "nroff -mandoc"
# elif defined(linux)
# define FORMAT "GROFF_NO_SGR= groff -Tlatin1 -mandoc"
@ -212,6 +216,9 @@ from the X Consortium.
# endif
# define DEFAULT_MANROFFSEQ "et"
#endif /*HANDLE_ROFFSEQ */
#if defined(__OpenBSD__)
# define TBL "cat"
#endif
/*
* Names of the man and cat dirs.