Merge pull request #2483 from xexyl/westley92-fixes

Minor fixes in 1992/westley/index.html
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2024-06-22 20:30:54 -07:00
commit b43a9f39fb
4 files changed
+12 -12

No files matched your search

+5 -5
View File
@@ -43,7 +43,7 @@ described below, `whereami.alt`) directly.
## Alternate code: ## Alternate code:
The author provided a version for the US which we added. To build: The author provided a version for the US which we added.
### Alternate build: ### Alternate build:
@@ -110,14 +110,14 @@ vertically. The map is a Mercator projection with equal spacing
of the latitudes, so the areas near the poles are very distorted. of the latitudes, so the areas near the poles are very distorted.
Latitudes near the poles and Antarctica are not shown. Latitudes near the poles and Antarctica are not shown.
The program requires the ASCII character set, `putchar()`, `atoi()`, The program requires the ASCII character set, `putchar(3)`, `atoi(3)`,
and a display that auto-wraps at 80 characters(!). If your display and a display that auto-wraps at 80 characters(!). If your display
does not work this way, you will have to massage the output; does not work this way, you will have to massage the output;
for example, you can redirect it to a file and edit it with vi, for example, you can redirect it to a file and edit it with vi,
which will do auto-wrap for you. which will do auto-wrap for you.
Lint complains that `main()` returns a random value and I'm not Lint complains that `main()` returns a random value and I'm not
checking the value that `putchar()` returns. Scandalous! checking the value that `putchar(3)` returns. Scandalous!
If you run it with fewer than 2 arguments, it will likely If you run it with fewer than 2 arguments, it will likely
give you an exception, as it will access arguments that give you an exception, as it will access arguments that
@@ -132,7 +132,7 @@ a string; the first character is how many `!`s are printed
(`'A'`=1, `'B'`=2, etc), the second character is how many `' '`s, the (`'A'`=1, `'B'`=2, etc), the second character is how many `' '`s, the
third is how many `!`s, etc. ASCII characters less than `'A'` third is how many `!`s, etc. ASCII characters less than `'A'`
print no characters but still change the polarity, so any map print no characters but still change the polarity, so any map
of `' '`s and `'!'`s is possible. This is done in the `putchar()` of `' '`s and `'!'`s is possible. This is done in the `putchar(3)`
argument as `33^l&1`, where `l` is the character `position+4`; if argument as `33^l&1`, where `l` is the character `position+4`; if
`l` is odd, `' '` is printed, if `l` is even, `'!'` is printed. `l` is odd, `' '` is printed, if `l` is even, `'!'` is printed.
@@ -148,7 +148,7 @@ are opposite because latitude is decreasing and longitude is
increasing as you go from upper left to lower right. The offset increasing as you go from upper left to lower right. The offset
is where the origin (latitude=0, longitude=0) is found. is where the origin (latitude=0, longitude=0) is found.
The position counting down to zero changes the `putchar()` from The position counting down to zero changes the `putchar(3)` from
printing (`'!'` or `' '`) to printing (`'"'` or `'#'`). printing (`'!'` or `' '`) to printing (`'"'` or `'#'`).
The `"H E L L O, W O R L D!"` string inside the data string The `"H E L L O, W O R L D!"` string inside the data string
+5 -5
View File
@@ -419,7 +419,7 @@ described below, <code>whereami.alt</code>) directly.</p>
<h2 id="try">Try:</h2> <h2 id="try">Try:</h2>
<pre><code> ./try.sh</code></pre> <pre><code> ./try.sh</code></pre>
<h2 id="alternate-code">Alternate code:</h2> <h2 id="alternate-code">Alternate code:</h2>
<p>The author provided a version for the US which we added. To build:</p> <p>The author provided a version for the US which we added.</p>
<h3 id="alternate-build">Alternate build:</h3> <h3 id="alternate-build">Alternate build:</h3>
<pre><code> make alt</code></pre> <pre><code> make alt</code></pre>
<h3 id="alternate-use">Alternate use:</h3> <h3 id="alternate-use">Alternate use:</h3>
@@ -455,13 +455,13 @@ resolution of the map is five degrees horizontally, ten degrees
vertically. The map is a Mercator projection with equal spacing vertically. The map is a Mercator projection with equal spacing
of the latitudes, so the areas near the poles are very distorted. of the latitudes, so the areas near the poles are very distorted.
Latitudes near the poles and Antarctica are not shown.</p> Latitudes near the poles and Antarctica are not shown.</p>
<p>The program requires the ASCII character set, <code>putchar()</code>, <code>atoi()</code>, <p>The program requires the ASCII character set, <code>putchar(3)</code>, <code>atoi(3)</code>,
and a display that auto-wraps at 80 characters(!). If your display and a display that auto-wraps at 80 characters(!). If your display
does not work this way, you will have to massage the output; does not work this way, you will have to massage the output;
for example, you can redirect it to a file and edit it with vi, for example, you can redirect it to a file and edit it with vi,
which will do auto-wrap for you.</p> which will do auto-wrap for you.</p>
<p>Lint complains that <code>main()</code> returns a random value and I’m not <p>Lint complains that <code>main()</code> returns a random value and I’m not
checking the value that <code>putchar()</code> returns. Scandalous!</p> checking the value that <code>putchar(3)</code> returns. Scandalous!</p>
<p>If you run it with fewer than 2 arguments, it will likely <p>If you run it with fewer than 2 arguments, it will likely
give you an exception, as it will access arguments that give you an exception, as it will access arguments that
don’t exist and characters before a string constant.</p> don’t exist and characters before a string constant.</p>
@@ -472,7 +472,7 @@ a string; the first character is how many <code>!</code>s are printed
(<code>'A'</code>=1, <code>'B'</code>=2, etc), the second character is how many <code>' '</code>s, the (<code>'A'</code>=1, <code>'B'</code>=2, etc), the second character is how many <code>' '</code>s, the
third is how many <code>!</code>s, etc. ASCII characters less than <code>'A'</code> third is how many <code>!</code>s, etc. ASCII characters less than <code>'A'</code>
print no characters but still change the polarity, so any map print no characters but still change the polarity, so any map
of <code>' '</code>s and <code>'!'</code>s is possible. This is done in the <code>putchar()</code> of <code>' '</code>s and <code>'!'</code>s is possible. This is done in the <code>putchar(3)</code>
argument as <code>33^l&amp;1</code>, where <code>l</code> is the character <code>position+4</code>; if argument as <code>33^l&amp;1</code>, where <code>l</code> is the character <code>position+4</code>; if
<code>l</code> is odd, <code>' '</code> is printed, if <code>l</code> is even, <code>'!'</code> is printed.</p> <code>l</code> is odd, <code>' '</code> is printed, if <code>l</code> is even, <code>'!'</code> is printed.</p>
<p>The position of latitude &amp; longitude is changed into a single <p>The position of latitude &amp; longitude is changed into a single
@@ -486,7 +486,7 @@ five degrees of change moves the location one character. The signs
are opposite because latitude is decreasing and longitude is are opposite because latitude is decreasing and longitude is
increasing as you go from upper left to lower right. The offset increasing as you go from upper left to lower right. The offset
is where the origin (latitude=0, longitude=0) is found.</p> is where the origin (latitude=0, longitude=0) is found.</p>
<p>The position counting down to zero changes the <code>putchar()</code> from <p>The position counting down to zero changes the <code>putchar(3)</code> from
printing (<code>'!'</code> or <code>' '</code>) to printing (<code>'"'</code> or <code>'#'</code>).</p> printing (<code>'!'</code> or <code>' '</code>) to printing (<code>'"'</code> or <code>'#'</code>).</p>
<p>The <code>"H E L L O, W O R L D!"</code> string inside the data string <p>The <code>"H E L L O, W O R L D!"</code> string inside the data string
prints the line of blanks past <a href="https://en.wikipedia.org/wiki/Tierra_del_Fuego">Tierra del prints the line of blanks past <a href="https://en.wikipedia.org/wiki/Tierra_del_Fuego">Tierra del
+1 -1
View File
@@ -1233,7 +1233,7 @@ for modern systems as it doesn’t work for gcc either, even before any changes.
This might be a misunderstanding or it might be that having 80 columns (resized) This might be a misunderstanding or it might be that having 80 columns (resized)
does not count (though the output before the fix of the 80 column requirement does not count (though the output before the fix of the 80 column requirement
showed was correct when at 80-columns so it seems like this could be a bug if showed was correct when at 80-columns so it seems like this could be a bug if
not a misunderstanding).</p> it’s not a misunderstanding).</p>
<hr style="width:10%;text-align:left;margin-left:0"> <hr style="width:10%;text-align:left;margin-left:0">
<div id="1993"> <div id="1993">
<h1 id="section-9">1993</h1> <h1 id="section-9">1993</h1>
+1 -1
View File
@@ -1221,7 +1221,7 @@ for modern systems as it doesn't work for gcc either, even before any changes.
This might be a misunderstanding or it might be that having 80 columns (resized) This might be a misunderstanding or it might be that having 80 columns (resized)
does not count (though the output before the fix of the 80 column requirement does not count (though the output before the fix of the 80 column requirement
showed was correct when at 80-columns so it seems like this could be a bug if showed was correct when at 80-columns so it seems like this could be a bug if
not a misunderstanding). it's not a misunderstanding).
<hr style="width:10%;text-align:left;margin-left:0"> <hr style="width:10%;text-align:left;margin-left:0">