/*
 *	$Source: /u1/X/xman/RCS/config.h,v $
 *	$Header: config.h,v 1.2 87/02/03 15:34:46 swick Exp $
 */

/*
 * Easily configurable options to xman, see also extern.c
 */

#define MANDIR "/mit/visual/man/"	/* root directory for manuals */
#define MAXSECT 12		/* maximum sections such as 1,2,3,n,l */
#define MAXENTRY 600		/* max individual man entries like cat.1 */
#define MAXPAGES 100		/* max pages in an entry */
#define MAN "man"		/* manual directory prefix (man1,man2...) */
#define LMAN 3			/* length for strcmpn */
#define CAT "cat"		/* preformatted dir prefix (cat1,cat2...) */
#define LCAT 3			/* length for strcmpn */

#define WHATIS "/usr/man/whatis"/* for apropos */
#define APROPOS_LABEL "Keyword: "

#define TITLEFONT "helv12b"	/* font used for title bar */
#define TITLEBORDER 1		/* border width of title bar */

#define MENUFONT "helv12"	/* font used in the pull-down menus */

/*
 * These are the fonts used in displaying both manual pages and
 * the menu of manual pages. Consequently, it's not as changeable
 * as one might hope. 12 point or larger just won't allow the entire
 * thing to fit in a window. I suppose one could use scrollable windows
 * but I think if you add that you'll find it's still not quite what you
 * want (it's annoying to read something scrolling 1/3 of a page up/down.)
 * Of course, a different 10 point (or smaller) font should be fine, so I
 * put this here.
 */
#define BODYNORMAL "timrom10"
#define BODYBOLD "timrom10b"
#define BODYITALIC "timrom10i"

/*
 * In order to make the cat'd man pages look "pretty" we look for
 * lines which only contain one of the following strings (case dependant)
 * and display them in bold. You might want to modify the list, I should
 * probably write a sed script or something that just plucks these out
 * of the .SH macros definitions. Anyhow, it doesn't much matter if you
 * miss one, so it won't be bold, so what.
 */
extern char *keywords[];	/* in extern.c */

/*
 * This is actually tuned so that both the menus and pages will fit
 * in the same window, you might want to make the whole thing more
 * sophisticated, but this is it for now. It would be harmless to make
 * it wider (NCHARS) but narrower will mean that the menus may not fit
 * and shorter/longer will screw up the paging.
 */
#define NLINES 66
#define NCHARS 100

#define BACKSPACE 010	/* I doubt you'll need to change this */
#define MINCOL 15	/* indent text a little */

#define SECTION "Section"	/* what the section menu item will say */
#define OPTIONS "Options"	/* what the options menu item will say */
#define INFO    "Info"		/* what the info menu item will say */

/* the following is for building the Section menu */

/*
 * As we find manx or catx directories we will look in here
 * for suggested pull-down menu labels
 */

extern struct sectionNames {
  char *dirname;
  char *label;
} sectionNames[];	/* init in extern.c */

#define DEF_FOREGROUND	BlackPixmap
#define DEF_BACKGROUND	WhitePixmap

#define TMPFILE "/tmp/t.MANXXXXXX"

/*
 * The command to format a man page, sprintf'd with
 * the input and output (tmp) file (in that order) then
 * passed to system().
 */

#define MANFMT "nroff -man %s > %s"
