texlive[59899] Master/texmf-dist: doclicense (11jul21)

commits+karl at tug.org commits+karl at tug.org
Sun Jul 11 22:25:20 CEST 2021


Revision: 59899
          http://tug.org/svn/texlive?view=revision&revision=59899
Author:   karl
Date:     2021-07-11 22:25:20 +0200 (Sun, 11 Jul 2021)
Log Message:
-----------
doclicense (11jul21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/doclicense/README.md
    trunk/Master/texmf-dist/doc/latex/doclicense/doclicense.pdf
    trunk/Master/texmf-dist/doc/latex/doclicense/manifest.txt
    trunk/Master/texmf-dist/source/latex/doclicense/Makefile
    trunk/Master/texmf-dist/source/latex/doclicense/doclicense.dtx
    trunk/Master/texmf-dist/tex/latex/doclicense/doclicense-spanish.ldf
    trunk/Master/texmf-dist/tex/latex/doclicense/doclicense.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/latex/doclicense/doclicense-croatian.ldf

Modified: trunk/Master/texmf-dist/doc/latex/doclicense/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/doclicense/README.md	2021-07-11 20:24:53 UTC (rev 59898)
+++ trunk/Master/texmf-dist/doc/latex/doclicense/README.md	2021-07-11 20:25:20 UTC (rev 59899)
@@ -63,6 +63,8 @@
 
 SPDX-License-Identifier: LPPL-1.3c
 
+Except the files `images/*.pdf`, `images/*.eps`, `license-texts/*.tex` and `license-texts/*.html` which are under CC0-1.0.
+
 This work may be distributed and/or modified under the
 conditions of the LaTeX Project Public License, either version 1.3
 of this license or (at your option) any later version.

Modified: trunk/Master/texmf-dist/doc/latex/doclicense/doclicense.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/doclicense/manifest.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/doclicense/manifest.txt	2021-07-11 20:24:53 UTC (rev 59898)
+++ trunk/Master/texmf-dist/doc/latex/doclicense/manifest.txt	2021-07-11 20:25:20 UTC (rev 59899)
@@ -6,10 +6,6 @@
 % 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
@@ -21,10 +17,13 @@
 doclicense/doclicense-catalan.ldf
 doclicense/doclicense-chinese-gbk.ldf
 doclicense/doclicense-chinese-utf8.ldf
+doclicense/doclicense-croatian.ldf
+doclicense/doclicense.dtx
 doclicense/doclicense-english.ldf
 doclicense/doclicense-french.ldf
 doclicense/doclicense-galician.ldf
 doclicense/doclicense-german.ldf
+doclicense/doclicense.ins
 doclicense/doclicense-italian.ldf
 doclicense/doclicense-japanese.ldf
 doclicense/doclicense-marathi.ldf
@@ -34,8 +33,8 @@
 doclicense/doclicense-portuguese.ldf
 doclicense/doclicense-russian.ldf
 doclicense/doclicense-spanish.ldf
-doclicense/doclicense.dtx
-doclicense/doclicense.ins
+doclicense/doclicense-UKenglish.ldf
+doclicense/doclicense-USenglish.ldf
 doclicense/images/doclicense-CC-by-80x15.eps
 doclicense/images/doclicense-CC-by-80x15.pdf
 doclicense/images/doclicense-CC-by-88x31.eps
@@ -137,7 +136,9 @@
 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
 % and the derived files:
 doclicense.sty
 doclicense.pdf

Modified: trunk/Master/texmf-dist/source/latex/doclicense/Makefile
===================================================================
--- trunk/Master/texmf-dist/source/latex/doclicense/Makefile	2021-07-11 20:24:53 UTC (rev 59898)
+++ trunk/Master/texmf-dist/source/latex/doclicense/Makefile	2021-07-11 20:25:20 UTC (rev 59899)
@@ -6,25 +6,35 @@
 # For more details about the licensing, refer to the README.md file.
 
 TEXMFHOME ?= $(shell kpsewhich -var-value TEXMFHOME)
+SHELL := /bin/bash -o nounset -o pipefail -o errexit
 
-all: install build manifest.txt
+.PHONY: all
+all: install build
 
-build: check-quick doclicense.sty doclicense.pdf
+.PHONY: build
+build: manifest.txt doclicense.sty doclicense.pdf
 
+.PHONY: ci
+ci: lint build
+
+.PHONY: install
 install:
 	mkdir --parents "$(TEXMFHOME)/tex/latex/"
 	test -L "$(TEXMFHOME)/tex/latex/doclicense" || ln --no-target-directory --symbolic "$$PWD" "$(TEXMFHOME)/tex/latex/doclicense"
 
-check-quick: doclicense.dtx
-	chktex "$<"
-
+# Run before release.
+.PHONY: check
 check: run_tests doclicense.sty lint
 	./"$<"
 
-lint:
+.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
 
+.PHONY: clean
 clean:
 	rm -rf *.sty *.pdf *.aux *.out *.glo *.gls *.hd *.idx *.ilg *.ind *.log *.toc
 

Modified: trunk/Master/texmf-dist/source/latex/doclicense/doclicense.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/doclicense/doclicense.dtx	2021-07-11 20:24:53 UTC (rev 59898)
+++ trunk/Master/texmf-dist/source/latex/doclicense/doclicense.dtx	2021-07-11 20:25:20 UTC (rev 59899)
@@ -24,7 +24,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}[1998/12/01]
 %<package>\ProvidesPackage{doclicense}
 %<*package>
-    [2021/03/13 v2.3.0 Support for putting documents under a license]
+    [2021/07/11 v3.0.0 Support for putting documents under a license]
 %</package>
 %
 %<*driver>
@@ -44,7 +44,7 @@
   obeyspaces,
   spaces,
 ]{url}
-\usepackage{
+\usepackage{%
   babel,
   csquotes,
   xcolor,
@@ -63,7 +63,7 @@
   hyphenation={RaggedRight},
 ]{doclicense}
 \GetFileInfo{doclicense.dtx}
-\hypersetup{
+\hypersetup{%
   pdftitle={A manual for \PackageName},
   pdfauthor={\PackageAuthor{} <\PackageAuthorEmail>},
   pdfsubject={\fileinfo},
@@ -136,10 +136,9 @@
 % \changes{2.2.0}{2020/09/18}{Add Japanese and Bulgarian translation. Add hint how to use Chinese to docs. Load hyperxmp by default when it is installed. Before, doclicense just suggested to load it and made use of the package when the user did.}
 % \changes{2.2.1}{2020/09/25}{Fix compatibility issue with newer versions of hyperxmp (bug confirmed with Tex Live 2020) resulting in an compile error by loading hyperxmp and hyperref in the order the packages expect it.}
 % \changes{2.3.0}{2021/03/13}{Add option to disable the use of hyperxmp and add compatibility for pdfx. Use \url{https://reuse.software/} for the doclicense source code itself.}
+% \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.}
 %
 %
-
-%
 % ^^A nag warned about the center environment and it really messes up spacing.
 %
 % \DoNotIndex{\RequirePackage, \DeclareOption, \ProcessOptions}
@@ -174,20 +173,19 @@
 % package is designed to handle all kinds of licenses. See \nameref{sec:contributing}.
 %
 % \section{Usage}
-% Just load the package by placing something like this:
+% The package can be used like in this mini working example:
 %
 % \begin{quote}
-%   |\usepackage{| \\
-%   |  babel,| \\
-%   |}| \\
+%   |\documentclass[english]{article}| \\
 %   |\usepackage[| \\
 %   |  type={CC},| \\
 %   |  modifier={by-sa},| \\
 %   |  version={4.0},| \\
-%   |]{doclicense}|
+%   |]{doclicense}| \\
+%   |\begin{document}| \\
+%   |\doclicenseThis%| \\
+%   |\end{document}|
 % \end{quote}
-% in the preamble of your \LaTeXe{} source file and change the package options
-% to the license you want to put the document under.
 %
 % This will explicitly set the license to \doclicenseNameRef.
 %
@@ -200,14 +198,49 @@
 % \enquote{Document License} tab under \enquote{Properties}. You may check
 % this manual for how your PDF reader handles such metadata.
 %
-% In case you are using other package to manipulate the metadata which is
+% In case you are using other packages to manipulate the metadata which is
 % incompatible to the use of hyperxmp, e.\,g. \PrintPackage{pdfx} you can use
-% the \PrintOptionF{hyperxmp=false} to disable this automatism. If
+% the \PrintOptionF{hyperxmp=false} option to disable this automatism. If
 % \PrintPackage{pdfx} is loaded before \PrintPackage{doclicense} or if
 % \PrintPackage{hyperxmp} is not installed this automatism is disabled.
-% In these cases a warning is emitted to inform you about the reasons.
-% The warning will not show up if \PrintOptionF{hyperxmp} is set to false.
+% In these cases a warning is emitted to inform you about the reason.
+% The warning will not show up if \PrintOptionF{hyperxmp} is set to
+% \PrintOptionF{false}.
 %
+% Also note that \PrintPackage{hyperxmp} is not loaded when
+% \PrintPackage{silence} was loaded. This is because when both of those
+% packages are loaded, compilation runs into an endless loop.
+%
+% \section{Dependency packages and load order}
+%
+% \PackageName{} will ensure that the following packages are loaded by default.
+% You don't need to do anything extra as long as you are fine with the default options
+% of those packages:
+%
+% \begin{eqlist}
+%   \item[\PrintPackage{ccicons}] To typeset icon versions of the Creative Commons licenses.
+%   \item[\PrintPackage{graphicx}] To include images/buttons of the Creative Commons licenses.
+%   \item[\PrintPackage{hyperxmp}] To write license information into the metadata section of the generated PDF.
+%   \item[\PrintPackage{hyperref}] To typeset hyperlinks/URLs that are clickable.
+%   \item[\PrintPackage{csquotes}] To offload localization of quotes depending on document language.
+% \end{eqlist}
+%
+% Load order is important for some of those packages.
+% Here are the constraints that you will need to consider when you decide to
+% load the packages yourself or other packages that you use load them:
+%
+% \begin{itemize}
+%   \item \PrintPackage{hyperxmp} should be loaded before the setup of \PrintPackage{hyperref} is called.
+%   \item \PrintPackage{csquotes} should be loaded before
+%     \PrintPackage{biblatex} because otherwise \PrintPackage{biblatex} will
+%     define the \cmd{\enquote} in a way that is not compatible with
+%     \PackageName{}.
+%   \item The position of loading \PackageName{} is decoupled from the load
+%     order because interaction and loading of dependency packages is done via a
+%     hook at the end of the preamble.
+% \end{itemize}
+%
+%
 % \section{Package options}
 %
 % Sets the license type. \DescribePara{type}
@@ -214,13 +247,16 @@
 % Like in the previous example, the type can be
 % \enquote{CC} to cover all the \doclicenseLongType licenses.
 % Please make sure that the type is all uppercase. See the \nameref{sec:supported-licenses} section for a complete list.
+% This is a required option since v2.0.0.
 %
 % Allows to \DescribePara{modifier}
 % select different subclasses of a license. In the
 % example it is \enquote{by-sa}.
 % Please make sure that the type is all lowercase. See the \nameref{sec:supported-licenses} section for a complete list.
+% This is a required option since v2.0.0.
 %
 % As \DescribePara{version} there can be more than one version of a license, the version also needs to be set.
+% This is a required option since v2.0.0.
 %
 % This package can output some texts like the long license name.
 % \DescribePara{lang}
@@ -236,6 +272,7 @@
 %   \item Bulgarian
 %   \item Catalan
 %   \item Chinese: Note that you might need to pass \verb+lang={chinese-utf8}+ or \verb+chinese-gbk+.
+%   \item Croatian
 %   \item English
 %   \item French
 %   \item Galician
@@ -513,6 +550,32 @@
 % \end{eqlist}
 % \makeatother
 %
+% \section{What license to choose for the document?}
+%
+% The list of available licenses is long (see
+% \href{https://spdx.org/licenses/}{SPDX License List}). Only a (small) subset
+% of them are a good choice for documentation. The \doclicenseLongType family
+% seem to be a common choice as contributions to this package have shown. This
+% package was translated to 15+ languages but no other license families have
+% been added yet. With that, a link to
+% \href{https://creativecommons.org/choose/}{Creative Commons: Choose a
+% License} is probably justified if you have not done that already.
+%
+% \section{REUSE Specification}
+%
+% That clarifies the question under which license you want to put the document
+% under, but in practice it might not be as easy as that.
+% Under what license are the artifacts (images/figures/tables/source code
+% listings) you are including? It would probably be useful to track such
+% 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
+% 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
+% discussion how such an integration could look like.
+%
 % \section{Contributing}
 % \label{sec:contributing}
 % This package is being developed on GitHub: \url{\PackageURL}. When you want
@@ -532,6 +595,15 @@
 % 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:
+%
+% \begin{itemize}
+%   \item \href{https://reuse.software/spec/}{REUSE Specification 3.0}
+%   \item \href{https://www.conventionalcommits.org/en/v1.0.0/}{Conventional Commits 1.0.0}
+%   \item \href{https://semver.org/spec/v2.0.0.html}{Semantic Versioning 2.0.0}
+%   \item CI tests using GitHub Actions
+% \end{itemize}
+%
 % \section{Plaintext license text}
 % \label{sec:plain_license_text}
 %
@@ -596,7 +668,7 @@
     \renewcommand{\labelenumiv}{(\roman{enumiv})}%
 }{\end{enumerate}}
 
-\ifthenelse{
+\ifthenelse{%
   \equal{\doclicense at hyphenation}{}
 }{}{%
   \RequirePackage{ragged2e}
@@ -607,35 +679,35 @@
   }
 }
 \AtEndPreamble{%
-  \@ifpackageloaded{csquotes}{
+  \@ifpackageloaded{ccicons}{}{\RequirePackage{ccicons}}
+    % For \doclicenseIcon
+  \@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}}
+    % For \doclicenseImage
+  \@ifpackageloaded{hyperref}{}{\RequirePackage{hyperref}}
+  \@ifpackageloaded{csquotes}{%
     % csquotes has already been loaded so we are fine.
-  }{
-    \ifcsdef{enquote}{
+  }{%
+    \ifcsdef{enquote}{%
       % \enquote is defined but not by csquotes.
-      \@ifpackageloaded{biblatex}{
+      \@ifpackageloaded{biblatex}{%
         \PackageError{doclicense}{The enquote macro is defined by biblatex}
           {This package assumes that the enquote macro is defined by the
             csquotes package. Please load csquotes before you load biblatex so
             that biblatex does not define enquote instead.}%
-      }{
-        \PackageError{doclicense}{The enquote macro is defined by unknown package}
+      }{%
+        \PackageError{doclicense}{The enquote macro is defined by an unknown package}
           {This package assumes that the enquote macro is defined by the
             csquotes package. Please check why enquote is defined without
             csquotes being loaded. Maybe try loading csquotes early so that it
             can define the enquote macro instead.}%
       }
-    }{
+    }{%
       \RequirePackage{csquotes}
     }
   }
-  \@ifpackageloaded{ccicons}{}{\RequirePackage{ccicons}}
-    % For \doclicenseIcon
-  \@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}}
-    % For \doclicenseImage
-  \@ifpackageloaded{hyperref}{}{\RequirePackage{hyperref}}
-  \@ifpackageloaded{hyperxmp}{
+  \@ifpackageloaded{hyperxmp}{%
     % The following options are only defined when the hyperxmp package was loaded.
-    \hypersetup{
+    \hypersetup{%
       pdfcopyright  = {\doclicenseLongText},
       pdflicenseurl = {\doclicenseURL},
     }
@@ -644,18 +716,34 @@
 \ifdoclicense at hyperxmp
   \@ifpackageloaded{pdfx}{%
     \PackageWarning{doclicense}{%
-    The pdfx package was detected. Therefore the mechanism to add license
-    metadata won't work. Ensure to setup \string\Copyright\space and
-    corresponding settings to your xmpdata-file.
-  }
-  }{
-    \IfFileExists{hyperxmp.sty}{
-      \@ifpackageloaded{hyperxmp}{}{\RequirePackage{hyperxmp}}
-    }{
+      The pdfx package was detected. Therefore the mechanism to add license
+      metadata won't work. Ensure to setup \string\Copyright\space%
+      and corresponding settings to your xmpdata-file.
+    }
+  }{%
+    \@ifpackageloaded{silence}{%
       \PackageWarning{doclicense}{%
-        The hyperxmp package is missing so no license metadata can be embedded
-        into the PDF. Consider installing hyperxmp.% chktex 13
+        The silence package was detected. hyperxmp and silence are not% chktex 12
+        compatible with each other so doclicense will not load hyperxmp as long
+        as you load silence. Therefore the mechanism to add license metadata
+        won't work.  Consider to compile the final version of your document
+        without silence so that you can benefit from hyperxmp while still being
+        able to filter log messages for your draft versions.
       }
+      \@ifpackageloaded{hyperxmp}{%
+        \PackageError{doclicense}{silence and hyperxmp were manually loaded together}{%
+          Error out because those packages together result in an endless loop.
+        }%
+      }{}
+    }{%
+      \IfFileExists{hyperxmp.sty}{%
+        \@ifpackageloaded{hyperxmp}{}{\RequirePackage{hyperxmp}}
+      }{%
+        \PackageWarning{doclicense}{%
+          The hyperxmp package is missing so no license metadata can be embedded
+          into the PDF. Consider installing hyperxmp.% chktex 13
+        }
+      }
     }
   }
 \fi
@@ -665,35 +753,30 @@
 % \subsection{Deprecation handling}
 %    \begin{macrocode}
 % Deprecation handling (((
-\ifthenelse{
+\ifthenelse{%
   \equal{\doclicense at type}{}
-}{
-  \PackageWarning{doclicense}{%
-    "type" package option missing. % chktex 18
+}{%
+  \PackageError{doclicense}{"type" package option missing}{% chktex 18
     This option is now required and the fallback to "CC" is deprecated. % chktex 18
     In an upcoming major version of doclicense, this will be a package error.
     Please explicitly pick a license of your choosing.
   }
-  \renewcommand{\doclicense at type}{CC}
 }{}
 
-\ifthenelse{
+\ifthenelse{%
   \equal{\doclicense at modifier}{}
-}{
-  \PackageWarning{doclicense}{%
-    "modifier" package option missing. % chktex 18
+}{%
+  \PackageError{doclicense}{"modifier" package option missing}{% chktex 18
     This option is now required and the fallback to "by-sa" is deprecated. % chktex 18
     In an upcoming major version of doclicense, this will be a package error.
     Please explicitly pick a license of your choosing.
   }
-  \renewcommand{\doclicense at modifier}{by-sa}
 }{}
 
-\ifthenelse{
+\ifthenelse{%
   \equal{\doclicense at version}{}
-}{
-  \PackageWarning{doclicense}{%
-    "version" package option missing. % chktex 18
+}{%
+  \PackageError{doclicense}{"version" package option missing}{% chktex 18
     This option is now required and the fallback is deprecated. % chktex 18
     In an upcoming major version of doclicense, this will be a package error.
     Please explicitly pick a license of your choosing.
@@ -828,9 +911,16 @@
 \IfFileExists{doclicense-\doclicense at lang.ldf}{%
   \input{doclicense-\doclicense at lang.ldf}% chktex 27
 }{%
-  \PackageWarning{doclicense}{%
-    No language definition for \doclicense at lang found.
-    Please add one and submit a patch. Using English as fallback.
+  \ifthenelse{\equal{\doclicense at lang}{nil}}{%
+    \PackageWarning{doclicense}{%
+      The language of your document is not defined. Please refer to the babel or polyglossia
+      package to see how to define it. Using English as fallback.
+    }
+  }{%
+    \PackageWarning{doclicense}{%
+      No language definition for \doclicense at lang\space
+      found.  Consider adding one and submit it to doclicense. Using English as fallback.
+    }
   }
   \renewcommand{\doclicense at lang}{english}
   \input{doclicense-\doclicense at lang.ldf}% chktex 27
@@ -898,7 +988,7 @@
         \renewcommand{\doclicense at imagemodifier}{-88x31}% chktex 29
       }{}
     }{}
-    \ifthenelse{\equal{\doclicense at modifier}{by-nc-sa}}{
+    \ifthenelse{\equal{\doclicense at modifier}{by-nc-sa}}{%
       \renewcommand{\doclicense at icon}{\ccbyncsa}
       \IfBeginWith{\doclicense at imagemodifier}{-eu}{%
         \renewcommand{\doclicense at icon}{\ccbyncsaeu}
@@ -908,7 +998,7 @@
         \renewcommand{\doclicense at imagemodifier}{-88x31}% chktex 29
       }{}
     }{}
-    \ifthenelse{\equal{\doclicense at modifier}{by-nc-nd}}{
+    \ifthenelse{\equal{\doclicense at modifier}{by-nc-nd}}{%
       \renewcommand{\doclicense at icon}{\ccbyncnd}
       \IfBeginWith{\doclicense at imagemodifier}{-jp}{%
         \renewcommand{\doclicense at icon}{\ccbyncndjp}
@@ -924,13 +1014,13 @@
         \doclicense at modifier/%
         \doclicense at versionUsed\doclicense at UrlLangPart}
     }{}
-    \ifthenelse{\equal{\doclicense at modifier}{pd}}{
-      \PackageError{doclicense}{CC PD license removed as of version 2.0.0}{
+    \ifthenelse{\equal{\doclicense at modifier}{pd}}{%
+      \PackageError{doclicense}{CC PD license removed as of version 2.0.0}{%
         Creative Commons PD has been replaced by CC-zero.
         Please update your license choice.
       }%
     }{}
-    \IfSubStr{\doclicense at modifier}{nc}{}{
+    \IfSubStr{\doclicense at modifier}{nc}{}{%
       % eu (Euro) does only exist for nc (non commercial) so if not nc then reset -eu.
       \IfBeginWith{\doclicense at imagemodifier}{-eu}{%
         \renewcommand{\doclicense at imagemodifier}{-88x31}% chktex 29

Added: trunk/Master/texmf-dist/tex/latex/doclicense/doclicense-croatian.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/doclicense/doclicense-croatian.ldf	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/doclicense/doclicense-croatian.ldf	2021-07-11 20:25:20 UTC (rev 59899)
@@ -0,0 +1,30 @@
+% SPDX-FileCopyrightText: 2021 Paula <paulavidas at gmail.com>
+%
+% 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-croatian.ldf}
+
+\@namedef{doclicense at lang@thisDoc}{Ovo djelo je dano na korištenje pod licencom}%
+\@namedef{doclicense at lang@word at license}{}%
+
+\@namedef{doclicense at lang@lic at CC@code}{hr}%
+% Using: https://en.wikipedia.org/wiki/ISO_639-1
+
+\@namedef{doclicense at lang@lic at CC@zero at 1.0}{CC0 1.0 Univerzalno}%
+
+\@namedef{doclicense at lang@lic at CC@by at 3.0}{Imenovanje 3.0 Hrvatska}%
+\@namedef{doclicense at lang@lic at CC@by-sa at 3.0}{Imenovanje-Dijeli pod istim uvjetima 3.0 Hrvatska}%
+\@namedef{doclicense at lang@lic at CC@by-nd at 3.0}{Imenovanje-Bez prerada 3.0 Hrvatska}%
+\@namedef{doclicense at lang@lic at CC@by-nc at 3.0}{Imenovanje-Nekomercijalno 3.0 Hrvatska}%
+\@namedef{doclicense at lang@lic at CC@by-nc-sa at 3.0}{Imenovanje-Nekomercijalno-Dijeli pod istim uvjetima 3.0 Hrvatska}%
+\@namedef{doclicense at lang@lic at CC@by-nc-nd at 3.0}{Imenovanje-Nekomercijalno-Bez prerada 3.0 Hrvatska}%
+
+\@namedef{doclicense at lang@lic at CC@by at 4.0}{Imenovanje 4.0 međunarodna}%
+\@namedef{doclicense at lang@lic at CC@by-sa at 4.0}{Imenovanje-Dijeli pod istim uvjetima 4.0 međunarodna}%
+\@namedef{doclicense at lang@lic at CC@by-nd at 4.0}{Imenovanje-Bez prerada 4.0 međunarodna}%
+\@namedef{doclicense at lang@lic at CC@by-nc at 4.0}{Imenovanje-Nekomercijalno 4.0 međunarodna}%
+\@namedef{doclicense at lang@lic at CC@by-nc-sa at 4.0}{Imenovanje-Nekomercijalno-Dijeli pod istim uvjetima 4.0 međunarodna}%
+\@namedef{doclicense at lang@lic at CC@by-nc-nd at 4.0}{Imenovanje-Nekomercijalno-Bez prerada 4.0 međunarodna}%


Property changes on: trunk/Master/texmf-dist/tex/latex/doclicense/doclicense-croatian.ldf
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/doclicense/doclicense-spanish.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/doclicense/doclicense-spanish.ldf	2021-07-11 20:24:53 UTC (rev 59898)
+++ trunk/Master/texmf-dist/tex/latex/doclicense/doclicense-spanish.ldf	2021-07-11 20:25:20 UTC (rev 59899)
@@ -15,16 +15,16 @@
 
 \@namedef{doclicense at lang@lic at CC@zero at 1.0}{CC0 1.0 Universal}%
 
-\@namedef{doclicense at lang@lic at CC@by at 3.0}{Reconocimiento 3.0 España}%
-\@namedef{doclicense at lang@lic at CC@by-sa at 3.0}{Reconocimiento-CompartirIgual 3.0 España}%
-\@namedef{doclicense at lang@lic at CC@by-nd at 3.0}{Reconocimiento-SinObraDerivada 3.0 España}%
-\@namedef{doclicense at lang@lic at CC@by-nc at 3.0}{Reconocimiento-NoCommercial 3.0 España}%
-\@namedef{doclicense at lang@lic at CC@by-nc-sa at 3.0}{Reconocimiento-NoCommercial-CompartirIgual 3.0 España}%
-\@namedef{doclicense at lang@lic at CC@by-nc-nd at 3.0}{Reconocimiento-NoCommercial-NoDerivs 3.0 España}%
+\@namedef{doclicense at lang@lic at CC@by at 3.0}{Atribución 3.0 No portada}%
+\@namedef{doclicense at lang@lic at CC@by-sa at 3.0}{Atribución-CompartirIgual 3.0 No portada}%
+\@namedef{doclicense at lang@lic at CC@by-nd at 3.0}{Atribución-SinDerivadas 3.0 No portada}%
+\@namedef{doclicense at lang@lic at CC@by-nc at 3.0}{Atribución-NoComercial 3.0 No portada}%
+\@namedef{doclicense at lang@lic at CC@by-nc-sa at 3.0}{Atribución-NoComercial-CompartirIgual 3.0 No portada}%
+\@namedef{doclicense at lang@lic at CC@by-nc-nd at 3.0}{Atribución-NoComercial-SinDerivadas 3.0 No portada}%
 
-\@namedef{doclicense at lang@lic at CC@by at 4.0}{Reconocimiento 4.0 Internacional}%
-\@namedef{doclicense at lang@lic at CC@by-sa at 4.0}{Reconocimiento-CompartirIgual 4.0 Internacional}%
-\@namedef{doclicense at lang@lic at CC@by-nd at 4.0}{Reconocimiento-SinObraDerivada 4.0 Internacional}%
-\@namedef{doclicense at lang@lic at CC@by-nc at 4.0}{Reconocimiento-NoCommercial 4.0 Internacional}%
-\@namedef{doclicense at lang@lic at CC@by-nc-sa at 4.0}{Reconocimiento-NoCommercial-CompartirIgual 4.0 Internacional}%
-\@namedef{doclicense at lang@lic at CC@by-nc-nd at 4.0}{Reconocimiento-NoCommercial-SinObraDerivada 4.0 Internacional}%
+\@namedef{doclicense at lang@lic at CC@by at 4.0}{Atribución 4.0 Internacional}%
+\@namedef{doclicense at lang@lic at CC@by-sa at 4.0}{Atribución-CompartirIgual 4.0 Internacional}%
+\@namedef{doclicense at lang@lic at CC@by-nd at 4.0}{Atribución-SinDerivadas 4.0 Internacional}%
+\@namedef{doclicense at lang@lic at CC@by-nc at 4.0}{Atribución-NoComercial 4.0 Internacional}%
+\@namedef{doclicense at lang@lic at CC@by-nc-sa at 4.0}{Atribución-NoComercial-CompartirIgual 4.0 Internacional}%
+\@namedef{doclicense at lang@lic at CC@by-nc-nd at 4.0}{Atribución-NoComercial-SinDerivadas 4.0 Internacional}%

Modified: trunk/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/doclicense/doclicense.sty	2021-07-11 20:24:53 UTC (rev 59898)
+++ trunk/Master/texmf-dist/tex/latex/doclicense/doclicense.sty	2021-07-11 20:25:20 UTC (rev 59899)
@@ -8,9 +8,8 @@
 
 \NeedsTeXFormat{LaTeX2e}[1998/12/01]
 \ProvidesPackage{doclicense}
-    [2021/03/13 v2.3.0 Support for putting documents under a license]
+    [2021/07/11 v3.0.0 Support for putting documents under a license]
 
-
 \RequirePackage{kvoptions}
 \DeclareStringOption{type}
 \DeclareStringOption{modifier}
@@ -39,7 +38,7 @@
     \renewcommand{\labelenumiv}{(\roman{enumiv})}%
 }{\end{enumerate}}
 
-\ifthenelse{
+\ifthenelse{%
   \equal{\doclicense at hyphenation}{}
 }{}{%
   \RequirePackage{ragged2e}
@@ -50,35 +49,35 @@
   }
 }
 \AtEndPreamble{%
-  \@ifpackageloaded{csquotes}{
+  \@ifpackageloaded{ccicons}{}{\RequirePackage{ccicons}}
+    % For \doclicenseIcon
+  \@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}}
+    % For \doclicenseImage
+  \@ifpackageloaded{hyperref}{}{\RequirePackage{hyperref}}
+  \@ifpackageloaded{csquotes}{%
     % csquotes has already been loaded so we are fine.
-  }{
-    \ifcsdef{enquote}{
+  }{%
+    \ifcsdef{enquote}{%
       % \enquote is defined but not by csquotes.
-      \@ifpackageloaded{biblatex}{
+      \@ifpackageloaded{biblatex}{%
         \PackageError{doclicense}{The enquote macro is defined by biblatex}
           {This package assumes that the enquote macro is defined by the
             csquotes package. Please load csquotes before you load biblatex so
             that biblatex does not define enquote instead.}%
-      }{
-        \PackageError{doclicense}{The enquote macro is defined by unknown package}
+      }{%
+        \PackageError{doclicense}{The enquote macro is defined by an unknown package}
           {This package assumes that the enquote macro is defined by the
             csquotes package. Please check why enquote is defined without
             csquotes being loaded. Maybe try loading csquotes early so that it
             can define the enquote macro instead.}%
       }
-    }{
+    }{%
       \RequirePackage{csquotes}
     }
   }
-  \@ifpackageloaded{ccicons}{}{\RequirePackage{ccicons}}
-    % For \doclicenseIcon
-  \@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}}
-    % For \doclicenseImage
-  \@ifpackageloaded{hyperref}{}{\RequirePackage{hyperref}}
-  \@ifpackageloaded{hyperxmp}{
+  \@ifpackageloaded{hyperxmp}{%
     % The following options are only defined when the hyperxmp package was loaded.
-    \hypersetup{
+    \hypersetup{%
       pdfcopyright  = {\doclicenseLongText},
       pdflicenseurl = {\doclicenseURL},
     }
@@ -87,51 +86,62 @@
 \ifdoclicense at hyperxmp
   \@ifpackageloaded{pdfx}{%
     \PackageWarning{doclicense}{%
-    The pdfx package was detected. Therefore the mechanism to add license
-    metadata won't work. Ensure to setup \string\Copyright\space and
-    corresponding settings to your xmpdata-file.
-  }
-  }{
-    \IfFileExists{hyperxmp.sty}{
-      \@ifpackageloaded{hyperxmp}{}{\RequirePackage{hyperxmp}}
-    }{
+      The pdfx package was detected. Therefore the mechanism to add license
+      metadata won't work. Ensure to setup \string\Copyright\space%
+      and corresponding settings to your xmpdata-file.
+    }
+  }{%
+    \@ifpackageloaded{silence}{%
       \PackageWarning{doclicense}{%
-        The hyperxmp package is missing so no license metadata can be embedded
-        into the PDF. Consider installing hyperxmp.% chktex 13
+        The silence package was detected. hyperxmp and silence are not% chktex 12
+        compatible with each other so doclicense will not load hyperxmp as long
+        as you load silence. Therefore the mechanism to add license metadata
+        won't work.  Consider to compile the final version of your document
+        without silence so that you can benefit from hyperxmp while still being
+        able to filter log messages for your draft versions.
       }
+      \@ifpackageloaded{hyperxmp}{%
+        \PackageError{doclicense}{silence and hyperxmp were manually loaded together}{%
+          Error out because those packages together result in an endless loop.
+        }%
+      }{}
+    }{%
+      \IfFileExists{hyperxmp.sty}{%
+        \@ifpackageloaded{hyperxmp}{}{\RequirePackage{hyperxmp}}
+      }{%
+        \PackageWarning{doclicense}{%
+          The hyperxmp package is missing so no license metadata can be embedded
+          into the PDF. Consider installing hyperxmp.% chktex 13
+        }
+      }
     }
   }
 \fi
 
-\ifthenelse{
+\ifthenelse{%
   \equal{\doclicense at type}{}
-}{
-  \PackageWarning{doclicense}{%
-    "type" package option missing. % chktex 18
+}{%
+  \PackageError{doclicense}{"type" package option missing}{% chktex 18
     This option is now required and the fallback to "CC" is deprecated. % chktex 18
     In an upcoming major version of doclicense, this will be a package error.
     Please explicitly pick a license of your choosing.
   }
-  \renewcommand{\doclicense at type}{CC}
 }{}
 
-\ifthenelse{
+\ifthenelse{%
   \equal{\doclicense at modifier}{}
-}{
-  \PackageWarning{doclicense}{%
-    "modifier" package option missing. % chktex 18
+}{%
+  \PackageError{doclicense}{"modifier" package option missing}{% chktex 18
     This option is now required and the fallback to "by-sa" is deprecated. % chktex 18
     In an upcoming major version of doclicense, this will be a package error.
     Please explicitly pick a license of your choosing.
   }
-  \renewcommand{\doclicense at modifier}{by-sa}
 }{}
 
-\ifthenelse{
+\ifthenelse{%
   \equal{\doclicense at version}{}
-}{
-  \PackageWarning{doclicense}{%
-    "version" package option missing. % chktex 18
+}{%
+  \PackageError{doclicense}{"version" package option missing}{% chktex 18
     This option is now required and the fallback is deprecated. % chktex 18
     In an upcoming major version of doclicense, this will be a package error.
     Please explicitly pick a license of your choosing.
@@ -247,9 +257,16 @@
 \IfFileExists{doclicense-\doclicense at lang.ldf}{%
   \input{doclicense-\doclicense at lang.ldf}% chktex 27
 }{%
-  \PackageWarning{doclicense}{%
-    No language definition for \doclicense at lang found.
-    Please add one and submit a patch. Using English as fallback.
+  \ifthenelse{\equal{\doclicense at lang}{nil}}{%
+    \PackageWarning{doclicense}{%
+      The language of your document is not defined. Please refer to the babel or polyglossia
+      package to see how to define it. Using English as fallback.
+    }
+  }{%
+    \PackageWarning{doclicense}{%
+      No language definition for \doclicense at lang\space
+      found.  Consider adding one and submit it to doclicense. Using English as fallback.
+    }
   }
   \renewcommand{\doclicense at lang}{english}
   \input{doclicense-\doclicense at lang.ldf}% chktex 27
@@ -312,7 +329,7 @@
         \renewcommand{\doclicense at imagemodifier}{-88x31}% chktex 29
       }{}
     }{}
-    \ifthenelse{\equal{\doclicense at modifier}{by-nc-sa}}{
+    \ifthenelse{\equal{\doclicense at modifier}{by-nc-sa}}{%
       \renewcommand{\doclicense at icon}{\ccbyncsa}
       \IfBeginWith{\doclicense at imagemodifier}{-eu}{%
         \renewcommand{\doclicense at icon}{\ccbyncsaeu}
@@ -322,7 +339,7 @@
         \renewcommand{\doclicense at imagemodifier}{-88x31}% chktex 29
       }{}
     }{}
-    \ifthenelse{\equal{\doclicense at modifier}{by-nc-nd}}{
+    \ifthenelse{\equal{\doclicense at modifier}{by-nc-nd}}{%
       \renewcommand{\doclicense at icon}{\ccbyncnd}
       \IfBeginWith{\doclicense at imagemodifier}{-jp}{%
         \renewcommand{\doclicense at icon}{\ccbyncndjp}
@@ -338,13 +355,13 @@
         \doclicense at modifier/%
         \doclicense at versionUsed\doclicense at UrlLangPart}
     }{}
-    \ifthenelse{\equal{\doclicense at modifier}{pd}}{
-      \PackageError{doclicense}{CC PD license removed as of version 2.0.0}{
+    \ifthenelse{\equal{\doclicense at modifier}{pd}}{%
+      \PackageError{doclicense}{CC PD license removed as of version 2.0.0}{%
         Creative Commons PD has been replaced by CC-zero.
         Please update your license choice.
       }%
     }{}
-    \IfSubStr{\doclicense at modifier}{nc}{}{
+    \IfSubStr{\doclicense at modifier}{nc}{}{%
       % eu (Euro) does only exist for nc (non commercial) so if not nc then reset -eu.
       \IfBeginWith{\doclicense at imagemodifier}{-eu}{%
         \renewcommand{\doclicense at imagemodifier}{-88x31}% chktex 29



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