force use of pandoc version >= 3.1.12.2
The `bin/pandoc-wrapper.sh` tool will verify that the ssytem has a recent enough version of `pandoc(1)`. We explain why we insist on `pandoc(1)`. version >= 3.1.12.2 in comments where the $PANDOC_MIN_VERSION is set. Added `--wrap=preserve` as a default argument to `pandoc(1)`. While this change will impact every HTML file generated, we believe this will improve the ability of someone to look at the generated HTML and correlate with the original markdown. Changed `bin/pandoc-wrapper.sh` VERSION from "1.4.2 2024-03-17" to "1.4.3 2024-03-18". Performed `make www` to achieve all of the above and to generate HTML using the new `--wrap=preserve` `pandoc(1)` mode.
This commit is contained in:
1 parent
9eb7a54e9f
commit
b0b212acb1
402 files changed
+37061
-55132
No files matched your search
+51
-78
@@ -129,9 +129,9 @@
|
||||
|
||||
<h2 id="author"><a name="author"></a>Author:</h2>
|
||||
<ul>
|
||||
<li>Name: <a href="../../authors.html#Mark_Schnitzius">Mark
|
||||
Schnitzius</a><br> Location: <a href="../../location.html#ZZ">ZZ</a> -
|
||||
<em>Unknown location</em> <br><br></li>
|
||||
<li>Name: <a href="../../authors.html#Mark_Schnitzius">Mark Schnitzius</a><br>
|
||||
Location: <a href="../../location.html#ZZ">ZZ</a> - <em>Unknown location</em>
|
||||
<br><br></li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-author.sh -->
|
||||
@@ -144,14 +144,13 @@ Schnitzius</a><br> Location: <a href="../../location.html#ZZ">ZZ</a> -
|
||||
<h3 id="bugs-and-misfeatures">Bugs and (Mis)features:</h3>
|
||||
<p>The current status of this entry is:</p>
|
||||
<pre><code>STATUS: INABIAF - please **DO NOT** fix</code></pre>
|
||||
<p>For more detailed information see <a
|
||||
href="../../bugs.html#1993_schnitzi">1993 schnitzi bugs</a>.</p>
|
||||
<p>For more detailed information see <a href="../../bugs.html#1993_schnitzi">1993 schnitzi bugs</a>.</p>
|
||||
<h2 id="to-use">To use:</h2>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./schnitzi</span> file</span></code></pre></div>
|
||||
<p>where</p>
|
||||
<p><code>file</code> is a file containing some text.</p>
|
||||
<p>Certain input will cause the program to fail as described in <a
|
||||
href="../../bugs.html#1993_schnitzi">1993 schnitzi bugs</a>.</p>
|
||||
<p>Certain input will cause the program to fail as described
|
||||
in <a href="../../bugs.html#1993_schnitzi">1993 schnitzi bugs</a>.</p>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./schnitzi</span> schnitzi.info</span>
|
||||
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="co"># ask some questions suggested by the author, noted below</span></span></code></pre></div>
|
||||
@@ -159,18 +158,18 @@ href="../../bugs.html#1993_schnitzi">1993 schnitzi bugs</a>.</p>
|
||||
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="ex">Who</span> is Mark Schnitzus<span class="pp">?</span></span>
|
||||
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a></span>
|
||||
<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a><span class="ex">Who</span> was Jack the Ripper <span class="pp">?</span></span></code></pre></div>
|
||||
<p>Notice how it still manages to answer the first question despite
|
||||
there being an intentional spelling error there.</p>
|
||||
<p>Notice how it still manages to answer the first question despite there being an
|
||||
intentional spelling error there.</p>
|
||||
<p>Try feeding the program source to the program and ask both:</p>
|
||||
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">What</span> is cat <span class="pp">?</span></span>
|
||||
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="ex">What</span> is cat<span class="pp">?</span></span></code></pre></div>
|
||||
<p>What happens if you ask it other questions with and without a space
|
||||
before the <code>?</code>?</p>
|
||||
<p>What happens if you ask it other questions with and without a space before the
|
||||
<code>?</code>?</p>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>After this program prints the contents of ‘file’, ask it some
|
||||
questions related to the text.</p>
|
||||
<p>The author suggests the following questions when using <a
|
||||
href="schnitzi.info">schnitzi.info</a>:</p>
|
||||
<p>After this program prints the contents of ‘file’, ask it
|
||||
some questions related to the text.</p>
|
||||
<p>The author suggests the following questions when using
|
||||
<a href="schnitzi.info">schnitzi.info</a>:</p>
|
||||
<ul>
|
||||
<li>Who is Mark Schnitzius?</li>
|
||||
<li>What exactly does this program do?</li>
|
||||
@@ -181,98 +180,72 @@ href="schnitzi.info">schnitzi.info</a>:</p>
|
||||
<li>Is it true that Elvis is alive?</li>
|
||||
<li>Do colorless green ideas sleep furiously?</li>
|
||||
</ul>
|
||||
<p>We suggest you try using the body (minus the header and signature
|
||||
line) of a Usenet article. You might want to try something from
|
||||
alt.flame. :-)</p>
|
||||
<p>NOTE: If you have certain <code>'</code> in the question this entry
|
||||
might fail.</p>
|
||||
<p>We suggest you try using the body (minus the header and signature line)
|
||||
of a Usenet article. You might want to try something from alt.flame. :-)</p>
|
||||
<p>NOTE: If you have certain <code>'</code> in the question this entry might fail.</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<p>I wanted to write a program that would read in a text file in natural
|
||||
language (such as English) and answer questions about that text file. I
|
||||
thought this might be a complicated task, and I was right – it took me
|
||||
over 800 bytes. Of course, it doesn’t always work, but that’s AI for
|
||||
you.</p>
|
||||
<p>This program accepts the name of a text file as the first parameter.
|
||||
For example, to run it on the supplied data file called ‘schnitzi.info’
|
||||
you would type <code>./schnitzi schnitzi.info</code>. It echoes the
|
||||
file, then gives you a prompt where you may type in questions about that
|
||||
text. The more words you use which are actually present in the text
|
||||
file, the better results you get. You’ll need to hit <code>ctrl-c</code>
|
||||
to break out of the program. Just hitting <code>return</code> at the
|
||||
<p>I wanted to write a program that would read in a text file in
|
||||
natural language (such as English) and answer questions about that
|
||||
text file. I thought this might be a complicated task, and I was
|
||||
right – it took me over 800 bytes. Of course, it doesn’t always
|
||||
work, but that’s AI for you.</p>
|
||||
<p>This program accepts the name of a text file as the first parameter. For
|
||||
example, to run it on the supplied data file called ‘schnitzi.info’ you would
|
||||
type <code>./schnitzi schnitzi.info</code>. It echoes the file, then gives you a prompt
|
||||
where you may type in questions about that text. The more words you use which
|
||||
are actually present in the text file, the better results you get. You’ll need
|
||||
to hit <code>ctrl-c</code> to break out of the program. Just hitting <code>return</code> at the
|
||||
prompt will reprint the paragraph.</p>
|
||||
<p>If you’re curious as to how it works, I guess you could feed in the
|
||||
source as the input file and ask “How does this work?” at the prompt,
|
||||
but I’m not guaranteeing any results…</p>
|
||||
<h3 id="compilation-notes">Compilation notes</h3>
|
||||
<ul>
|
||||
<li><p>The use of <code>strcasecmp(3)</code> may be non-standard.
|
||||
<code>strcmp(3)</code> can be substituted for it, with a slight
|
||||
performance penalty.</p></li>
|
||||
<li><p>This program depends on the first command-line parameter,
|
||||
typically called <code>argv[0]</code>, to hold the name of the
|
||||
executable. It is my understanding that this property of
|
||||
<code>argv[0]</code> is not guaranteed on some systems.</p></li>
|
||||
<li><p>The use of <code>strcasecmp(3)</code> may be non-standard. <code>strcmp(3)</code> can be substituted for
|
||||
it, with a slight performance penalty.</p></li>
|
||||
<li><p>This program depends on the first command-line parameter, typically called
|
||||
<code>argv[0]</code>, to hold the name of the executable. It is my understanding that this
|
||||
property of <code>argv[0]</code> is not guaranteed on some systems.</p></li>
|
||||
</ul>
|
||||
<h3 id="obfuscation">Obfuscation</h3>
|
||||
<ul>
|
||||
<li><p>It uses a hidden string to test for punctuation.</p></li>
|
||||
<li><p>The layout, variable names, and expression format have been
|
||||
chosen in such a way as to cause visual confusion.</p></li>
|
||||
<li><p>It uses uses external <code>system(3)</code> calls to echo the
|
||||
text file and break up the question into individual words with a
|
||||
recursive call.</p></li>
|
||||
<li><p>It uses a clever hack to simulate artificial
|
||||
intelligence.</p></li>
|
||||
<li><p>The layout, variable names, and expression format have been chosen in such a
|
||||
way as to cause visual confusion.</p></li>
|
||||
<li><p>It uses uses external <code>system(3)</code> calls to echo the text file and break up the
|
||||
question into individual words with a recursive call.</p></li>
|
||||
<li><p>It uses a clever hack to simulate artificial intelligence.</p></li>
|
||||
</ul>
|
||||
<p>The text for the info file, by the way, consists largely of headlines
|
||||
from the Weekly World News.</p>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0
|
||||
License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights
|
||||
Reserved. You are free to share and adapt this file under the terms of
|
||||
this license:</p>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0 License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved.
|
||||
You are free to share and adapt this file under the terms of this license:</p>
|
||||
<pre><code>Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</code></pre>
|
||||
<p>For more information, see:
|
||||
https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
<p>For more information, see: https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
|
||||
<!-- END: this line ends content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||||
<!-- START: this line starts content for HTML phase 22 by: bin/output-index-inventory.sh via bin/md2html.sh -->
|
||||
|
||||
<!-- START: this line starts content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
<h1 id="inventory-for-1993schnitzi"><a name="inventory"></a>Inventory
|
||||
for 1993/schnitzi</h1>
|
||||
<h1 id="inventory-for-1993schnitzi"><a name="inventory"></a>Inventory for 1993/schnitzi</h1>
|
||||
<p><a href="#top">Jump to top</a></p>
|
||||
<h2 id="primary-files">Primary files</h2>
|
||||
<ul>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/schnitzi.c">schnitzi.c</a>
|
||||
- entry source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/Makefile">Makefile</a>
|
||||
- entry Makefile</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/schnitzi.orig.c">schnitzi.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/schnitzi.info">schnitzi.info</a>
|
||||
- some interesting statements</li>
|
||||
<li><a href="1993_schnitzi.tar.bz2">1993_schnitzi.tar.bz2</a> - download
|
||||
entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/schnitzi.c">schnitzi.c</a> - entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/Makefile">Makefile</a> - entry Makefile</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/schnitzi.orig.c">schnitzi.orig.c</a> - original source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/schnitzi.info">schnitzi.info</a> - some interesting statements</li>
|
||||
<li><a href="1993_schnitzi.tar.bz2">1993_schnitzi.tar.bz2</a> - download entry source</li>
|
||||
</ul>
|
||||
<h2 id="secondary-files">Secondary files</h2>
|
||||
<ul>
|
||||
<li><a href="index.html">index.html</a> - entry home page</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/.entry.json">.entry.json</a>
|
||||
- description of entry in JSON</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/.gitignore">.gitignore</a>
|
||||
- list of files that should not be committed under git</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/.entry.json">.entry.json</a> - description of entry in JSON</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/.gitignore">.gitignore</a> - list of files that should not be committed under git</li>
|
||||
<li><a href=".path">.path</a> - directory path from top directory</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/README.md">README.md</a>
|
||||
- markdown source for index.html</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/schnitzi/README.md">README.md</a> - markdown source for index.html</li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
Reference in new issue
Block a user