Remove underscore hack

The redefinition of the underscore's category code is replaced with
textunderscore as needed throughout to prevent future confusion.
This commit is contained in:
danielclow
2026-01-03 21:10:37 +08:00
parent 71d7b1e587
commit d59add7100
+11 -15
View File
@@ -25,10 +25,6 @@
\hyphenation{CRASHREPORTURL} \hyphenation{CRASHREPORTURL}
% this will make \tt underscores look better, but requires that
% math subscripts will never be used in this document
\catcode`\_=12
\begin{document} \begin{document}
% %
% input file: guidebook.mn % input file: guidebook.mn
@@ -3936,8 +3932,8 @@ Example:
%.ed %.ed
%.lp %.lp
\item[\bb{AUTOPICKUP\_EXCEPTION}] \item[\bb{AUTOPICKUP\textunderscore EXCEPTION}]
Set exceptions to the {{\it pickup\_types\/}} Set exceptions to the {{\it pickup\textunderscore types\/}}
option. See the ``Configuring Autopickup Exceptions'' section. option. See the ``Configuring Autopickup Exceptions'' section.
%.lp %.lp
\item[\bb{BINDINGS}] \item[\bb{BINDINGS}]
@@ -4377,7 +4373,7 @@ An object's inventory letter sticks to it when it's dropped (default on).
If this is off, dropping an object shifts all the remaining inventory letters. If this is off, dropping an object shifts all the remaining inventory letters.
Persistent. Persistent.
%.lp %.lp
\item[\ib{force\_invmenu}] \item[\ib{force\textunderscore invmenu}]
Commands asking for an inventory item show a menu instead of Commands asking for an inventory item show a menu instead of
a text query with possible menu letters. Default is off. a text query with possible menu letters. Default is off.
%.lp %.lp
@@ -5583,7 +5579,7 @@ Acceptable values are
(The 26x82 size threshold for `2' refers to number of rows and (The 26x82 size threshold for `2' refers to number of rows and
columns of the display. columns of the display.
A width of at least 110 columns (\verb&80+2+26+2&) is needed for A width of at least 110 columns (\verb&80+2+26+2&) is needed for
{\it align_status\/} {\it align\textunderscore status\/}
set to {\tt left} or {\tt right}.) set to {\tt left} or {\tt right}.)
%.lp "" %.lp ""
@@ -5633,9 +5629,9 @@ computer unless you manually click submit on a form.
%.si %.si
\blist{} \blist{}
%.lp %.lp
\item[OPTION=crash_email:{\it email_address}] \item[OPTION=crash\textunderscore email:{\it email\textunderscore address}]
%.lp %.lp
\item[OPTION=crash_name:{\it your_name}] \item[OPTION=crash\textunderscore name:{\it your\textunderscore name}]
%.ei %.ei
\elist \elist
These options are used only to save you some typing on the crash These options are used only to save you some typing on the crash
@@ -5643,7 +5639,7 @@ report and \#bugreport forms.
%.si %.si
\blist{} \blist{}
%.lp %.lp
\item[OPTION=crash_urlmax:{\it bytes}] \item[OPTION=crash\textunderscore urlmax:{\it bytes}]
%.ei %.ei
\elist \elist
This option is used to limit the length of the URLs generated and is only This option is used to limit the length of the URLs generated and is only
@@ -6244,8 +6240,8 @@ Instead of a behavior, `condition' takes the following condition flags:
{\it stone}, {\it slime}, {\it strngl}, {\it foodpois}, {\it termill}, {\it stone}, {\it slime}, {\it strngl}, {\it foodpois}, {\it termill},
{\it blind}, {\it deaf}, {\it stun}, {\it conf}, {\it hallu}, {\it blind}, {\it deaf}, {\it stun}, {\it conf}, {\it hallu},
{\it lev}, {\it fly}, and {\it ride}. {\it lev}, {\it fly}, and {\it ride}.
You can use `major\_troubles' as an alias You can use `major\textunderscore troubles' as an alias
for stone through termill, `minor\_troubles' for blind through hallu, for stone through termill, `minor\textunderscore troubles' for blind through hallu,
`movement' for lev, fly, and ride, and `all' for every condition. `movement' for lev, fly, and ride, and `all' for every condition.
%.lp "" %.lp ""
@@ -6387,7 +6383,7 @@ Default & Symbol Name & Description\\
\hline \hline \hline \hline
\endhead \endhead
\verb@ @ & S\textunderscore air & (air)\\ \verb@ @ & S\textunderscore air & (air)\\
\_ & S\textunderscore altar & (altar)\\ \textunderscore & S\textunderscore altar & (altar)\\
\verb@"@ & S\textunderscore amulet & (amulet)\\ \verb@"@ & S\textunderscore amulet & (amulet)\\
\verb@A@ & S\textunderscore angel & (angelic being)\\ \verb@A@ & S\textunderscore angel & (angelic being)\\
\verb@a@ & S\textunderscore ant & (ant or other insect)\\ \verb@a@ & S\textunderscore ant & (ant or other insect)\\
@@ -6660,7 +6656,7 @@ has been compiled with the capability. When compiling {\it NetHack\/}
from source from source
on Linux and other POSIX systems, define {\tt MSGHANDLER\/} to enable it. on Linux and other POSIX systems, define {\tt MSGHANDLER\/} to enable it.
To use To use
the capability, set the environment variable {\tt NETHACK\_MSGHANDLER\/} to the capability, set the environment variable {\tt NETHACK\textunderscore MSGHANDLER\/} to
an executable, which will be executed with the game message as the program's an executable, which will be executed with the game message as the program's
only parameter. only parameter.
%.pg %.pg