Groff 1.18.1 comes in with ANSI color support, enabled by default.
In "nroff" mode, italic font renders as an underlined text, which makes it indistinguishable from the bold text on color monitors (cons25 terminal type), yet it requires the less(1)'s -R option. (Refer to the new grotty(1) manpage for details.) So turn off the color support for now (when generating catpages), until we figure out what do we do with this new feature. I have a patch for grotty(1) that tells it to use the "reverse video" attribute to render the italic font. Once this is accepted, we can turn color support back on (if there won't be any objections from the community).
This commit is contained in:
parent
63577f1c09
commit
683dd9f551
@ -9,7 +9,7 @@ pager= more -s
|
||||
manpath_config_file= /etc/manpath.config
|
||||
troff= /usr/bin/groff -S -man
|
||||
# -Tascii or localized encoding added automatically
|
||||
nroff= /usr/bin/groff -S -Wall -mtty-char -man
|
||||
nroff= /usr/bin/groff -P-c -S -Wall -mtty-char -man
|
||||
apropos= /usr/bin/apropos
|
||||
whatis= /usr/bin/whatis
|
||||
eqn= /usr/bin/eqn
|
||||
|
@ -57,7 +57,7 @@ MINSTALL?= ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
|
||||
|
||||
CATDIR= ${MANDIR:H:S/$/\/cat/}
|
||||
CATEXT= .cat
|
||||
MROFF_CMD?= groff -Tascii -mtty-char -man -t
|
||||
MROFF_CMD?= groff -P-c -Tascii -mtty-char -man -t
|
||||
|
||||
MCOMPRESS_CMD?= ${COMPRESS_CMD}
|
||||
MCOMPRESS_EXT?= ${COMPRESS_EXT}
|
||||
|
@ -446,7 +446,7 @@ process_page(char *mandir, char *src, char *cat, int src_gzipped)
|
||||
}
|
||||
snprintf(tmp_file, sizeof tmp_file, "%s.tmp", cat);
|
||||
snprintf(cmd, sizeof cmd,
|
||||
"%scat %s | tbl | nroff -T%s -man | col | gzip -cn > %s.tmp",
|
||||
"%scat %s | tbl | nroff -c -T%s -man | col | gzip -cn > %s.tmp",
|
||||
src_gzipped ? "z" : "", src, nroff_device, cat);
|
||||
if (system(cmd) != 0)
|
||||
err(1, "formatting pipeline");
|
||||
|
Loading…
Reference in New Issue
Block a user