From 71280fc6dea5076ff91ba0de1a898ce0f9c2532a Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sun, 23 Jun 2024 00:13:30 -0700 Subject: [PATCH] fix 1992/westley/README.md Improve the formatting in `1992/westley/README.md` and thus the resulting `1992/westley/index.html`. Corrected a mistake on the use of `./whereami.alt`. Perform `make www` to perform the above and test under macOS. --- 1992/westley/README.md | 41 +++++++++++++++++++++++------------------ 1992/westley/index.html | 41 +++++++++++++++++++++++------------------ 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/1992/westley/README.md b/1992/westley/README.md index 796a862b5..f28b023f2 100644 --- a/1992/westley/README.md +++ b/1992/westley/README.md @@ -78,22 +78,27 @@ entry and the alternate code so one can try the same script for both: To find the approximate place where this entry was judged, type: ``` - ./whereami.sh 37 -122 # NOTE: - means west of meridian + # NOTE: Use - for south of the equator and/or west of the meridian - # or if you don't have at least 80 columns and want to see what it - # looks like anyway: - ./whereami 37 -122 # NOTE: - means west of meridian + ./whereami.sh 37 -122 + + # If you don't have at least 80 columns, try: + + ./whereami 37 -122 ``` If you wish to see this on the US map: ``` make alt - ./whereami.alt.sh 37 -122 # NOTE: - means west of meridian - # or if you don't have at least 80 columns and want to see what it - # looks like anyway: - ./whereami.alt.sh 37 -122 # NOTE: - means west of meridian + # NOTE: Use - for south of the equator and/or west of the meridian + + ./whereami.alt.sh 37 -122 + + # If you don't have at least 80 columns, try: + + ./whereami.alt 37 -122 ``` @@ -164,16 +169,16 @@ is reasonably accurate. ### Here are some cities you might like to try: ``` - New York 41 -74 - London 52 0 - Moscow 56 38 - New Delhi 29 77 - Sydney -34 151 - Los Angeles 34 -118 - Paris 45 2 - Rio de Janeiro -23 -43 - Beijing 40 116 - Tokyo 36 140 + New York 41 -74 + London 52 0 + Moscow 56 38 + New Delhi 29 77 + Sydney -34 151 + Los Angeles 34 -118 + Paris 45 2 + Rio de Janeiro -23 -43 + Beijing 40 116 + Tokyo 36 140 ``` diff --git a/1992/westley/index.html b/1992/westley/index.html index f6e6a1ef1..f14a00649 100644 --- a/1992/westley/index.html +++ b/1992/westley/index.html @@ -432,18 +432,23 @@ entry and the alternate code so one can try the same script for both:

    ./try.sh

Judges’ remarks:

To find the approximate place where this entry was judged, type:

-
    ./whereami.sh 37 -122       # NOTE: - means west of meridian
+
    # NOTE: Use - for south of the equator and/or west of the meridian
 
-    # or if you don't have at least 80 columns and want to see what it
-    # looks like anyway:
-    ./whereami 37 -122  # NOTE: - means west of meridian
+ ./whereami.sh 37 -122 + + # If you don't have at least 80 columns, try: + + ./whereami 37 -122

If you wish to see this on the US map:

    make alt
-    ./whereami.alt.sh 37 -122   # NOTE: - means west of meridian
 
-    # or if you don't have at least 80 columns and want to see what it
-    # looks like anyway:
-    ./whereami.alt.sh 37 -122   # NOTE: - means west of meridian
+ # NOTE: Use - for south of the equator and/or west of the meridian + + ./whereami.alt.sh 37 -122 + + # If you don't have at least 80 columns, try: + + ./whereami.alt 37 -122

Author’s remarks:

Run the program with your latitude & longitude as integer arguments; it will produce a map made up of '!' with the given @@ -496,16 +501,16 @@ blank line. It’s just for show, really.

be just off the map; this is an unavoidable artifact. The map is reasonably accurate.

Here are some cities you might like to try:

-
    New York        41  -74
-    London                      52   0
-    Moscow                      56   38
-    New Delhi       29   77
-    Sydney                      -34   151
-    Los Angeles     34  -118
-    Paris                       45   2
-    Rio de Janeiro  -23  -43
-    Beijing                     40   116
-    Tokyo                       36   140
+
    New York            41  -74
+    London              52   0
+    Moscow              56   38
+    New Delhi           29   77
+    Sydney              -34   151
+    Los Angeles         34  -118
+    Paris               45   2
+    Rio de Janeiro      -23  -43
+    Beijing             40   116
+    Tokyo               36   140

For a domestic (US) version with higher resolution, try:

    main(l,a,n,d)char**a;{for(d=atoi(a[1])/2*80-atoi(a[2])-2043;
     n="bnaBCOCXdBBHGYdAP[A M E R I C A].AqandkmavX|ELC}BOCd"