fix #K3886 - "%USERPROFILE%\NetHack\" in Guidebook

Report was that recent Guidebook.txt contained a couple of instances
of spurious "(rq".  In Guidebook.mn, "\\%USERPROFILE%\\NetHack\\(rq"
needed three backslashes near the end, the first two to insert one
into the output and the third for intended "\(rq" directive.  It also
shouldn't have leading backslashes; expansion of %USERPROFILE% doesn't
need that.  "\%" would work but isn't necessary.

Also, prevent "%USERPROFILE\NetHack\" from being hyphenated, plus a
minor change in wording so that it won't be in position to warrant
that.
This commit is contained in:
PatR
2023-03-16 22:34:58 -07:00
parent da0e2571a0
commit 0178ed81e1
2 changed files with 17 additions and 14 deletions

View File

@@ -3420,8 +3420,8 @@ for system administrators.
.hn 2
Using a configuration file
.pg
.\" hw: don't hyphenate file names
.hw .nethackrc defaults.nh nethack.exe nethackW.exe
.\" hw: don't hyphenate file names; percent-sign doesn't need special handling
.hw .nethackrc defaults.nh nethack.exe nethackW.exe %USERPROFILE%\\NetHack\\
The default name of the configuration file varies on different
operating systems.
.pg
@@ -3432,15 +3432,16 @@ and macOS it is \(lq.nethackrc\(rq in the user's home directory.
The file may not exist, but it is a normal ASCII text file and
can be created with any text editor.
.pg
On Windows, it is \(lq.nethackrc\(rq in the folder
\(lq\\%USERPROFILE%\\NetHack\\(rq. The file may not exist,
On Windows, the name is \(lq.nethackrc\(rq located in the folder
\(lq%USERPROFILE%\\NetHack\\\(rq.
The file may not exist,
but it is a normal ASCII text file can can be created with any
text editor.
After running NetHack for the first time, you should find a default
template for the configuration file named \(lq.nethackrc.template\(rq
in \(lq\\%USERPROFILE%\\NetHack\\(rq.
If you had not created the configuration file, NetHack will create
the configuration file for you using the default template file.
in \(lq%USERPROFILE%\\NetHack\\\(rq.
If you have not created the configuration file, NetHack will create
one for you using the default template file.
.pg
On MS-DOS, it is \(lqdefaults.nh\(rq in the same folder as nethack.exe.
.pg

View File

@@ -3719,19 +3719,21 @@ operating systems.\\
%.lp ""
On UNIX, Linux and macOS it is \mbox{``.nethackrc''} in the user's home
directory. The file may not exist, but it is a normal ASCII text file and
directory.
The file may not exist, but it is a normal ASCII text file and
can be created with any text editor.\\
%.lp ""
On Windows, it is \mbox{``.nethackrc''} in the folder
\mbox{{``\%USERPROFILE\%\textbackslash NetHack\textbackslash''}}. The
file may not exist, but it is a normal ASCII text file and can be created
with any text editor.
On Windows, the name is \mbox{``.nethackrc''} location in the folder
\mbox{{``\%USERPROFILE\%\textbackslash NetHack\textbackslash''}}.
The file may not exist,
but it is a normal ASCII text file and can be created with any
text editor.
After runing {\it NetHack\/} for the first time, you should find a default
template for ths configuration file named \mbox{``.nethackrc.template''} in
\mbox{{``\%USERPROFILE\%\textbackslash NetHack\textbackslash''}}.
If you had not created the configuration file, {\it NetHack\/} will create
the configuration file for you using the default template file.
If you have not created the configuration file, {\it NetHack\/} will create
the configuration file for you using the default template file.\\
%.lp ""
On MS-DOS it is \mbox{``defaults.nh''} in the same folder as