From 450957bfe98e6b25b352f72dad9495cf08ed01ca Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 18 Nov 2019 13:23:13 -0500 Subject: [PATCH 1/4] further refine k-sound pluralization --- src/objnam.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/objnam.c b/src/objnam.c index 796c90e84..9bc9148b4 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -2451,8 +2451,11 @@ const char *oldstr; if (index("zxs", lo_c) || (len >= 2 && lo_c == 'h' && index("cs", lowc(*(spot - 1))) /* 21st century k-sound */ - && !(len >= 4 && !strcmpi(spot - 2, "ech") - && index("tm", lowc(*(spot - 4))))) + && !(len >= 4 && + ((lowc(*(spot - 2)) == 'e' + && index("mt", lowc(*(spot - 3)))) || + (lowc(*(spot - 2)) == 'o' + && index("lp", lowc(*(spot - 3))))))) /* Kludge to get "tomatoes" and "potatoes" right */ || (len >= 4 && !strcmpi(spot - 2, "ato")) || (len >= 5 && !strcmpi(spot - 4, "dingo"))) { From 516761b9bba0986522404190022294e338ae94dd Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 18 Nov 2019 11:01:26 -0800 Subject: [PATCH 2/4] another tribute typo: The Light Fantastic #11 Another transciption mistake ("to"; the book has "do"). --- dat/tribute | 4 ++-- doc/fixes36.3 | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dat/tribute b/dat/tribute index 3d7b56850..143db9874 100644 --- a/dat/tribute +++ b/dat/tribute @@ -1,4 +1,4 @@ -# NetHack 3.6 tribute $NHDT-Date: 1573777025 2019/11/15 00:17:05 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.84 $ +# NetHack 3.6 tribute $NHDT-Date: 1574103673 2019/11/18 19:01:13 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.85 $ # Copyright (c) 2017 by Robert Patrick Rankin # NetHack may be freely redistributed. See license for details. # A tribute introduced in NetHack 3.6.0 to: @@ -549,7 +549,7 @@ explain the observed facts, and they are completely and utterly wrong. %e passage # p. 205 %passage 11 -"Where to they all come from?" said Twoflower, as they fled yet another mob. +"Where do they all come from?" said Twoflower, as they fled yet another mob. "Inside every sane person there's a madman struggling to get out," said the shopkeeper, "That's what I've always thought. No one goes mad quicker than diff --git a/doc/fixes36.3 b/doc/fixes36.3 index 16ab5de31..0433c99c1 100644 --- a/doc/fixes36.3 +++ b/doc/fixes36.3 @@ -1,4 +1,4 @@ -$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.181 $ $NHDT-Date: 1573943506 2019/11/16 22:31:46 $ +$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.183 $ $NHDT-Date: 1574103672 2019/11/18 19:01:12 $ This fixes36.3 file is here to capture information about updates in the 3.6.x lineage following the release of 3.6.2 in May 2019. Please note, however, @@ -116,7 +116,8 @@ when a boulder was teleported, if it landed in a pit or trap door or hole its former location wasn't updated to show that it wasn't there anymore (noticed in Sokoban but not limited to there) Terry Pratchett tribute, fix typo in passage #4 for Mort ("the" -> "they"); - also passage #7 for Soul Music ("genious" -> "genius") + also passage #7 for Soul Music ("genious" -> "genius"); + and passage #11 for The Light Fantastic ("to" -> "do") fix typo in end_of_input() present since 3.6.0 that would prevent compilation for NOSAVEONHANGUP+INSURANCE configuration when a status condition becomes fatal, keep it listed as an active condition From 040c13f6aab14ca7ceee191e5baa722b2c191cdd Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 18 Nov 2019 11:56:45 -0800 Subject: [PATCH 3/4] more tribute: Eric #3, Witches Abroad #10 --- dat/tribute | 10 +++++----- doc/fixes36.3 | 6 ++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/dat/tribute b/dat/tribute index 143db9874..73a5a3815 100644 --- a/dat/tribute +++ b/dat/tribute @@ -1,4 +1,4 @@ -# NetHack 3.6 tribute $NHDT-Date: 1574103673 2019/11/18 19:01:13 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.85 $ +# NetHack 3.6 tribute $NHDT-Date: 1574107001 2019/11/18 19:56:41 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.86 $ # Copyright (c) 2017 by Robert Patrick Rankin # NetHack may be freely redistributed. See license for details. # A tribute introduced in NetHack 3.6.0 to: @@ -786,7 +786,7 @@ back of his skull. [Equal Rites, by Terry Pratchett] %e passage -# p. 185 (actually uses four periods to mark a sentence ending in a ellipsis) +# p. 185 (actually uses four periods to mark a sentence ending in an ellipsis) %passage 10 There may be universes where librarianship is considered a peaceful sort of occupation, and where the risks are limited to large volumes falling off @@ -2004,7 +2004,7 @@ road to Hell, and demons were, after all, traditionalists. %e passage # pp. 9-10 (passage has an interesting start but not much of a finish...) %passage 3 -"It's a haunting," he ventured. "Some short of ghost, maybe. A bell, book +"It's a haunting," he ventured. "Some sort of ghost, maybe. A bell, book and candle job." The Bursar sighed. "We tried that, Archchancellor." @@ -2816,8 +2816,8 @@ It carried on turning, pulling her with it. Blimey. Oh, well... -Then she did was neither Granny Weatherwax nor Magrat would have dreamed of -doing in the circumstances. But Nanny Ogg's voyages on the sea of +Then she did what neither Granny Weatherwax nor Magrat would have dreamed +of doing in the circumstances. But Nanny Ogg's voyages on the sea of intersexual dalliance had gone rather further than twice around the lighthouse, and she saw nothing demeaning in getting a man to help her. diff --git a/doc/fixes36.3 b/doc/fixes36.3 index 0433c99c1..02d19b96a 100644 --- a/doc/fixes36.3 +++ b/doc/fixes36.3 @@ -1,4 +1,4 @@ -$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.183 $ $NHDT-Date: 1574103672 2019/11/18 19:01:12 $ +$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.184 $ $NHDT-Date: 1574107001 2019/11/18 19:56:41 $ This fixes36.3 file is here to capture information about updates in the 3.6.x lineage following the release of 3.6.2 in May 2019. Please note, however, @@ -117,7 +117,9 @@ when a boulder was teleported, if it landed in a pit or trap door or hole its (noticed in Sokoban but not limited to there) Terry Pratchett tribute, fix typo in passage #4 for Mort ("the" -> "they"); also passage #7 for Soul Music ("genious" -> "genius"); - and passage #11 for The Light Fantastic ("to" -> "do") + and passage #11 for The Light Fantastic ("to" -> "do"); + passage #3 for Eric ("short" -> "sort"); + passage #10 for Witches Abroad ("was" -> "what") fix typo in end_of_input() present since 3.6.0 that would prevent compilation for NOSAVEONHANGUP+INSURANCE configuration when a status condition becomes fatal, keep it listed as an active condition From fbd10e4b0e3e469336055c13a889d4a7dab82132 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 18 Nov 2019 15:12:38 -0500 Subject: [PATCH 4/4] some further refinements to --showpaths The Windows data file path has to be constructed because Windows defines VERSION_IN_DLB_FILENAME. Keep the personal configuration file details as the last information displayed. --- src/files.c | 48 +++++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/src/files.c b/src/files.c index a9bee528a..61612e20f 100644 --- a/src/files.c +++ b/src/files.c @@ -4097,6 +4097,14 @@ reveal_paths(VOID_ARGS) #ifdef DLB raw_printf("Basic data files%s are collected inside:", buf); filep = DLBFILE; +#ifdef VERSION_IN_DLB_FILENAME + Strcpy(buf, build_dlb_filename((const char *) 0)); +#ifdef PREFIXES_IN_USE + fqn = fqname(buf, DATAPREFIX, 1); + if (fqn) + filep = fqn; +#endif /* PREFIXES_IN_USE */ +#endif raw_printf(" \"%s\"", filep); #ifdef DLBFILE2 filep = DLBFILE2; @@ -4106,6 +4114,27 @@ reveal_paths(VOID_ARGS) raw_printf("Basic data files%s are in many separate files.", buf); #endif /* ?DLB */ + /* dumplog */ + +#ifdef DUMPLOG +#ifdef SYSCF + fqn = sysopt.dumplogfile; +#else /* !SYSCF */ +#ifdef DUMPLOG_FILE + fqn = DUMPLOG_FILE; +#else + fqn = (char *) 0; +#endif +#endif /* ?SYSCF */ + if (fqn) { + raw_print("Your end-of-game dump file:"); + (void) dump_fmtstr(fqn, buf, FALSE); + buf[sizeof buf - sizeof " \"\""] = '\0'; + raw_printf(" \"%s\"", buf); + } else +#endif /* DUMPLOG */ + raw_print("No end-of-game dump file."); + /* personal configuration file */ buf[0] = '\0'; @@ -4158,25 +4187,6 @@ reveal_paths(VOID_ARGS) raw_printf(" \"%s\"", fqn ? fqn : default_configfile); #endif /* ?UNIX */ -#ifdef DUMPLOG -#ifdef SYSCF - fqn = sysopt.dumplogfile; -#else /* !SYSCF */ -#ifdef DUMPLOG_FILE - fqn = DUMPLOG_FILE; -#else - fqn = (char *) 0; -#endif -#endif /* ?SYSCF */ - if (fqn) { - raw_print("Your end-of-game dump file:"); - (void) dump_fmtstr(fqn, buf, FALSE); - buf[sizeof buf - sizeof " \"\""] = '\0'; - raw_printf(" \"%s\"", buf); - } else -#endif /* DUMPLOG */ - raw_print("No end-of-game dump file."); - raw_print(""); }