summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/doclicense
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/doclicense')
-rw-r--r--macros/latex/contrib/doclicense/Makefile46
-rw-r--r--macros/latex/contrib/doclicense/README.md7
-rw-r--r--macros/latex/contrib/doclicense/doclicense-austrian.ldf33
-rw-r--r--macros/latex/contrib/doclicense/doclicense-brazilian.ldf2
-rw-r--r--macros/latex/contrib/doclicense/doclicense-greek.ldf30
-rw-r--r--macros/latex/contrib/doclicense/doclicense-naustrian.ldf10
-rw-r--r--macros/latex/contrib/doclicense/doclicense-nswissgerman.ldf10
-rw-r--r--macros/latex/contrib/doclicense/doclicense-swissgerman.ldf33
-rw-r--r--macros/latex/contrib/doclicense/doclicense.dtx67
-rw-r--r--macros/latex/contrib/doclicense/doclicense.pdfbin274374 -> 293454 bytes
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-3.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-4.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-3.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-4.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-nd-3.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-nd-4.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-sa-3.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-sa-4.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nd-3.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nd-4.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-sa-3.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-sa-4.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/license-texts/doclicense-CC-zero-1.0-latex.tex2
-rw-r--r--macros/latex/contrib/doclicense/manifest.txt19
-rwxr-xr-xmacros/latex/contrib/doclicense/test-package-option-matrix151
25 files changed, 372 insertions, 62 deletions
diff --git a/macros/latex/contrib/doclicense/Makefile b/macros/latex/contrib/doclicense/Makefile
index 9f00b5930d..619cc7e3d9 100644
--- a/macros/latex/contrib/doclicense/Makefile
+++ b/macros/latex/contrib/doclicense/Makefile
@@ -8,39 +8,60 @@
TEXMFHOME ?= $(shell kpsewhich -var-value TEXMFHOME)
SHELL := /bin/bash -o nounset -o pipefail -o errexit
+RELEASE_OPENPGP_FINGERPRINT ?= C505B5C93B0DB3D338A1B6005FE92C12EE88E1F0
+DOCLICENSE_VERSION ?= $(shell sed --quiet --regexp-extended 's/.* v([0-9.]+) Support for putting documents under a license\]/\1/p;' doclicense.dtx)
+
.PHONY: all
-all: install build
+all: build
.PHONY: build
build: manifest.txt doclicense.sty doclicense.pdf
+# Duplicated in ../.github/workflows/ci.yml to have separate sections in the CI
+# output for each step.
.PHONY: ci
-ci: lint build
+ci: lint install-symlink build test-package-option-matrix-only-english
-.PHONY: install
-install:
+.PHONY: install-symlink
+install-symlink: doclicense.sty
mkdir --parents "$(TEXMFHOME)/tex/latex/"
- test -L "$(TEXMFHOME)/tex/latex/doclicense" || ln --no-target-directory --symbolic "$$PWD" "$(TEXMFHOME)/tex/latex/doclicense"
+ test -L "$(TEXMFHOME)/tex/latex/doclicense" || ln --no-target-directory --symbolic "$(shell pwd)" "$(TEXMFHOME)/tex/latex/doclicense"
.PHONY: check
check: check-copyright-date manifest.txt doclicense.sty lint
# Run before release.
.PHONY: check-full
-check-full: check run_tests
- ./run_tests
+check-full: check test-package-option-matrix
+
+.PHONY: test-package-option-matrix
+test-package-option-matrix:
+ ./test-package-option-matrix
+
+.PHONY: test-package-option-matrix-only-english
+test-package-option-matrix-only-english:
+ ./test-package-option-matrix "english"
# CTAN people want this when uploading a release.
.PHONY: check-copyright-date
-check-copyright-date: README.md
- grep --quiet 'SPDX-FileCopyrightText:.*$(shell date +%Y)\s' "$<"
+check-copyright-date: README.md doclicense.dtx
+ grep --quiet 'SPDX-FileCopyrightText:.*$(shell date +%Y)\s' README.md
+ grep --quiet 'SPDX-FileCopyrightText:.*$(shell date +%Y)\s' doclicense.dtx
+
+.PHONY: release-local
+release-local: check-copyright-date
+ git tag --sign --local-user "$(RELEASE_OPENPGP_FINGERPRINT)" --message "Released version $(DOCLICENSE_VERSION) of doclicense" "doclicense/v$(DOCLICENSE_VERSION)"
+
+.PHONY: release-publish
+release-publish:
+ git push --follow-tags
.PHONY: lint
lint: doclicense.dtx
chktex "$<"
find -regextype posix-egrep -iregex '.*\.(tex|ldf)' -and -not -iname '*-plaintext.tex' -print0 | xargs --null chktex
[[ -z "$(shell lacheck "$<" *.ldf | grep 'possible unwanted space')" ]]
- reuse lint
+ reuse --root . lint
.PHONY: clean
clean:
@@ -62,9 +83,10 @@ doclicense.pdf:
# The `cd .. && git archive` trick was needed with 2.29.2 so that evaluation of
# the `.gitattributes` file worked correctly.
-manifest.txt: manifest_header.txt Makefile
+.FORCE:
+manifest.txt: manifest_header.txt Makefile .FORCE
cat "$<" > "$@"
echo "% This work consists of the files:" >> "$@"
- cd .. && git archive --worktree-attributes HEAD doclicense | tar -t -f - | grep -v '/$$' | sort >> "$(PWD)/$@"
+ cd .. && git archive --worktree-attributes HEAD doclicense | tar -t -f - | grep -v '/$$' | sort >> "$(shell pwd)/$@"
echo "% and the derived files:" >> "$@"
echo doclicense.sty doclicense.pdf | tr ' ' '\n' >> "$@"
diff --git a/macros/latex/contrib/doclicense/README.md b/macros/latex/contrib/doclicense/README.md
index 28f2a97336..ecddc4c831 100644
--- a/macros/latex/contrib/doclicense/README.md
+++ b/macros/latex/contrib/doclicense/README.md
@@ -1,5 +1,5 @@
<!--
-SPDX-FileCopyrightText: 2015,2017-2022 Robin Schneider <ypid@riseup.net>
+SPDX-FileCopyrightText: 2015,2017-2023 Robin Schneider <ypid@riseup.net>
SPDX-License-Identifier: LPPL-1.3c
@@ -42,12 +42,11 @@ make doclicense.pdf
Note that this will only work when this directory is below your
`$TEXMFHOME` tree (unless the doclicense package is already installed
-for example by your TeX distribution). Example for doing this manually:
+for example by your TeX distribution). Example for doing this:
```Shell
-mkdir --parents ~/texmf/tex/latex/ && cd ~/texmf/tex/latex/
git clone https://github.com/ypid/latex-packages.git ypid-latex-packages
-cd ypid-latex-packages/doclicense && make build
+cd ypid-latex-packages/doclicense && make install-symlink build
```
If you have not worked with `$TEXMFHOME` you might want to refer to the
diff --git a/macros/latex/contrib/doclicense/doclicense-austrian.ldf b/macros/latex/contrib/doclicense/doclicense-austrian.ldf
new file mode 100644
index 0000000000..684b83161c
--- /dev/null
+++ b/macros/latex/contrib/doclicense/doclicense-austrian.ldf
@@ -0,0 +1,33 @@
+% SPDX-FileCopyrightText: 2015,2020 Robin Schneider <ypid@riseup.net>
+%
+% SPDX-License-Identifier: LPPL-1.3c
+%
+% This work consists of all files listed in manifest.txt.
+% For more details about the licensing, refer to the README.md file.
+
+\ProvidesFile{doclicense-austrian.ldf}
+
+\@namedef{doclicense@lang@thisDoc}{Dieses Werk ist lizenziert unter einer}%
+\@namedef{doclicense@lang@word@license}{ Lizenz}%
+\ifthenelse{\equal{\doclicense@imagemodifier}{-88x31}}{% chktex 29
+ \@namedef{doclicense@imagemodifier}{-eu-88x31}% chktex 29
+}{}
+
+\@namedef{doclicense@lang@lic@CC@code}{de}%
+% Using: https://en.wikipedia.org/wiki/ISO_639-1
+
+\@namedef{doclicense@lang@lic@CC@zero@1.0}{CC0 1.0 Universell}%
+
+\@namedef{doclicense@lang@lic@CC@by@3.0}{Namensnennung 3.0 \"Osterreich}%
+\@namedef{doclicense@lang@lic@CC@by-sa@3.0}{Namensnennung -- Weitergabe unter gleichen Bedingungen 3.0 \"Osterreich}% chktex 8
+\@namedef{doclicense@lang@lic@CC@by-nd@3.0}{Namensnennung-Keine Bearbeitung 3.0 \"Osterreich}%
+\@namedef{doclicense@lang@lic@CC@by-nc@3.0}{Namensnennung-Nicht kommerziell 3.0 \"Osterreich}%
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@3.0}{Namensnennung -- Nicht-kommerziell -- Weitergabe unter gleichen Bedingungen 3.0 \"Osterreich}% chktex 8
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@3.0}{Namensnennung -- Nicht-kommerziell -- Keine Bearbeitung 3.0 \"Osterreich}% chktex 8
+
+\@namedef{doclicense@lang@lic@CC@by@4.0}{Namensnennung 4.0 International}%
+\@namedef{doclicense@lang@lic@CC@by-sa@4.0}{Namensnennung -- Weitergabe unter gleichen Bedingungen 4.0 International}% chktex 8
+\@namedef{doclicense@lang@lic@CC@by-nd@4.0}{Namensnennung -- Keine Bearbeitungen 4.0 International}% chktex 8
+\@namedef{doclicense@lang@lic@CC@by-nc@4.0}{Namensnennung-Nicht kommerziell 4.0 International}%
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@4.0}{Namensnennung -- Nicht-kommerziell -- Weitergabe unter gleichen Bedingungen 4.0 International}% chktex 8
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@4.0}{Namensnennung -- Nicht kommerziell -- Keine Bearbeitungen 4.0 International}% chktex 8
diff --git a/macros/latex/contrib/doclicense/doclicense-brazilian.ldf b/macros/latex/contrib/doclicense/doclicense-brazilian.ldf
index 4201316075..b6e43397af 100644
--- a/macros/latex/contrib/doclicense/doclicense-brazilian.ldf
+++ b/macros/latex/contrib/doclicense/doclicense-brazilian.ldf
@@ -7,7 +7,7 @@
\ProvidesFile{doclicense-brazilian.ldf}
-\@namedef{doclicense@lang@thisDoc}{Essa obra tem a licença}%
+\@namedef{doclicense@lang@thisDoc}{Esta obra tem a licença}%
\@namedef{doclicense@lang@word@license}{}%
\@namedef{doclicense@lang@lic@CC@code}{pt}%
diff --git a/macros/latex/contrib/doclicense/doclicense-greek.ldf b/macros/latex/contrib/doclicense/doclicense-greek.ldf
new file mode 100644
index 0000000000..e557b4a63c
--- /dev/null
+++ b/macros/latex/contrib/doclicense/doclicense-greek.ldf
@@ -0,0 +1,30 @@
+% SPDX-FileCopyrightText: 2023 Alexandros Korkos <alexkork@csd.auth.gr>
+%
+% SPDX-License-Identifier: LPPL-1.3c
+%
+% This work consists of all files listed in manifest.txt.
+% For more details about the licensing, refer to the README.md file.
+
+\ProvidesFile{doclicense-greek.ldf}
+
+\@namedef{doclicense@lang@thisDoc}{Το παρόν έργο αδειοδοτείται υπό τους όρους της}%
+\@namedef{doclicense@lang@word@license}{ άδειας}%
+
+\@namedef{doclicense@lang@lic@CC@code}{el}%
+% Using: https://en.wikipedia.org/wiki/ISO_639-1
+
+\@namedef{doclicense@lang@lic@CC@zero@1.0}{CC0 1.0 Παγκόσμια}%
+
+\@namedef{doclicense@lang@lic@CC@by@3.0}{Αναφορά Δημιουργού 3.0 Μη εισαγόμενο}%
+\@namedef{doclicense@lang@lic@CC@by-sa@3.0}{Αναφορά Δημιουργού-Παρόμοια Διανομή3.0 Μη εισαγόμενο}%
+\@namedef{doclicense@lang@lic@CC@by-nd@3.0}{Αναφορά Δημιουργού-Όχι Παράγωγα Έργα 3.0 Μη εισαγόμενο}%
+\@namedef{doclicense@lang@lic@CC@by-nc@3.0}{Αναφορά Δημιουργού-Μη Εμπορική Χρήση 3.0 Μη εισαγόμενο}%
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@3.0}{Αναφορά Δημιουργού-Μη Εμπορική Χρήση-Παρόμοια Διανομή 3.0 Μη εισαγόμενο}%
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@3.0}{Αναφορά Δημιουργού-Μη Εμπορική Χρήση-Όχι Παράγωγα Έργα 3.0 Μη εισαγόμενο}%
+
+\@namedef{doclicense@lang@lic@CC@by@4.0}{Αναφορά Δημιουργού 4.0 Διεθνές}%
+\@namedef{doclicense@lang@lic@CC@by-sa@4.0}{Αναφορά Δημιουργού-Παρόμοια Διανομή 4.0 Διεθνές}%
+\@namedef{doclicense@lang@lic@CC@by-nd@4.0}{Αναφορά Δημιουργού-Όχι Παράγωγα Έργα 4.0 Διεθνές}%
+\@namedef{doclicense@lang@lic@CC@by-nc@4.0}{Αναφορά Δημιουργού-Μη Εμπορική Χρήση 4.0 Διεθνές}%
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@4.0}{Αναφορά Δημιουργού-Μη Εμπορική Χρήση-Παρόμοια Διανομή 4.0 Διεθνές}%
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@4.0}{Αναφορά Δημιουργού-Μη Εμπορική Χρήση-Όχι Παράγωγα Έργα 4.0 Διεθνές}%
diff --git a/macros/latex/contrib/doclicense/doclicense-naustrian.ldf b/macros/latex/contrib/doclicense/doclicense-naustrian.ldf
new file mode 100644
index 0000000000..89a443db7a
--- /dev/null
+++ b/macros/latex/contrib/doclicense/doclicense-naustrian.ldf
@@ -0,0 +1,10 @@
+% SPDX-FileCopyrightText: 2015 Robin Schneider <ypid@riseup.net>
+%
+% SPDX-License-Identifier: LPPL-1.3c
+%
+% This work consists of all files listed in manifest.txt.
+% For more details about the licensing, refer to the README.md file.
+
+\ProvidesFile{doclicense-naustrian.ldf}
+
+\input{doclicense-austrian.ldf}
diff --git a/macros/latex/contrib/doclicense/doclicense-nswissgerman.ldf b/macros/latex/contrib/doclicense/doclicense-nswissgerman.ldf
new file mode 100644
index 0000000000..2004f12e6f
--- /dev/null
+++ b/macros/latex/contrib/doclicense/doclicense-nswissgerman.ldf
@@ -0,0 +1,10 @@
+% SPDX-FileCopyrightText: 2015 Robin Schneider <ypid@riseup.net>
+%
+% SPDX-License-Identifier: LPPL-1.3c
+%
+% This work consists of all files listed in manifest.txt.
+% For more details about the licensing, refer to the README.md file.
+
+\ProvidesFile{doclicense-nswissgerman.ldf}
+
+\input{doclicense-swissgerman.ldf}
diff --git a/macros/latex/contrib/doclicense/doclicense-swissgerman.ldf b/macros/latex/contrib/doclicense/doclicense-swissgerman.ldf
new file mode 100644
index 0000000000..cded2bedbf
--- /dev/null
+++ b/macros/latex/contrib/doclicense/doclicense-swissgerman.ldf
@@ -0,0 +1,33 @@
+% SPDX-FileCopyrightText: 2015,2020 Robin Schneider <ypid@riseup.net>
+%
+% SPDX-License-Identifier: LPPL-1.3c
+%
+% This work consists of all files listed in manifest.txt.
+% For more details about the licensing, refer to the README.md file.
+
+\ProvidesFile{doclicense-swissgerman.ldf}
+
+\@namedef{doclicense@lang@thisDoc}{Dieses Werk ist lizenziert unter einer}%
+\@namedef{doclicense@lang@word@license}{ Lizenz}%
+\ifthenelse{\equal{\doclicense@imagemodifier}{-88x31}}{% chktex 29
+ \@namedef{doclicense@imagemodifier}{-eu-88x31}% chktex 29
+}{}
+
+\@namedef{doclicense@lang@lic@CC@code}{de}%
+% Using: https://en.wikipedia.org/wiki/ISO_639-1
+
+\@namedef{doclicense@lang@lic@CC@zero@1.0}{CC0 1.0 Universell}%
+
+\@namedef{doclicense@lang@lic@CC@by@3.0}{Namensnennung 3.0 Schweiz}%
+\@namedef{doclicense@lang@lic@CC@by-sa@3.0}{Namensnennung -- Weitergabe unter gleichen Bedingungen 3.0 Schweiz}% chktex 8
+\@namedef{doclicense@lang@lic@CC@by-nd@3.0}{Namensnennung-Keine Bearbeitung 3.0 Schweiz}%
+\@namedef{doclicense@lang@lic@CC@by-nc@3.0}{Namensnennung-Nicht kommerziell 3.0 Schweiz}%
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@3.0}{Namensnennung -- Nicht-kommerziell -- Weitergabe unter gleichen Bedingungen 3.0 Schweiz}% chktex 8
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@3.0}{Namensnennung -- Nicht-kommerziell -- Keine Bearbeitung 3.0 Schweiz}% chktex 8
+
+\@namedef{doclicense@lang@lic@CC@by@4.0}{Namensnennung 4.0 International}%
+\@namedef{doclicense@lang@lic@CC@by-sa@4.0}{Namensnennung -- Weitergabe unter gleichen Bedingungen 4.0 International}% chktex 8
+\@namedef{doclicense@lang@lic@CC@by-nd@4.0}{Namensnennung -- Keine Bearbeitungen 4.0 International}% chktex 8
+\@namedef{doclicense@lang@lic@CC@by-nc@4.0}{Namensnennung-Nicht kommerziell 4.0 International}%
+\@namedef{doclicense@lang@lic@CC@by-nc-sa@4.0}{Namensnennung -- Nicht-kommerziell -- Weitergabe unter gleichen Bedingungen 4.0 International}% chktex 8
+\@namedef{doclicense@lang@lic@CC@by-nc-nd@4.0}{Namensnennung -- Nicht kommerziell -- Keine Bearbeitungen 4.0 International}% chktex 8
diff --git a/macros/latex/contrib/doclicense/doclicense.dtx b/macros/latex/contrib/doclicense/doclicense.dtx
index e0dddf762a..dc876edbdd 100644
--- a/macros/latex/contrib/doclicense/doclicense.dtx
+++ b/macros/latex/contrib/doclicense/doclicense.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% SPDX-FileCopyrightText: 2015-2022 Robin Schneider <ypid@riseup.net>
+% SPDX-FileCopyrightText: 2015-2023 Robin Schneider <ypid@riseup.net>
%
% SPDX-License-Identifier: LPPL-1.3c
%
@@ -24,7 +24,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1998/12/01]
%<package>\ProvidesPackage{doclicense}
%<*package>
- [2022/05/18 v3.2.0 Support for putting documents under a license]
+ [2023/10/01 v3.3.0 Support for putting documents under a license]
%</package>
%
%<*driver>
@@ -44,13 +44,15 @@
obeyspaces,
spaces,
]{url}
+\usepackage[table,svgnames]{xcolor}
\usepackage{%
babel,
csquotes,
- xcolor,
hypdoc,
nameref,
eqlist,
+ tabu,
+ tabularray,
}
\usepackage[iso]{isodate}
% ^^A https://tex.stackexchange.com/a/95893/32320
@@ -139,6 +141,7 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% \changes{3.0.0}{2021/07/11}{Breaking change: Hard require package options "type", "modifier" and "version" now after one year in soft require migration period. Add Croatian translation. Add sections to docs about choosing a license and the REUSE specification. Update Spanish translation to match Creative Commons website. Add note to README that CC license texts and images are licensed themselves under CC0-1.0. Load csquotes after hyperref to avoid hyperref warning. Do not load the hyperxmp package if the silence package is loaded to avoid an endless loop. Improve warning messages generated by the package. Add "Dependency packages and load order" section to docs.}
% \changes{3.1.0}{2022/04/27}{Add macro \cmd{\doclicenseLongTextForHyperref} and use it inside \cmd{\hypersetup} to replace the fagile code that was previously used. Add Traditional Chinese (Taiwan), Swedish and Esperanto translations.}
% \changes{3.2.0}{2022/05/18}{Add Ukrainian translation.}
+% \changes{3.3.0}{2023/10/01}{Add Austrian, Greek and Swiss German translations. Document available CC modifiers because it was not clear that to select CC0 the "zero" modifier must be used. Fix typo in Brazilian translation.}
%
%
%
@@ -271,6 +274,7 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% Supported languages:
% ^^A Sorted alphabetically.
% \begin{itemize}
+% \item Austrian
% \item Brazilian
% \item Bulgarian
% \item Catalan
@@ -281,6 +285,7 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% \item French
% \item Galician
% \item German
+% \item Greek
% \item Italian
% \item Japanese
% \item Marathi: Note that Niranjan also translated the images which are considered unofficial by the package. Creative Commons has no plans to support additional currencies.
@@ -289,6 +294,7 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% \item Russian
% \item Spanish
% \item Swedish
+% \item Swiss German
% \item Ukrainian
% \end{itemize}
%
@@ -521,22 +527,32 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% \subsection{CC (Creative Commons)}
%
% \makeatletter
-% ^^A Reverse sorted.
-% \begin{eqlist}
-% \item[CC0-1.0] \@nameuse{doclicense@lang@lic@CC@zero@1.0}
-% \item[CC-BY-4.0] \@nameuse{doclicense@lang@lic@CC@by@4.0}
-% \item[CC-BY-3.0] \@nameuse{doclicense@lang@lic@CC@by@3.0}
-% \item[CC-BY-SA-4.0] \@nameuse{doclicense@lang@lic@CC@by-sa@4.0}
-% \item[CC-BY-SA-3.0] \@nameuse{doclicense@lang@lic@CC@by-sa@3.0}
-% \item[CC-BY-ND-4.0] \@nameuse{doclicense@lang@lic@CC@by-nd@4.0}
-% \item[CC-BY-ND-3.0] \@nameuse{doclicense@lang@lic@CC@by-nd@3.0}
-% \item[CC-BY-NC-4.0] \@nameuse{doclicense@lang@lic@CC@by-nc@4.0}
-% \item[CC-BY-NC-3.0] \@nameuse{doclicense@lang@lic@CC@by-nc@3.0}
-% \item[CC-BY-NC-SA-4.0] \@nameuse{doclicense@lang@lic@CC@by-nc-sa@4.0}
-% \item[CC-BY-NC-SA-3.0] \@nameuse{doclicense@lang@lic@CC@by-nc-sa@3.0}
-% \item[CC-BY-NC-ND-4.0] \@nameuse{doclicense@lang@lic@CC@by-nc-nd@4.0}
-% \item[CC-BY-NC-ND-3.0] \@nameuse{doclicense@lang@lic@CC@by-nc-nd@3.0}
-% \end{eqlist}
+% \begin{longtblr}[
+% caption = {Supported Creative Commons licenses},
+% label = {tblr:cc},
+% ]{
+% colspec = {lrX},
+% rowhead = 1,
+% row{odd} = {bg=azure8},
+% row{1} = {bg=azure3, fg=white, font=\sffamily},
+% }
+% modifier & version & name\\
+%
+% ^^A Sorted alphabetically.
+% by & 3.0 & \@nameuse{doclicense@lang@lic@CC@by@3.0}\\
+% by & 4.0 & \@nameuse{doclicense@lang@lic@CC@by@4.0}\\
+% by-nc & 3.0 & \@nameuse{doclicense@lang@lic@CC@by-nc@3.0}\\
+% by-nc & 4.0 & \@nameuse{doclicense@lang@lic@CC@by-nc@4.0}\\
+% by-nc-nd & 3.0 & \@nameuse{doclicense@lang@lic@CC@by-nc-nd@3.0}\\
+% by-nc-nd & 4.0 & \@nameuse{doclicense@lang@lic@CC@by-nc-nd@4.0}\\
+% by-nc-sa & 3.0 & \@nameuse{doclicense@lang@lic@CC@by-nc-sa@3.0}\\
+% by-nc-sa & 4.0 & \@nameuse{doclicense@lang@lic@CC@by-nc-sa@4.0}\\
+% by-nd & 3.0 & \@nameuse{doclicense@lang@lic@CC@by-nd@3.0}\\
+% by-nd & 4.0 & \@nameuse{doclicense@lang@lic@CC@by-nd@4.0}\\
+% by-sa & 3.0 & \@nameuse{doclicense@lang@lic@CC@by-sa@3.0}\\
+% by-sa & 4.0 & \@nameuse{doclicense@lang@lic@CC@by-sa@4.0}\\
+% zero & 1.0 & \@nameuse{doclicense@lang@lic@CC@zero@1.0}\\
+% \end{longtblr}
% \makeatother
%
% \section{Retired licenses}
@@ -555,7 +571,7 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% List of retired licenses:
%
% \makeatletter
-% ^^A Reverse sorted.
+% ^^A Sorted alphabetically.
% \begin{eqlist}
% \item[CC-PDDC] Copyright-Only Dedication
% \end{eqlist}
@@ -581,7 +597,7 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% metadata along with the files. For this, the \href{REUSE
% Specification}{https://reuse.software/} can be used.
%
-% The REUSE Specification is independed of \LaTeXe{} and more \enquote{low
+% The REUSE Specification is independent of \LaTeXe{} and more \enquote{low
% level} than this package.
% \PackageName{} might integrate with the REUSE Specification at a later point.
% Refer to \url{https://github.com/ypid/latex-packages/issues/72} for
@@ -601,10 +617,11 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \printdateTeX{\filed
% codes which should map to the same translation then have a look at the file
% \path{doclicense-american.ldf}.
%
-% When you are done and have tested your translation (modify and run the
-% \path{run_tests} script) then please send me the translated file(s) either
-% via Email or preferably by opening a pull request on GitHub so that I can
-% include them in the next release.
+% When you are done and have tested your translation by modifying
+% \path{test-package-option-matrix} and then running
+% \enquote{./test-package-option-matrix mynewlanguage}), then please send me
+% the translated file(s) either via Email or preferably by opening a pull
+% request on GitHub so that I can include them in the next release.
%
% Note that the following development conventions are used for the package:
%
diff --git a/macros/latex/contrib/doclicense/doclicense.pdf b/macros/latex/contrib/doclicense/doclicense.pdf
index 7caa7b0c80..5c740d5645 100644
--- a/macros/latex/contrib/doclicense/doclicense.pdf
+++ b/macros/latex/contrib/doclicense/doclicense.pdf
Binary files differ
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-3.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-3.0-latex.tex
index ebb03eebaa..b73170468b 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-3.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-3.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-4.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-4.0-latex.tex
index 64333d7a1b..6525d13ab1 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-4.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-4.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-3.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-3.0-latex.tex
index 233e3929c0..42e531a6b8 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-3.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-3.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-4.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-4.0-latex.tex
index 411c676454..68b8b77d98 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-4.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-4.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-nd-3.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-nd-3.0-latex.tex
index 393474222e..92454d7f16 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-nd-3.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-nd-3.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-nd-4.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-nd-4.0-latex.tex
index dabe26072e..a73cae62fd 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-nd-4.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-nd-4.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-sa-3.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-sa-3.0-latex.tex
index 6727814ead..14d7c9346e 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-sa-3.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-sa-3.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-sa-4.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-sa-4.0-latex.tex
index 4ce876ba1e..635a96405b 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-sa-4.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nc-sa-4.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nd-3.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nd-3.0-latex.tex
index 799aadf163..33a0b6a824 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nd-3.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nd-3.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nd-4.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nd-4.0-latex.tex
index 9d7c06da04..dab3129824 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nd-4.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-nd-4.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-sa-3.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-sa-3.0-latex.tex
index cd3b34ac4e..2da5ec69f0 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-sa-3.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-sa-3.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-sa-4.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-sa-4.0-latex.tex
index 635d27738a..4a70d77728 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-sa-4.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-by-sa-4.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-zero-1.0-latex.tex b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-zero-1.0-latex.tex
index d45c3ee638..b12d832ee4 100644
--- a/macros/latex/contrib/doclicense/license-texts/doclicense-CC-zero-1.0-latex.tex
+++ b/macros/latex/contrib/doclicense/license-texts/doclicense-CC-zero-1.0-latex.tex
@@ -1,5 +1,5 @@
\begin{comment}
-% chktex-file 13 chktex-file 36 chktex-file 38
+% chktex-file 12 chktex-file 13 chktex-file 36 chktex-file 38
\end{comment}
\section{Creative Commons Legal Code}
diff --git a/macros/latex/contrib/doclicense/manifest.txt b/macros/latex/contrib/doclicense/manifest.txt
index b634e01997..3850d4eb55 100644
--- a/macros/latex/contrib/doclicense/manifest.txt
+++ b/macros/latex/contrib/doclicense/manifest.txt
@@ -6,9 +6,14 @@
% For more details about the licensing, refer to the README.md file.
% This work consists of the files:
+doclicense/Makefile
+doclicense/README.md
+doclicense/doclicense-UKenglish.ldf
+doclicense/doclicense-USenglish.ldf
doclicense/doclicense-acadian.ldf
doclicense/doclicense-american.ldf
doclicense/doclicense-australian.ldf
+doclicense/doclicense-austrian.ldf
doclicense/doclicense-brazilian.ldf
doclicense/doclicense-british.ldf
doclicense/doclicense-bulgarian.ldf
@@ -19,26 +24,28 @@ doclicense/doclicense-chinese-gbk.ldf
doclicense/doclicense-chinese-tw.ldf
doclicense/doclicense-chinese-utf8.ldf
doclicense/doclicense-croatian.ldf
-doclicense/doclicense.dtx
doclicense/doclicense-english.ldf
doclicense/doclicense-esperanto.ldf
doclicense/doclicense-french.ldf
doclicense/doclicense-galician.ldf
doclicense/doclicense-german.ldf
-doclicense/doclicense.ins
+doclicense/doclicense-greek.ldf
doclicense/doclicense-italian.ldf
doclicense/doclicense-japanese.ldf
doclicense/doclicense-marathi.ldf
+doclicense/doclicense-naustrian.ldf
doclicense/doclicense-newzealand.ldf
doclicense/doclicense-ngerman.ldf
+doclicense/doclicense-nswissgerman.ldf
doclicense/doclicense-polish.ldf
doclicense/doclicense-portuguese.ldf
doclicense/doclicense-russian.ldf
doclicense/doclicense-spanish.ldf
doclicense/doclicense-swedish.ldf
-doclicense/doclicense-UKenglish.ldf
+doclicense/doclicense-swissgerman.ldf
doclicense/doclicense-ukrainian.ldf
-doclicense/doclicense-USenglish.ldf
+doclicense/doclicense.dtx
+doclicense/doclicense.ins
doclicense/images/doclicense-CC-by-80x15.eps
doclicense/images/doclicense-CC-by-80x15.pdf
doclicense/images/doclicense-CC-by-88x31.eps
@@ -140,9 +147,7 @@ doclicense/license-texts/doclicense-CC-by-sa-4.0-plaintext.tex
doclicense/license-texts/doclicense-CC-zero-1.0-latex.html
doclicense/license-texts/doclicense-CC-zero-1.0-latex.tex
doclicense/license-texts/doclicense-CC-zero-1.0-plaintext.tex
-doclicense/Makefile
-doclicense/manifest.txt
-doclicense/README.md
+doclicense/test-package-option-matrix
% and the derived files:
doclicense.sty
doclicense.pdf
diff --git a/macros/latex/contrib/doclicense/test-package-option-matrix b/macros/latex/contrib/doclicense/test-package-option-matrix
new file mode 100755
index 0000000000..7b110b005c
--- /dev/null
+++ b/macros/latex/contrib/doclicense/test-package-option-matrix
@@ -0,0 +1,151 @@
+#!/usr/bin/env bash
+# Run test with different package options.
+
+# SPDX-FileCopyrightText: 2015-2023 Robin Schneider <ypid@riseup.net>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+function containsElement() {
+ local e match="$1"
+ shift
+ for e; do [[ "$e" == "$match" ]] && return 0; done
+ return 1
+}
+
+function main() {
+ test_only_those_options=( "$@" )
+
+ supported_licenses="$(grep '.*&.*&.*@nameuse{doclicense@lang' ./doclicense.dtx | sed 's/.*doclicense@lang@lic@\([^@]\+\)@\([^@]\+\)@\([^]]\+\)}.*/\1 \2 \3/' | sort -u)"
+
+ echo "$supported_licenses" | \
+ while read -r type modifier version; do
+ for imagemodifier in "" "-eu" "-80x15"; do
+ for lang in "ngerman" "english" "brazilian" "spanish" "french" "russian" "italian" "polish" "portuguese" "catalan" "galician" "croatian" "swedish" "esperanto" "ukrainian" "austrian" "naustrian" "swissgerman" "nswissgerman" "greek"; do
+ if [ "$lang" == "ngerman" ] && [ "$modifier" == "pd" ]; then
+ continue # Does not exist in Germany.
+ fi
+ if [ "$lang" == "ngerman" ] && [ "$modifier" == "pd" ]; then
+ continue # Does not exist in Germany.
+ fi
+ if [ "$imagemodifier" == "-eu" ] && [[ "$modifier" != *-nc-* ]]; then
+ continue # eu (Euro) does only exist for nc (non commercial).
+ fi
+ if [[ ${#test_only_those_options[@]} != 0 ]] && \
+ ! containsElement "$lang" "${test_only_those_options[@]}"; then
+
+ continue
+ fi
+
+ (
+
+ echo "
+ \documentclass[$lang]{article}
+ \usepackage{
+ iftex,
+ }
+
+ \ifPDFTeX%
+ \usepackage[utf8]{inputenc}
+ \usepackage[T1]{fontenc}
+ \usepackage{babel}
+ \fi
+ \ifLuaTeX%
+ \usepackage{
+ fontspec,
+ polyglossia,
+ }
+ \fi
+
+ \usepackage{
+ hyperref,
+ hyperxmp,
+ }
+ \ifLuaTeX%
+ \setdefaultlanguage{$lang}
+ \fi
+ \usepackage[
+ type={$type},
+ modifier={$modifier},
+ version={$version},"
+ if [ "$imagemodifier" != "" ]; then
+ echo " imagemodifier={$imagemodifier},% chktex 29"
+ fi
+ echo " ]{doclicense}
+ \begin{document}
+ doclicenseType
+ \doclicenseType%
+
+ doclicenseLongType
+ \doclicenseLongType%
+
+ doclicenseModifier
+ \doclicenseModifier%
+
+ doclicenseVersion
+ \doclicenseVersion%
+
+ doclicenseURL
+ \doclicenseURL%
+
+ doclicenseName
+ \doclicenseName%
+
+ doclicenseLongName
+ \doclicenseLongName%
+
+ doclicenseNameRef
+ \doclicenseNameRef%
+
+ doclicenseLongNameRef
+ \doclicenseLongNameRef%
+
+ doclicenseText
+ \doclicenseText%
+
+ doclicenseLongText
+ \doclicenseLongText%
+
+ doclicenseIcon
+ \doclicenseIcon%
+
+ doclicenseTypeIcon
+ \doclicenseTypeIcon%
+
+ doclicenseImage
+ \doclicenseImage%
+
+ doclicenseImageFileName
+ \doclicenseImageFileName%
+
+ doclicenseThis
+ \doclicenseThis%
+
+ doclicensePlainFullText
+ \doclicensePlainFullText%
+
+ doclicenseFullText
+ \doclicenseFullText%
+ \end{document}"
+
+ ) > testing.tex
+
+ echo "*** Testing variant: $lang $type $modifier $version $imagemodifier"
+
+ # latexmk -c
+ rm -f testing.aux testing.log testing.out testing.pdf
+
+ texfot pdflatex -no-shell-escape -interaction=nonstopmode -halt-on-error testing.tex | egrep --invert-match 'Overfull|Underfull'
+ done
+ done
+ done
+}
+
+if [[ "${BASH_SOURCE[0]}" == "${0}" ]]
+then
+ PS4='+ $(date --rfc-3339=seconds), ${BASH_SOURCE-}:${LINENO-}: '
+ export PS4
+ trap 'echo Encountered an unexpected error. Exiting with exit code $? in ${BASH_SOURCE-}:${LINENO-}. >&2' ERR
+ set -o nounset -o pipefail -o errexit -o errtrace
+
+ main "$@"
+fi