texlive[66881] Master/texmf-dist: arara (18apr23)

commits+karl at tug.org commits+karl at tug.org
Tue Apr 18 21:37:46 CEST 2023


Revision: 66881
          http://tug.org/svn/texlive?view=revision&revision=66881
Author:   karl
Date:     2023-04-18 21:37:46 +0200 (Tue, 18 Apr 2023)
Log Message:
-----------
arara (18apr23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/man/man1/arara.1
    trunk/Master/texmf-dist/doc/man/man1/arara.man1.pdf
    trunk/Master/texmf-dist/doc/support/arara/README.md
    trunk/Master/texmf-dist/doc/support/arara/arara-manual.pdf
    trunk/Master/texmf-dist/doc/support/arara/arara-quickstart.pdf
    trunk/Master/texmf-dist/doc/support/arara/htmlmanualtopdf.sh
    trunk/Master/texmf-dist/doc/support/arara/htmlquickstarttopdf.sh
    trunk/Master/texmf-dist/doc/support/arara/resources/manual.css
    trunk/Master/texmf-dist/doc/support/arara/resources/version.txt
    trunk/Master/texmf-dist/scripts/arara/arara.jar

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/support/arara/arara-7.0.5-docsrc.zip
    trunk/Master/texmf-dist/source/support/arara/arara-7.0.5-src.zip

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/support/arara/arara-7.0.4-docsrc.zip
    trunk/Master/texmf-dist/source/support/arara/arara-7.0.4-src.zip

Modified: trunk/Master/texmf-dist/doc/man/man1/arara.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/arara.1	2023-04-18 19:37:13 UTC (rev 66880)
+++ trunk/Master/texmf-dist/doc/man/man1/arara.1	2023-04-18 19:37:46 UTC (rev 66881)
@@ -1,4 +1,4 @@
-.TH ARARA 1 "28 June 2022" "v7.0.4"
+.TH ARARA 1 "17 April 2023" "v7.0.5"
 .SH NAME
 arara \- a TeX automation tool based on rules and directives.
 .SH SYNOPSIS

Modified: trunk/Master/texmf-dist/doc/man/man1/arara.man1.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/support/arara/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/support/arara/README.md	2023-04-18 19:37:13 UTC (rev 66880)
+++ trunk/Master/texmf-dist/doc/support/arara/README.md	2023-04-18 19:37:46 UTC (rev 66881)
@@ -1,9 +1,10 @@
 ![arara](https://i.stack.imgur.com/hjUsN.png)
 
-# arara v7.0.4
+# arara v7.0.5
 
 ![Language: Kotlin](https://img.shields.io/badge/Language-Kotlin-blue.svg?style=flat-square)
 ![Minimum JRE: 8.0](https://img.shields.io/badge/Minimum_JRE-8-blue.svg?style=flat-square)
+![Current version](https://img.shields.io/badge/dynamic/json.svg?color=blue&label=Latest%20release&query=%24.0.name&url=https%3A%2F%2Fgitlab.com%2Fapi%2Fv4%2Fprojects%2F14349047%2Frepository%2Ftags&style=flat-square)
 
 `arara` is a TeX automation tool based on rules and directives. It gives you a
 way to enhance your TeX experience. The tool is an effort to provide a concise
@@ -31,8 +32,9 @@
 
 Now when you run `arara myfile`, that directive (`% arara: ...`) will be seen
 and carried out as described by the `pdflatex` rule.  You can read more about
-rules and directives in the user manual available in our
-[releases](https://gitlab.com/islandoftex/arara/-/releases) section. In addition
+rules and directives in the user manual available on our
+[CTAN page](https://ctan.org/pkg/arara) or on
+[arara's website](https://islandoftex.gitlab.io/arara/manual/). In addition
 to documenting all of the rules that come standard with `arara`, the manual
 gives a detailed explanation of how `arara` works, as well as how to create and
 use your own rules.

Deleted: trunk/Master/texmf-dist/doc/support/arara/arara-7.0.4-docsrc.zip
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/support/arara/arara-7.0.5-docsrc.zip
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/support/arara/arara-7.0.5-docsrc.zip
===================================================================
--- trunk/Master/texmf-dist/doc/support/arara/arara-7.0.5-docsrc.zip	2023-04-18 19:37:13 UTC (rev 66880)
+++ trunk/Master/texmf-dist/doc/support/arara/arara-7.0.5-docsrc.zip	2023-04-18 19:37:46 UTC (rev 66881)

Property changes on: trunk/Master/texmf-dist/doc/support/arara/arara-7.0.5-docsrc.zip
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/support/arara/arara-manual.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/support/arara/arara-quickstart.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/support/arara/htmlmanualtopdf.sh
===================================================================
--- trunk/Master/texmf-dist/doc/support/arara/htmlmanualtopdf.sh	2023-04-18 19:37:13 UTC (rev 66880)
+++ trunk/Master/texmf-dist/doc/support/arara/htmlmanualtopdf.sh	2023-04-18 19:37:46 UTC (rev 66881)
@@ -4,7 +4,7 @@
 
 # check the required tools; we make these available through the `nix develop`
 # shell so you may use that to build the manual
-required_tools=("pup" "sed" "weasyprint")
+required_tools=("htmlq" "sed" "weasyprint")
 for tool in "${required_tools[@]}"
 do
   if ! [ -x "$(command -v "$tool")" ]; then
@@ -131,13 +131,13 @@
 for chapter in "${chapters[@]}"
 do
   cp "$(echo "${baseurl}manual/$chapter/index.html" | cut -c8-)" "tmp-$htmlfile"
-  chapter_title="$(cat "tmp-$htmlfile" | pup '[class="heading-text"] text{}' \
+  chapter_title="$(cat "tmp-$htmlfile" | htmlq -t 'div.heading-text' \
                  | sed '/^[[:space:]]*$/d' | sed 's/ *$//g' | sed 's/^ *//g')"
   this_chapter_content="$(cat <<EOF
 <article>
 <h1 id="chapter-$chapter">$chapter_title</h1>
-$(cat "tmp-$htmlfile" | pup --pre ':parent-of([class="heading-text"])' \
-  | tail -n +5 | head -n -1 \
+$(cat "tmp-$htmlfile" | htmlq 'div.content.text' --remove-nodes 'div.heading-text' \
+  | tail -n +3 | head -n -1 \
   | sed -r 's/<(\/?)h5/<\1h6/g' | sed -r 's/<(\/?)h4/<\1h5/g' \
   | sed -r 's/<(\/?)h3/<\1h4/g' | sed -r 's/<(\/?)h2/<\1h3/g' \
   | sed -r 's/<(\/?)h1/<\1h2/g')
@@ -200,6 +200,18 @@
 </html>
 EOF
 
+# respect non-empty PAGES_URL that holds a customized base_url
+if [ -z "${PAGES_URL}" ]; then
+    PAGES_URL="https://islandoftex.gitlab.io/arara"
+fi
+
+# convert absolute urls (manual sub-pages)
+#   <a href="https://.../manual/yaml/">text</a>
+# to internal links (page anchors of section titles)
+#   <a href="#chapter-yaml">text</a>
+# To avoid doing case conversions, this replacement is postponed to here.
+sed -i 's~<a href="'$PAGES_URL'/manual/\([^/]*\)/">~<a href="#chapter-\1">~g' "$htmlfile"
+
 # convert the created HTML manual to PDF
 weasyprint -u "$baseurl" "$htmlfile" "$pdffile"
 

Modified: trunk/Master/texmf-dist/doc/support/arara/htmlquickstarttopdf.sh
===================================================================
--- trunk/Master/texmf-dist/doc/support/arara/htmlquickstarttopdf.sh	2023-04-18 19:37:13 UTC (rev 66880)
+++ trunk/Master/texmf-dist/doc/support/arara/htmlquickstarttopdf.sh	2023-04-18 19:37:46 UTC (rev 66881)
@@ -4,7 +4,7 @@
 
 # check the required tools; we make these available through the `nix develop`
 # shell so you may use that to build the manual
-required_tools=("pup" "sed" "weasyprint")
+required_tools=("htmlq" "sed" "weasyprint")
 for tool in "${required_tools[@]}"
 do
   if ! [ -x "$(command -v "$tool")" ]; then
@@ -64,8 +64,8 @@
 # assemble the manual content by fetching chapters from the webpage;
 # while doing so assemble the toc for that chapter as well
 cat <<EOF >> $htmlfile
-$(cat "$(echo "$baseurl" | cut -c8-)quickstart/index.html" | pup --pre ':parent-of([class="heading-text"])' \
-  | tail -n +5 | head -n -1 \
+$(cat "$(echo "$baseurl" | cut -c8-)quickstart/index.html" | htmlq 'div.content.text' --remove-nodes 'div.heading-text' \
+  | tail -n +3 | head -n -1 \
   | sed -r 's/<(\/?)h5/<\1h6/g' | sed -r 's/<(\/?)h4/<\1h5/g' \
   | sed -r 's/<(\/?)h3/<\1h4/g' | sed -r 's/<(\/?)h2/<\1h3/g' \
   | sed -r 's/<(\/?)h1/<\1h2/g')

Modified: trunk/Master/texmf-dist/doc/support/arara/resources/manual.css
===================================================================
--- trunk/Master/texmf-dist/doc/support/arara/resources/manual.css	2023-04-18 19:37:13 UTC (rev 66880)
+++ trunk/Master/texmf-dist/doc/support/arara/resources/manual.css	2023-04-18 19:37:46 UTC (rev 66881)
@@ -126,11 +126,14 @@
   font-size: 38pt;
   margin: 2cm 0 1cm 0;
   page: no-chapter;
+  /* see https://www.w3.org/TR/css-content-3/#bookmark-state */
+  bookmark-state: closed;
   width: 100%;
 }
 h2, h3, h4 {
   color: black;
   font-weight: 400;
+  bookmark-state: closed;
 }
 h2 {
   font-size: 28pt;
@@ -207,8 +210,8 @@
 
 .tex sub, .latex sub {
   vertical-align: -0.08cm;
-  margin-left: -0.15cm;
-  margin-right: -0.095cm;
+  margin-left: -0.065cm;
+  margin-right: 0cm;
 }
 
 .tex, .latex, .tex sub, .latex sub {

Modified: trunk/Master/texmf-dist/doc/support/arara/resources/version.txt
===================================================================
--- trunk/Master/texmf-dist/doc/support/arara/resources/version.txt	2023-04-18 19:37:13 UTC (rev 66880)
+++ trunk/Master/texmf-dist/doc/support/arara/resources/version.txt	2023-04-18 19:37:46 UTC (rev 66881)
@@ -1 +1 @@
-7.0.4
\ No newline at end of file
+7.0.5
\ No newline at end of file

Modified: trunk/Master/texmf-dist/scripts/arara/arara.jar
===================================================================
(Binary files differ)

Deleted: trunk/Master/texmf-dist/source/support/arara/arara-7.0.4-src.zip
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/source/support/arara/arara-7.0.5-src.zip
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/source/support/arara/arara-7.0.5-src.zip
===================================================================
--- trunk/Master/texmf-dist/source/support/arara/arara-7.0.5-src.zip	2023-04-18 19:37:13 UTC (rev 66880)
+++ trunk/Master/texmf-dist/source/support/arara/arara-7.0.5-src.zip	2023-04-18 19:37:46 UTC (rev 66881)

Property changes on: trunk/Master/texmf-dist/source/support/arara/arara-7.0.5-src.zip
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property


More information about the tex-live-commits mailing list.