From b73e4815fa90b5e710fa6a7e240df1b45b2362aa Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 1 Nov 2023 21:35:56 -0700 Subject: [PATCH] Guidebook.txt: silence groff complaints about CR Don't attempt to switch to CR font (used to get fixed-width characters when generating output that uses proportional width ones) when output is already fixed-width (plain text). The most recent release of groff (version 1.23) complains when a font can't be found, then keeps going. Earlier versions just silently kept going. Failing to load the CR font when already producing fixed-width chars makes 'keep going' acceptable but the font-load-failure warnings are a nuisance. --- doc/Guidebook.mn | 8 +++++++- doc/fixes3-7-0.txt | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/Guidebook.mn b/doc/Guidebook.mn index b5deefcd0..8a7362014 100644 --- a/doc/Guidebook.mn +++ b/doc/Guidebook.mn @@ -1,4 +1,4 @@ -.\" $NHDT-Branch: keni-crashweb2 $:$NHDT-Revision: 1.530 $ $NHDT-Date: 1693082582 2023/08/26 20:43:02 $ +.\" $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.532 $ $NHDT-Date: 1698899756 2023/11/02 04:35:56 $ .\" .\" This is an excerpt from the 'roff' man page from the 'groff' package. .\"+-- @@ -30,6 +30,12 @@ .\" \n(fF=1: fixed-width font (Guidebook.txt), =0: proportional-width font .nr fF (\w'f'p)=(\w'F'p) \" compare width of 'f' to that of 'F' . +.\" building Guidebook.txt doesn't have CR font available; groff 1.23 issues +.\" a warning each time any font can't be loaded; earlier versions silently +.\" proceeded so lack of CR (fixed-width, moot for plain text) didn't matter +.if \n(fF .do ftr CR R .fi \" if using fixed-width, substitute R for CR +. \" (the substitution affects both '\f' and '.ft') +. .ds h0 "NetHack Guidebook .ds h1 .ds h2 % diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 465608193..2c4c93eb9 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1,4 +1,4 @@ -$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1271 $ $NHDT-Date: 1698264796 2023/10/25 20:13:16 $ +$NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1277 $ $NHDT-Date: 1698899752 2023/11/02 04:35:52 $ General Fixes and Modified Features ----------------------------------- @@ -2053,6 +2053,9 @@ sound: added 'windsound' soundlib implementation for use on Windows; the sound: add 'qtsound' soundlib implementation for use on any platform with Qt; the interface implementation resides win/Qt/qt_bind.cpp; built on top of Qt. +documentation: when building plain text Guidebook.txt from Guidebook.mn, avoid + attempting to use CR font; change doesn't affect building Guidebook.ps + which utilizes CR to get various instances of fixed-width text General New Features