From 0516268458f3f25909656aaf8292eb72812ed4ee Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sun, 23 Jun 2024 04:43:49 -0700 Subject: [PATCH] Further format improvements in 1992/westley --- 1992/westley/README.md | 18 +++++++++--------- 1992/westley/index.html | 19 +++++++++---------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/1992/westley/README.md b/1992/westley/README.md index f28b023f2..42b54c035 100644 --- a/1992/westley/README.md +++ b/1992/westley/README.md @@ -28,7 +28,7 @@ If lost: Where `lat` and `long` correspond to your latitude and longitude. -NOTE: you **MUST** have a terminal that is at least 80 columns for this to show +**NOTE**: you **MUST** have a terminal that is at least 80 columns for this to show properly. The `whereami.sh` and `whereami.alt.sh` scripts check this but if you do not have such a terminal you can run the `whereami` (or for the alternate code described below, `whereami.alt`) directly. @@ -59,7 +59,7 @@ The author provided a version for the US which we added. ./whereami.alt.sh lat long ``` -NOTE: this alternative version also needs a terminal with at least 80 columns +**NOTE**: this alternative version also needs a terminal with at least 80 columns but if you do not have such a terminal you can run `whereami.alt` directly. @@ -75,29 +75,29 @@ entry and the alternate code so one can try the same script for both: ## Judges' remarks: -To find the approximate place where this entry was judged, type: +Use `-` (negative number) for the south of the equator and/or west of the +meridian. + +To find the approximate place where this entry was judged: ``` - # NOTE: Use - for south of the equator and/or west of the meridian - + # If you have at least 80 columns: ./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 sure the alt version is built: make alt - # NOTE: Use - for south of the equator and/or west of the meridian - + # If you have at least 80 columns: ./whereami.alt.sh 37 -122 # If you don't have at least 80 columns, try: - ./whereami.alt 37 -122 ``` diff --git a/1992/westley/index.html b/1992/westley/index.html index f14a00649..5013ac4cc 100644 --- a/1992/westley/index.html +++ b/1992/westley/index.html @@ -412,7 +412,7 @@ Location: US - United States of America

If lost:

    ./whereami.sh lat long

Where lat and long correspond to your latitude and longitude.

-

NOTE: you MUST have a terminal that is at least 80 columns for this to show +

NOTE: you MUST have a terminal that is at least 80 columns for this to show properly. The whereami.sh and whereami.alt.sh scripts check this but if you do not have such a terminal you can run the whereami (or for the alternate code described below, whereami.alt) directly.

@@ -424,30 +424,29 @@ described below, whereami.alt) directly.

    make alt

Alternate use:

    ./whereami.alt.sh lat long
-

NOTE: this alternative version also needs a terminal with at least 80 columns +

NOTE: this alternative version also needs a terminal with at least 80 columns but if you do not have such a terminal you can run whereami.alt directly.

Alternate try:

The try.sh script uses both the original 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:

-
    # NOTE: Use - for south of the equator and/or west of the meridian
-
+

Use - (negative number) for the south of the equator and/or west of the +meridian.

+

To find the approximate place where this entry was judged:

+
    # If you have at least 80 columns:
     ./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
-
-    # NOTE: Use - for south of the equator and/or west of the meridian
+
    # Make sure the alt version is built:
+    make alt
 
+    # If you have at least 80 columns:
     ./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