From 9b55039fd4297de94bb2feaf16d2e9a49735a472 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sat, 20 Apr 2024 21:42:50 -0700 Subject: [PATCH] fix HTML problems related to pandoc and markdown image notation Improve `make clobber` for `2004/anonymous`. Instead of using this markdown element to embed an image: ``` ![alt text](filename.png "Title") ``` Use a "img" HTML element with "alt", "alt", "width" and "length" attributes: ``` describe the filename.png image for someone who cannot view it ``` This was performed for: ``` 2004/anonymous/index.html 2005/boutines/index.html 2011/goren/index.html 2012/vik/index.html 2013/birken/index.html 2013/cable1/index.html 2013/cable3/index.html 2013/hou/doc/example.html 2013/hou/index.html 2020/ferguson1/chocolate-cake.html ``` In the case of `2013/cable1/index.html` we reduce the displayed image size by a factor for 2. There is **NO** need to downsize the image as this image size reduction produces a clean and sharp looking image. In the case of `2013/hou/index.html` we reduce the displayed image size by a factor for 2. There is **NO** need to downsize the image as this image size reduction produces a clean and sharp looking image. In the case of `2020/ferguson1/chocolate-cake.html` we reduce the displayed image size by a factor for 4. There is **NO** need to downsize the image as this image size reduction produces a clean and sharp looking image. Run `make www` to perform the above. --- 2004/anonymous/Makefile | 1 + 2004/anonymous/index.html | 2 +- 2005/boutines/README.md | 8 ++- 2005/boutines/index.html | 14 ++-- 2011/goren/README.md | 4 +- 2011/goren/index.html | 7 +- 2012/vik/README.md | 7 +- 2012/vik/index.html | 10 ++- 2013/birken/README.md | 99 ++++++++++++++++++++-------- 2013/birken/index.html | 102 ++++++++++++++++++++--------- 2013/cable1/README.md | 18 ++--- 2013/cable1/index.html | 22 +++---- 2013/cable3/README.md | 26 ++++++-- 2013/cable3/index.html | 44 ++++++------- 2013/hou/README.md | 12 +++- 2013/hou/doc/example.html | 21 ++++-- 2013/hou/doc/example.md | 25 +++++-- 2013/hou/index.html | 21 +++--- 2020/ferguson1/chocolate-cake.html | 7 +- 2020/ferguson1/chocolate-cake.md | 4 +- 20 files changed, 283 insertions(+), 171 deletions(-) diff --git a/2004/anonymous/Makefile b/2004/anonymous/Makefile index f1a3e9bfd..c917ac4d1 100644 --- a/2004/anonymous/Makefile +++ b/2004/anonymous/Makefile @@ -203,6 +203,7 @@ clean: clobber: clean ${RM} -f ${TARGET} ${ALT_TARGET} + ${RM} -f precious.pgm ring.pgm ${RM} -rf *.dSYM @-if [ -e sandwich ]; then \ ${RM} -f sandwich; \ diff --git a/2004/anonymous/index.html b/2004/anonymous/index.html index d1b9a5a4f..7fe072896 100644 --- a/2004/anonymous/index.html +++ b/2004/anonymous/index.html @@ -198,7 +198,7 @@ it. The real text is:

Speech:

The inscription, in the Black Speech of Mordor, on the One Ring

+ width=690 height=127>

into English reads:

    One Ring to rule them all,
     One Ring to find them,
diff --git a/2005/boutines/README.md b/2005/boutines/README.md
index 813188b0a..8279f594e 100644
--- a/2005/boutines/README.md
+++ b/2005/boutines/README.md
@@ -108,7 +108,9 @@ factors.
 
 Therefore this entry is limited to
 
-![floor\bigg(\frac{10^6}{4\times(sizeof(double)+1)}-1\bigg)](eqn.png)
+equation of the limit of the entry
 
 points and won't even be suitable for more than a few thousand; although
 generated files did pass the [W3C SVG
@@ -181,7 +183,9 @@ viewport and potentially every
 
 ### Example Output
 
-![Voronoi diagram of two regular pentagon vertices](Voronoi.png)
+image of example output: 5 regions of a 5-pointed star with 5 external regions beyond it