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:
Landon Curt Noll committed 2024-03-18 01:26:39 -07:00
1 parent 9eb7a54e9f
commit b0b212acb1
402 files changed
+37061 -55132

No files matched your search

+56 -97
View File
@@ -129,9 +129,9 @@
<h2 id="author"><a name="author"></a>Author:</h2>
<ul>
<li>Name: <a href="../../authors.html#Ilya_Kurdyukov">Ilya
Kurdyukov</a><br> Location: <a href="../../location.html#RU">RU</a> -
<em>Russian Federation</em> (<em>Russia</em>) <br><br></li>
<li>Name: <a href="../../authors.html#Ilya_Kurdyukov">Ilya Kurdyukov</a><br>
Location: <a href="../../location.html#RU">RU</a> - <em>Russian Federation</em> (<em>Russia</em>)
<br><br></li>
</ul>
<!-- END: next line ends content generated by: bin/output-index-author.sh -->
@@ -151,136 +151,95 @@ Kurdyukov</a><br> Location: <a href="../../location.html#RU">RU</a> -
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a><span class="co"># Also try:</span></span>
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a><span class="ex">./try.sh</span></span></code></pre></div>
<h2 id="judges-remarks">Judges’ remarks:</h2>
<p>This entry has reminded us of a winning entry back in the early 90s.
Can you guess which one?</p>
<p>For a given image, try graphing the execution time relative to the
number of rectangles. What is the complexity? Is it obvious from the
source code?</p>
<p>This entry has reminded us of a winning entry back in the early 90s. Can you
guess which one?</p>
<p>For a given image, try graphing the execution time relative to the number of
rectangles. What is the complexity? Is it obvious from the source code?</p>
<h2 id="authors-remarks">Author’s remarks:</h2>
<h3 id="usage">Usage</h3>
<p>This program divides the image into a specified number of rectangles.
This process is content aware, so the algorithm tries to match most of
the information. However, it doesn’t find the best theoretically
possible layout.</p>
<p>This program divides the image into a specified number of rectangles. This
process is content aware, so the algorithm tries to match most of the information.
However, it doesn’t find the best theoretically possible layout.</p>
<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">./prog</span> 1000 input.jpg output.jpg</span></code></pre></div>
<h3 id="building">Building</h3>
<p>You can build three versions, depending on the image format.</p>
<p>Default is JPEG version; if you have the <code>libjpeg</code>
development package installed in your system, then <code>make</code>
without arguments should do the right thing.</p>
<p>If you want to use <code>libjpeg</code> compiled from sources, then
use the <code>LIBJPEG</code> define to specify the path to includes and
the library. For example using <a
href="https://mac-dev-env.patrickbougie.com/libjpeg/">libjpeg source</a>
version 9c:</p>
<p>Default is JPEG version; if you have the <code>libjpeg</code> development package installed
in your system, then <code>make</code> without arguments should do the right thing.</p>
<p>If you want to use <code>libjpeg</code> compiled from sources, then use the <code>LIBJPEG</code> define to
specify the path to includes and the library. For example using
<a href="https://mac-dev-env.patrickbougie.com/libjpeg/">libjpeg source</a> version 9c:</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="fu">make</span> prog LIBJPEG=<span class="st">&quot;-Ijpeg-9c jpeg-9c/libjpeg.a&quot;</span></span></code></pre></div>
<p>Use this command to build a PNG version (you need
<code>libpng</code>):</p>
<p>Use this command to build a PNG version (you need <code>libpng</code>):</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="fu">make</span> prog_png LIBPNG=<span class="st">&quot;-lpng&quot;</span></span></code></pre></div>
<p>And the PPM version (no additional dependencies, can read raw/ASCII
PPM, writes raw PPM):</p>
<p>And the PPM version (no additional dependencies, can read raw/ASCII PPM, writes
raw PPM):</p>
<pre><code>make prog_ppm</code></pre>
<h3 id="building-on-macos-with-macports">Building on macOS with
MacPorts:</h3>
<p>Thanks to <a href="../../authors.html#Cody_Boone_Ferguson">Cody Boone
Ferguson</a> for this information!</p>
<h3 id="building-on-macos-with-macports">Building on macOS with MacPorts:</h3>
<p>Thanks to <a href="../../authors.html#Cody_Boone_Ferguson">Cody Boone Ferguson</a> for this
information!</p>
<p>First, make sure you have the compiler tools installed e.g. by:</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a><span class="fu">sudo</span> xcode-select <span class="at">--install</span></span></code></pre></div>
<p>Make sure you install <a
href="https://www.macports.org/install.php">MacPorts</a>. Then do:</p>
<p>Make sure you install <a href="https://www.macports.org/install.php">MacPorts</a>. Then do:</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="fu">sudo</span> port install jpeg libpng ImageMagick</span></code></pre></div>
<p>The program itself doesn’t need ImageMagick, install it only if you
plan to make GIFs from the results using <code>makegif.sh</code>.</p>
<p>The program itself doesn’t need ImageMagick, install it only if you plan to make
GIFs from the results using <code>makegif.sh</code>.</p>
<p>After that’s installed you need to run make with these options:</p>
<div class="sourceCode" id="cb10"><pre
class="sourceCode sh"><code class="sourceCode bash"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> LDFLAGS=<span class="st">&quot;-I/opt/local/include -L/opt/local/lib&quot;</span></span></code></pre></div>
<h3 id="building-on-macos-with-homebrew">Building on macOS with
Homebrew</h3>
<div class="sourceCode" id="cb10"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> LDFLAGS=<span class="st">&quot;-I/opt/local/include -L/opt/local/lib&quot;</span></span></code></pre></div>
<h3 id="building-on-macos-with-homebrew">Building on macOS with Homebrew</h3>
<p>First, make sure you have the compiler tools installed e.g. by:</p>
<div class="sourceCode" id="cb11"><pre
class="sourceCode sh"><code class="sourceCode bash"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a><span class="fu">sudo</span> xcode-select <span class="at">--install</span></span></code></pre></div>
<div class="sourceCode" id="cb11"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a><span class="fu">sudo</span> xcode-select <span class="at">--install</span></span></code></pre></div>
<p>Make sure you install <a href="https://brew.sh">Homebrew</a>.</p>
<p>Then:</p>
<div class="sourceCode" id="cb12"><pre
class="sourceCode sh"><code class="sourceCode bash"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="ex">brew</span> install libjpeg libpng</span>
<div class="sourceCode" id="cb12"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="ex">brew</span> install libjpeg libpng</span>
<span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a><span class="bu">eval</span> <span class="st">&quot;</span><span class="va">$(</span><span class="ex">brew</span> shellenv<span class="va">)</span><span class="st">&quot;</span></span></code></pre></div>
<p>You are now ready to compile this entry:</p>
<div class="sourceCode" id="cb13"><pre
class="sourceCode sh"><code class="sourceCode bash"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> clobber all</span></code></pre></div>
<div class="sourceCode" id="cb13"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> clobber all</span></code></pre></div>
<h3 id="notes">Notes</h3>
<p>Made this thing while experimenting with the idea of representing an
image with rectangles (lossy compression). It’s not very good in that
sense, but the results look funny, like a kind of cubism pixel art.</p>
<p>Made this thing while experimenting with the idea of representing an image with
rectangles (lossy compression). It’s not very good in that sense, but the
results look funny, like a kind of cubism pixel art.</p>
<p>Do not use values above 50000, it’ll be slow.</p>
<p>To understand how this works, just try running with 1,2,3,4… number
of rectangles. At each iteration, the rectangle with the biggest
difference from the picture data is split (halves may have different
size) horizontally or vertically to get the minimum difference.</p>
<p>You can use this command to make a GIF from output images (uses
ImageMagick). For instance after running the command suggested by the
judges:</p>
<div class="sourceCode" id="cb14"><pre
class="sourceCode sh"><code class="sourceCode bash"><span id="cb14-1"><a href="#cb14-1" aria-hidden="true" tabindex="-1"></a><span class="ex">convert</span> <span class="at">-delay</span> 10 <span class="at">-dither</span> none <span class="at">-loop</span> 0 <span class="va">$(</span><span class="fu">find</span> . <span class="at">-maxdepth</span> 1 <span class="at">-type</span> f <span class="at">-name</span> <span class="st">&#39;*jpg&#39;</span> <span class="kw">|</span> <span class="fu">sort</span> <span class="at">-V</span><span class="va">)</span> <span class="va">$(</span><span class="fu">find</span> . <span class="at">-maxdepth</span> 1 <span class="at">-type</span> f <span class="at">-name</span> <span class="st">&#39;*jpg&#39;</span> <span class="kw">|</span> <span class="fu">sort</span> <span class="at">-rV</span><span class="va">)</span> +map out.gif</span></code></pre></div>
<p>NOTE: the above is done in the <a href="try.sh">try.sh</a>
script.</p>
<p>To understand how this works, just try running with 1,2,3,4… number of
rectangles. At each iteration, the rectangle with the biggest difference from
the picture data is split (halves may have different size) horizontally or
vertically to get the minimum difference.</p>
<p>You can use this command to make a GIF from output images (uses ImageMagick).
For instance after running the command suggested by the judges:</p>
<div class="sourceCode" id="cb14"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb14-1"><a href="#cb14-1" aria-hidden="true" tabindex="-1"></a><span class="ex">convert</span> <span class="at">-delay</span> 10 <span class="at">-dither</span> none <span class="at">-loop</span> 0 <span class="va">$(</span><span class="fu">find</span> . <span class="at">-maxdepth</span> 1 <span class="at">-type</span> f <span class="at">-name</span> <span class="st">&#39;*jpg&#39;</span> <span class="kw">|</span> <span class="fu">sort</span> <span class="at">-V</span><span class="va">)</span> <span class="va">$(</span><span class="fu">find</span> . <span class="at">-maxdepth</span> 1 <span class="at">-type</span> f <span class="at">-name</span> <span class="st">&#39;*jpg&#39;</span> <span class="kw">|</span> <span class="fu">sort</span> <span class="at">-rV</span><span class="va">)</span> +map out.gif</span></code></pre></div>
<p>NOTE: the above is done in the <a href="try.sh">try.sh</a> script.</p>
<p>Also provided <code>makegif.sh</code> to aid with GIF creation.</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-2020kurdyukov2"><a name="inventory"></a>Inventory
for 2020/kurdyukov2</h1>
<h1 id="inventory-for-2020kurdyukov2"><a name="inventory"></a>Inventory for 2020/kurdyukov2</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/2020/kurdyukov2/prog.c">prog.c</a>
- entry source</li>
<li><a
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/Makefile">Makefile</a>
- entry Makefile</li>
<li><a
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/prog.orig.c">prog.orig.c</a>
- original source</li>
<li><a
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/try.sh">try.sh</a>
- how to run</li>
<li><a
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/makegif.sh">makegif.sh</a>
- utility to form GIFs from the results</li>
<li><a
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/prog.png.c">prog.png.c</a>
- build a PNG version</li>
<li><a
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/prog.ppm.c">prog.ppm.c</a>
- build a PPM version</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/prog.c">prog.c</a> - entry source</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/Makefile">Makefile</a> - entry Makefile</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/prog.orig.c">prog.orig.c</a> - original source</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/try.sh">try.sh</a> - how to run</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/makegif.sh">makegif.sh</a> - utility to form GIFs from the results</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/prog.png.c">prog.png.c</a> - build a PNG version</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/prog.ppm.c">prog.ppm.c</a> - build a PPM version</li>
<li><a href="sample.jpg">sample.jpg</a> - sample image data</li>
<li><a href="2020_kurdyukov2.tar.bz2">2020_kurdyukov2.tar.bz2</a> -
download entry source</li>
<li><a href="2020_kurdyukov2.tar.bz2">2020_kurdyukov2.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/2020/kurdyukov2/.entry.json">.entry.json</a>
- description of entry in JSON</li>
<li><a
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/.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/2020/kurdyukov2/.entry.json">.entry.json</a> - description of entry in JSON</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/.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/2020/kurdyukov2/README.md">README.md</a>
- markdown source for index.html</li>
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2020/kurdyukov2/README.md">README.md</a> - markdown source for index.html</li>
</ul>
<!-- END: next line ends content generated by: bin/output-index-inventory.sh -->