doc/{dlb,makedefs,nethack,recover}.txt update
Rebuild doc/*.txt (other than Guidebook) with 'nroff -man -c -Tascii' rather than just 'nroff -man' to prevent it generating non-ASCII characters for hyphen, aprostrophe, single and double quotes, long dash, possibly others. Also preprocess with '--grep-define ALLDOCS' so that a few parts of the text don't end up being specific to the local configuration. The next time they're rebuilt they'll probably be subject to the ping-pong effect of inserting padding spaces for justification (alternating right-to-left vs left-to-right as intended but starting with different parity so lots of gratuitous changes) since my quite old version of groff triggers that for Guidebook.txt.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# NetHack Documentation Makefile.
|
||||
# NetHack 3.7 Makefile.doc $NHDT-Date: 1596498290 2020/08/03 23:44:50 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.21 $
|
||||
# NetHack 3.7 Makefile.doc $NHDT-Date: 1700788000 2023/11/24 01:06:40 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.28 $
|
||||
# Copyright (c) 2015 by Kenneth Lorber, Kensington, Maryland
|
||||
# NetHack may be freely redistributed. See license for details.
|
||||
|
||||
@@ -61,6 +61,7 @@ Guidebook : $(GUIDEBOOK_MN) tmac.n tmac.nh $(NEEDMAKEDEFS)
|
||||
$(GUIDECMD) > Guidebook
|
||||
|
||||
# Fancier output for those with ditroff, psdit and a PostScript printer.
|
||||
# Could be converted to Guidebook.pdf if tool(s) for that are available.
|
||||
Guidebook.ps : $(GUIDEBOOK_MN) tmac.n tmac.nh $(NEEDMAKEDEFS)
|
||||
$(GUIDE_PREFORMAT) | $(PSCMD) > Guidebook.ps
|
||||
|
||||
@@ -113,7 +114,8 @@ Guidebook.dat : Gbk-1pg-pfx.mn Gbk-1pg-sfx.mn $(GUIDEBOOK_MN) tmac.n tmac.nh \
|
||||
$(NEEDMAKEDEFS)
|
||||
$(ONEPAGECMD) > $@
|
||||
|
||||
MAN2TXT = $(NHGREP) | nroff -man - | $(COLCMD)
|
||||
# plain text output
|
||||
MAN2TXT = $(NHGREP) | nroff -man -c -Tascii - | $(COLCMD)
|
||||
nethack.txt : nethack.6
|
||||
cat nethack.6 | $(MAN2TXT) > nethack.txt
|
||||
recover.txt : recover.6
|
||||
|
||||
Reference in New Issue
Block a user