diff options
author | Karl Berry <karl@freefriends.org> | 2020-04-10 22:00:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-04-10 22:00:34 +0000 |
commit | 993a56dc5ce732dfd560a3d411d970709e732080 (patch) | |
tree | 0be74e078fbfb126531e9983b39e07be3100635c /Master/texmf-dist/scripts | |
parent | 9ebef863fbd274ccc04480e1f12b7ce385c739c8 (diff) |
arara
git-svn-id: svn://tug.org/texlive/trunk@54640 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
58 files changed, 512 insertions, 63 deletions
diff --git a/Master/texmf-dist/scripts/arara/arara.jar b/Master/texmf-dist/scripts/arara/arara.jar Binary files differindex 5af26466f3e..3a08d2ea12d 100644 --- a/Master/texmf-dist/scripts/arara/arara.jar +++ b/Master/texmf-dist/scripts/arara/arara.jar diff --git a/Master/texmf-dist/scripts/arara/rules/animate.yaml b/Master/texmf-dist/scripts/arara/rules/animate.yaml index d5baefa67d8..c2c3c3fcdcf 100644 --- a/Master/texmf-dist/scripts/arara/rules/animate.yaml +++ b/Master/texmf-dist/scripts/arara/rules/animate.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. @@ -16,13 +16,7 @@ commands: prefix = []; input = getBasename(reference).concat('.pdf'); output = getBasename(reference).concat('.gif'); - if (isUnix()) { - prefix = [ program ]; - } - else { - prefix = [ 'cmd', '/c', program ]; - } - return getCommand(prefix, '-delay', delay, '-loop', + return getCommand(program, '-delay', delay, '-loop', loop, '-density', density, options, input, output); } arguments: diff --git a/Master/texmf-dist/scripts/arara/rules/asymptote.yaml b/Master/texmf-dist/scripts/arara/rules/asymptote.yaml index 7e56a0a7535..8ebf68eeda9 100644 --- a/Master/texmf-dist/scripts/arara/rules/asymptote.yaml +++ b/Master/texmf-dist/scripts/arara/rules/asymptote.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/bib2gls.yaml b/Master/texmf-dist/scripts/arara/rules/bib2gls.yaml index a33744faec9..0fa6f4d1a25 100644 --- a/Master/texmf-dist/scripts/arara/rules/bib2gls.yaml +++ b/Master/texmf-dist/scripts/arara/rules/bib2gls.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. @@ -60,8 +60,8 @@ commands: else { return getCommand('bib2gls', dir, trans, group, interpret, - breakspace, trimfields, recordcount, recordcountunit, - cite, verbose, merge, locale, uniscript, packages, + breakspace, trimfields, recordcount, recordcountunit, + cite, verbose, merge, locale, uniscript, packages, ignore, custom, mapformats, options, getBasename(reference)); } } diff --git a/Master/texmf-dist/scripts/arara/rules/biber.yaml b/Master/texmf-dist/scripts/arara/rules/biber.yaml index 5ca0498f15a..1edafe1e969 100644 --- a/Master/texmf-dist/scripts/arara/rules/biber.yaml +++ b/Master/texmf-dist/scripts/arara/rules/biber.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/bibtex.yaml b/Master/texmf-dist/scripts/arara/rules/bibtex.yaml index 55dd1f0fec9..73016ff43e9 100644 --- a/Master/texmf-dist/scripts/arara/rules/bibtex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/bibtex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/bibtex8.yaml b/Master/texmf-dist/scripts/arara/rules/bibtex8.yaml index 3741a920ea3..310cd96c2c2 100644 --- a/Master/texmf-dist/scripts/arara/rules/bibtex8.yaml +++ b/Master/texmf-dist/scripts/arara/rules/bibtex8.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/bibtexu.yaml b/Master/texmf-dist/scripts/arara/rules/bibtexu.yaml index b1e6d181651..fa29aac8d2a 100644 --- a/Master/texmf-dist/scripts/arara/rules/bibtexu.yaml +++ b/Master/texmf-dist/scripts/arara/rules/bibtexu.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/clean.yaml b/Master/texmf-dist/scripts/arara/rules/clean.yaml index 2a82eb3a87e..aa07560cb90 100644 --- a/Master/texmf-dist/scripts/arara/rules/clean.yaml +++ b/Master/texmf-dist/scripts/arara/rules/clean.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/context.yaml b/Master/texmf-dist/scripts/arara/rules/context.yaml new file mode 100644 index 00000000000..5b8546486ed --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/context.yaml @@ -0,0 +1,171 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: context +name: ConTeXt +authors: +- Island of TeX +commands: +- name: ConTeXt engine + command: > + @{ + return getCommand('context', make, ctx, interface, autopdf, purge, + modules, environments, mode, path, arguments, + trackers, directives, silent, errors, interaction, + synctex, options, reference); + } +arguments: +- identifier: make + flag: > + @{ + return isTrue(parameters.make, '--make'); + } +- identifier: ctx + flag: > + @{ + return '--ctx='.concat(parameters.ctx); + } +- identifier: interface + flag: > + @{ + return [ '--interface', parameters.interface ]; + } +- identifier: autopdf + flag: > + @{ + return isTrue(parameters.autopdf, '--autopdf'); + } +- identifier: purge + flag: > + @{ + p = [ 'partial' : '--purge', 'all' : '--purgeall', + 'result' : '--purgeresult' ]; + if (p.keySet().contains(parameters.purge)) { + return p.get(parameters.purge); + } + else { + throwError('Invalid value, expected either partial or all.'); + } + } +- identifier: modules + flag: > + @{ + if (isList(parameters.modules)) { + return '--usemodule='.concat(String.join(',', parameters.modules)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: environments + flag: > + @{ + if (isList(parameters.environments)) { + return '--environment='.concat(String.join(',', + parameters.environments)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: mode + flag: > + @{ + if (isList(parameters.mode)) { + return '--mode='.concat(String.join(',', parameters.mode)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: path + flag: > + @{ + if (isList(parameters.path)) { + return '--path='.concat(String.join(',', parameters.path)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: arguments + flag: > + @{ + if (isList(parameters.arguments)) { + return '--arguments='.concat(String.join(',', + parameters.arguments)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: trackers + flag: > + @{ + if (isList(parameters.trackers)) { + return '--trackers='.concat(String.join(',', parameters.trackers)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: directives + flag: > + @{ + if (isList(parameters.directives)) { + return '--directives='.concat(String.join(',', + parameters.directives)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: silent + flag: > + @{ + if (isList(parameters.modules)) { + return '--silent='.concat(String.join(',', parameters.silent)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: errors + flag: > + @{ + if (isList(parameters.errors)) { + return '--errors='.concat(String.join(',', parameters.errors)); + } + else { + throwError('I was expecting a list.'); + } + } +- identifier: interaction + flag: > + @{ + if ([ 'batchmode', 'nonstopmode' ].contains(parameters.interaction)) { + return '--'.concat(parameters.interaction); + } + else { + throwError('The provided interaction value is not valid.'); + } + } +- identifier: synctex + flag: > + @{ + return isTrue(parameters.synctex, '--synctex', '--nosynctex'); + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } + diff --git a/Master/texmf-dist/scripts/arara/rules/convert.yaml b/Master/texmf-dist/scripts/arara/rules/convert.yaml new file mode 100644 index 00000000000..7a2140d0a77 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/convert.yaml @@ -0,0 +1,34 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: convert +name: Convert +authors: +- Island of TeX +commands: +- name: The Convert program + command: > + @{ + return getCommand(program, options); + } +arguments: +- identifier: program + flag: > + @{ + parameters.program + } + default: convert +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } + required: true diff --git a/Master/texmf-dist/scripts/arara/rules/csplain.yaml b/Master/texmf-dist/scripts/arara/rules/csplain.yaml index 33e13c1a930..f5447599ca0 100644 --- a/Master/texmf-dist/scripts/arara/rules/csplain.yaml +++ b/Master/texmf-dist/scripts/arara/rules/csplain.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/datatooltk.yaml b/Master/texmf-dist/scripts/arara/rules/datatooltk.yaml index 6fc08491c82..13526dbc130 100644 --- a/Master/texmf-dist/scripts/arara/rules/datatooltk.yaml +++ b/Master/texmf-dist/scripts/arara/rules/datatooltk.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. @@ -12,7 +12,7 @@ commands: - name: The DatatoolTk software command: > @{ - return getCommand('datatooltk', options, output, csv, sql, input, + return getCommand('datatooltk', options, output, csv, sql, input, sqldb, sqluser, name, probsoln, sort, sortlocale, sortcase, seed, shuffle, sep, delim, csvheader, noconsole, debug, owneronly, maptex, xls, ods, sheet, filterop, filters, diff --git a/Master/texmf-dist/scripts/arara/rules/detex.yaml b/Master/texmf-dist/scripts/arara/rules/detex.yaml new file mode 100644 index 00000000000..d90d779d6a9 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/detex.yaml @@ -0,0 +1,82 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: detex +name: DeTeX +authors: +- Island of TeX +commands: +- name: The DeTeX program + command: > + @{ + c = getCommand('detex', references, mode, follow, math, spaces, + words, environments, reference); + if (isEmpty(output)) { + return c; + } + else { + p = unsafelyExecuteSystemCommand(c); + if (p.first == 0) { + return writeToFile(toFile(output), p.second, false); + } + else { + return false; + } + } + } +arguments: +- identifier: references + flag: > + @{ + return isTrue(parameters.references, '-c'); + } +- identifier: mode + flag: > + @{ + modes = [ 'latex' : '-l', 'tex' : '-t' ]; + if (modes.keySet().contains(parameters.mode)) { + return modes.get(parameters.mode); + } + else { + throwError('I was expecting either the TeX or LaTeX mode.'); + } + } +- identifier: follow + flag: > + @{ + return isFalse(parameters.follow, '-n'); + } +- identifier: math + flag: > + @{ + return isFalse(parameters.math, '-r'); + } +- identifier: spaces + flag: > + @{ + return isTrue(parameters.spaces, '-s'); + } +- identifier: words + flag: > + @{ + return isTrue(parameters.words, '-w'); + } +- identifier: environments + flag: > + @{ + if (!isList(parameters.environments)) { + throwError('I was expecting a list of environments.'); + } + else { + return [ '-e', String.join(',', parameters.environments) ]; + } + } +- identifier: output + flag: > + @{ + return parameters.output; + } + diff --git a/Master/texmf-dist/scripts/arara/rules/dvipdfm.yaml b/Master/texmf-dist/scripts/arara/rules/dvipdfm.yaml index e80fe5bf989..bbd5be92c7d 100644 --- a/Master/texmf-dist/scripts/arara/rules/dvipdfm.yaml +++ b/Master/texmf-dist/scripts/arara/rules/dvipdfm.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/dvipdfmx.yaml b/Master/texmf-dist/scripts/arara/rules/dvipdfmx.yaml index e4af77204b0..d62f89968d4 100644 --- a/Master/texmf-dist/scripts/arara/rules/dvipdfmx.yaml +++ b/Master/texmf-dist/scripts/arara/rules/dvipdfmx.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/dvips.yaml b/Master/texmf-dist/scripts/arara/rules/dvips.yaml index c110f19679f..68196e09dda 100644 --- a/Master/texmf-dist/scripts/arara/rules/dvips.yaml +++ b/Master/texmf-dist/scripts/arara/rules/dvips.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/dvipspdf.yaml b/Master/texmf-dist/scripts/arara/rules/dvipspdf.yaml index 52df9731dfa..a4888325e62 100644 --- a/Master/texmf-dist/scripts/arara/rules/dvipspdf.yaml +++ b/Master/texmf-dist/scripts/arara/rules/dvipspdf.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/dvisvgm.yaml b/Master/texmf-dist/scripts/arara/rules/dvisvgm.yaml index 34edc09c576..d9d094ac3e4 100644 --- a/Master/texmf-dist/scripts/arara/rules/dvisvgm.yaml +++ b/Master/texmf-dist/scripts/arara/rules/dvisvgm.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/etex.yaml b/Master/texmf-dist/scripts/arara/rules/etex.yaml index 6145fad1122..0411915ef76 100644 --- a/Master/texmf-dist/scripts/arara/rules/etex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/etex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/fig2dev.yaml b/Master/texmf-dist/scripts/arara/rules/fig2dev.yaml new file mode 100644 index 00000000000..fd36069205c --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/fig2dev.yaml @@ -0,0 +1,66 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: fig2dev +name: fig2dev +authors: +- Island of TeX +commands: +- name: The fig2dev program + command: > + @{ + input = getBasename(reference).concat('.fig'); + return getCommand('fig2dev', language, magnification, font, size, + options, input, output); + } +arguments: +- identifier: language + flag: > + @{ + if ([ 'box', 'cgm', 'epic', 'eepic', 'eepicemu', 'emf', 'eps', 'gif', + 'ibmgl', 'jpeg', 'latex', 'map', 'mf', 'mp', 'mmp', 'pcx', + 'pdf', 'pdftex', 'pdftex_t', 'pic', 'pictex', 'png', 'ppm', + 'ps', 'pstex', 'pstex_t', 'ptk', 'shape', 'sld', 'svg', + 'textyl', 'tiff', 'tk', 'tpic', 'xbm', + 'xpm' ].contains(parameters.language)) { + return [ '-L', parameters.language ]; + } + else { + throwError('Invalid language, please refer to the manual.'); + } + } + required: true +- identifier: output + flag: > + @{ + return parameters.output; + } + required: true +- identifier: magnification + flag: > + @{ + return [ '-m', parameters.magnification ]; + } +- identifier: font + flag: > + @{ + return [ '-f', parameters.font ]; + } +- identifier: size + flag: > + @{ + return [ '-s', parameters.size ]; + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.') + } + } diff --git a/Master/texmf-dist/scripts/arara/rules/frontespizio.yaml b/Master/texmf-dist/scripts/arara/rules/frontespizio.yaml index a4637ff9f88..3b0ab0a853d 100644 --- a/Master/texmf-dist/scripts/arara/rules/frontespizio.yaml +++ b/Master/texmf-dist/scripts/arara/rules/frontespizio.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/halt.yaml b/Master/texmf-dist/scripts/arara/rules/halt.yaml index 1c14644bcbe..3ac9106e909 100644 --- a/Master/texmf-dist/scripts/arara/rules/halt.yaml +++ b/Master/texmf-dist/scripts/arara/rules/halt.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/indent.yaml b/Master/texmf-dist/scripts/arara/rules/indent.yaml index 5ef623c5dbf..4471d3728c9 100644 --- a/Master/texmf-dist/scripts/arara/rules/indent.yaml +++ b/Master/texmf-dist/scripts/arara/rules/indent.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/knitr.yaml b/Master/texmf-dist/scripts/arara/rules/knitr.yaml index feb6b1847c8..3a3d5dfead1 100644 --- a/Master/texmf-dist/scripts/arara/rules/knitr.yaml +++ b/Master/texmf-dist/scripts/arara/rules/knitr.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/latex.yaml b/Master/texmf-dist/scripts/arara/rules/latex.yaml index b79c051c1de..268ff1f7076 100644 --- a/Master/texmf-dist/scripts/arara/rules/latex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/latex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/latexmk.yaml b/Master/texmf-dist/scripts/arara/rules/latexmk.yaml index 61f0ff9d7be..0f39e9d7098 100644 --- a/Master/texmf-dist/scripts/arara/rules/latexmk.yaml +++ b/Master/texmf-dist/scripts/arara/rules/latexmk.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/luahbtex.yaml b/Master/texmf-dist/scripts/arara/rules/luahbtex.yaml index 3f851fad9ee..1557fa06145 100644 --- a/Master/texmf-dist/scripts/arara/rules/luahbtex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/luahbtex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/lualatex.yaml b/Master/texmf-dist/scripts/arara/rules/lualatex.yaml index d9870976d1a..68f14d78e9e 100644 --- a/Master/texmf-dist/scripts/arara/rules/lualatex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/lualatex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/luatex.yaml b/Master/texmf-dist/scripts/arara/rules/luatex.yaml index 86c7556993f..91099219f64 100644 --- a/Master/texmf-dist/scripts/arara/rules/luatex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/luatex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/make.yaml b/Master/texmf-dist/scripts/arara/rules/make.yaml index 0298ae95bee..afc83a6e9ca 100644 --- a/Master/texmf-dist/scripts/arara/rules/make.yaml +++ b/Master/texmf-dist/scripts/arara/rules/make.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/makeglossaries.yaml b/Master/texmf-dist/scripts/arara/rules/makeglossaries.yaml index 34c1c07002f..861330045e8 100644 --- a/Master/texmf-dist/scripts/arara/rules/makeglossaries.yaml +++ b/Master/texmf-dist/scripts/arara/rules/makeglossaries.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. @@ -32,11 +32,11 @@ commands: lines = readFromFile(base.concat('.').concat('aux')); - java.util.regex.Pattern glsPattern = + java.util.regex.Pattern glsPattern = java.util.regex.Pattern.compile( "\\\\@newglossary\\{.*\\}\\{(.*)\\}\\{(.*)\\}\\{(.*)\\}"); - java.util.regex.Pattern istPattern = + java.util.regex.Pattern istPattern = (clean == 'partial' ? null : java.util.regex.Pattern.compile("\\\\@istfilename\\{(.*)\\}")); diff --git a/Master/texmf-dist/scripts/arara/rules/makeglossarieslite.yaml b/Master/texmf-dist/scripts/arara/rules/makeglossarieslite.yaml index d716e97b4ab..177ba6971fb 100644 --- a/Master/texmf-dist/scripts/arara/rules/makeglossarieslite.yaml +++ b/Master/texmf-dist/scripts/arara/rules/makeglossarieslite.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/makeindex.yaml b/Master/texmf-dist/scripts/arara/rules/makeindex.yaml index 795075bce2a..319ef71438b 100644 --- a/Master/texmf-dist/scripts/arara/rules/makeindex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/makeindex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/metapost.yaml b/Master/texmf-dist/scripts/arara/rules/metapost.yaml index b72ff48b5c0..b3a58645ddd 100644 --- a/Master/texmf-dist/scripts/arara/rules/metapost.yaml +++ b/Master/texmf-dist/scripts/arara/rules/metapost.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/nomencl.yaml b/Master/texmf-dist/scripts/arara/rules/nomencl.yaml index a2c3acf468a..f859f728813 100644 --- a/Master/texmf-dist/scripts/arara/rules/nomencl.yaml +++ b/Master/texmf-dist/scripts/arara/rules/nomencl.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/pbibtex.yaml b/Master/texmf-dist/scripts/arara/rules/pbibtex.yaml index 9b39451d4d3..1a0347da760 100644 --- a/Master/texmf-dist/scripts/arara/rules/pbibtex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/pbibtex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/pdfcsplain.yaml b/Master/texmf-dist/scripts/arara/rules/pdfcsplain.yaml index 6dc6d287f49..88d2f7b31e7 100644 --- a/Master/texmf-dist/scripts/arara/rules/pdfcsplain.yaml +++ b/Master/texmf-dist/scripts/arara/rules/pdfcsplain.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/pdflatex.yaml b/Master/texmf-dist/scripts/arara/rules/pdflatex.yaml index 3df1135dfa9..385e99b9972 100644 --- a/Master/texmf-dist/scripts/arara/rules/pdflatex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/pdflatex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/pdftex.yaml b/Master/texmf-dist/scripts/arara/rules/pdftex.yaml index 8b10bc02f56..45a7e32f244 100644 --- a/Master/texmf-dist/scripts/arara/rules/pdftex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/pdftex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/pdftk.yaml b/Master/texmf-dist/scripts/arara/rules/pdftk.yaml index 67e81f0bd4d..73ee784417d 100644 --- a/Master/texmf-dist/scripts/arara/rules/pdftk.yaml +++ b/Master/texmf-dist/scripts/arara/rules/pdftk.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/platex.yaml b/Master/texmf-dist/scripts/arara/rules/platex.yaml index 3a592687539..0c1d62cacd3 100644 --- a/Master/texmf-dist/scripts/arara/rules/platex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/platex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/ps2pdf.yaml b/Master/texmf-dist/scripts/arara/rules/ps2pdf.yaml index fe5684d1c2b..db220f30376 100644 --- a/Master/texmf-dist/scripts/arara/rules/ps2pdf.yaml +++ b/Master/texmf-dist/scripts/arara/rules/ps2pdf.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/ptex.yaml b/Master/texmf-dist/scripts/arara/rules/ptex.yaml index 3771981e7f6..cb5103fa365 100644 --- a/Master/texmf-dist/scripts/arara/rules/ptex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/ptex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/qpdf.yaml b/Master/texmf-dist/scripts/arara/rules/qpdf.yaml new file mode 100644 index 00000000000..c2cb852a7d9 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/qpdf.yaml @@ -0,0 +1,28 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: qpdf +name: QPDF +authors: +- Island of TeX +commands: +- name: The QPDF program + command: > + @{ + return getCommand('qpdf', options); + } +arguments: +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } + required: true diff --git a/Master/texmf-dist/scripts/arara/rules/sketch.yaml b/Master/texmf-dist/scripts/arara/rules/sketch.yaml index ca3d22834a2..0970d2e5b8f 100644 --- a/Master/texmf-dist/scripts/arara/rules/sketch.yaml +++ b/Master/texmf-dist/scripts/arara/rules/sketch.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/songidx.yaml b/Master/texmf-dist/scripts/arara/rules/songidx.yaml index ff4a27e6b8f..a1cadae4310 100644 --- a/Master/texmf-dist/scripts/arara/rules/songidx.yaml +++ b/Master/texmf-dist/scripts/arara/rules/songidx.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/tex.yaml b/Master/texmf-dist/scripts/arara/rules/tex.yaml index 701d2000962..c682ea6b919 100644 --- a/Master/texmf-dist/scripts/arara/rules/tex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/tex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/texcount.yaml b/Master/texmf-dist/scripts/arara/rules/texcount.yaml new file mode 100644 index 00000000000..79506c806c9 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/texcount.yaml @@ -0,0 +1,74 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: texcount +name: TeXcount +authors: +- Island of TeX +commands: +- name: The TeXcount program + command: > + @{ + return getCommand('texcount', rules, verbosity, strict, html, + total, unicode, options, output, reference); + } +arguments: +- identifier: rules + flag: > + @{ + if ([ 'relaxed', 'restricted' ].contains(parameters.rules)) { + return '-'.concat(parameters.rules); + } + else { + throwError('Invalid value, use either relaxed or restricted.'); + } + } +- identifier: verbosity + flag: > + @{ + if ([ '0', '1', '2', '3', '4' ].contains(parameters.verbosity)) { + return '-v'.concat(parameters.verbosity); + } + else { + throwError('Invalid value, use an integer range from 0 to 4.'); + } + } +- identifier: strict + flag: > + @{ + return isTrue(parameters.strict, '-strict'); + } +- identifier: html + flag: > + @{ + return isTrue(parameters.html, '-html'); + } +- identifier: total + flag: > + @{ + return isTrue(parameters.total, '-total'); + } +- identifier: unicode + flag: > + @{ + return isTrue(parameters.unicode, '-unicode'); + } +- identifier: output + flag: > + @{ + return '-out='.concat(parameters.output); + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } + diff --git a/Master/texmf-dist/scripts/arara/rules/texindy.yaml b/Master/texmf-dist/scripts/arara/rules/texindy.yaml index 54b468d42ac..6d747f7217c 100644 --- a/Master/texmf-dist/scripts/arara/rules/texindy.yaml +++ b/Master/texmf-dist/scripts/arara/rules/texindy.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/tikzmake.yaml b/Master/texmf-dist/scripts/arara/rules/tikzmake.yaml index 97942aaa3ba..0569ba9a650 100644 --- a/Master/texmf-dist/scripts/arara/rules/tikzmake.yaml +++ b/Master/texmf-dist/scripts/arara/rules/tikzmake.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/upbibtex.yaml b/Master/texmf-dist/scripts/arara/rules/upbibtex.yaml index eb0f5fba9db..d6593dea57f 100644 --- a/Master/texmf-dist/scripts/arara/rules/upbibtex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/upbibtex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/uplatex.yaml b/Master/texmf-dist/scripts/arara/rules/uplatex.yaml index 0fd1d575f9a..c0f2cdf3cd0 100644 --- a/Master/texmf-dist/scripts/arara/rules/uplatex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/uplatex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/uptex.yaml b/Master/texmf-dist/scripts/arara/rules/uptex.yaml index b2c9c90fe70..6163e0ae699 100644 --- a/Master/texmf-dist/scripts/arara/rules/uptex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/uptex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/xdvipdfmx.yaml b/Master/texmf-dist/scripts/arara/rules/xdvipdfmx.yaml index bf67572fc34..75bf182a4df 100644 --- a/Master/texmf-dist/scripts/arara/rules/xdvipdfmx.yaml +++ b/Master/texmf-dist/scripts/arara/rules/xdvipdfmx.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/xelatex.yaml b/Master/texmf-dist/scripts/arara/rules/xelatex.yaml index ef1e1a8f0a0..b94e35f7970 100644 --- a/Master/texmf-dist/scripts/arara/rules/xelatex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/xelatex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/xetex.yaml b/Master/texmf-dist/scripts/arara/rules/xetex.yaml index 0d13768a285..faefd9ca173 100644 --- a/Master/texmf-dist/scripts/arara/rules/xetex.yaml +++ b/Master/texmf-dist/scripts/arara/rules/xetex.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. diff --git a/Master/texmf-dist/scripts/arara/rules/xindy.yaml b/Master/texmf-dist/scripts/arara/rules/xindy.yaml index 2efc37daf5d..f1c12f0c1d6 100644 --- a/Master/texmf-dist/scripts/arara/rules/xindy.yaml +++ b/Master/texmf-dist/scripts/arara/rules/xindy.yaml @@ -1,6 +1,6 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2020, Island of TeX +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. |