texlive[74691] Master/texmf-dist: censor (18mar25)
commits+karl at tug.org
commits+karl at tug.org
Tue Mar 18 21:30:17 CET 2025
Revision: 74691
https://tug.org/svn/texlive?view=revision&revision=74691
Author: karl
Date: 2025-03-18 21:30:17 +0100 (Tue, 18 Mar 2025)
Log Message:
-----------
censor (18mar25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/censor/README
trunk/Master/texmf-dist/doc/latex/censor/censor.pdf
trunk/Master/texmf-dist/doc/latex/censor/censor.tex
trunk/Master/texmf-dist/tex/latex/censor/censor.sty
Modified: trunk/Master/texmf-dist/doc/latex/censor/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/censor/README 2025-03-18 20:30:01 UTC (rev 74690)
+++ trunk/Master/texmf-dist/doc/latex/censor/README 2025-03-18 20:30:17 UTC (rev 74691)
@@ -28,3 +28,13 @@
the tokcycle package, to provide more flexibility when censored material
contains macros.
+v4.1 added automatic support for special character macros and accent macros.
+
+v4.2 supports autocensoring of Greek math symbols; introduced leaders for
+censoring spaces; made \censor and \censorbox robust.
+
+v4.3 introduced the \ifcensor test for determining the current state of
+censoring.
+
+v4.4 Now supports the use of unicode characters within the pdflatex engine.
+
Modified: trunk/Master/texmf-dist/doc/latex/censor/censor.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/censor/censor.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/censor/censor.tex 2025-03-18 20:30:01 UTC (rev 74690)
+++ trunk/Master/texmf-dist/doc/latex/censor/censor.tex 2025-03-18 20:30:17 UTC (rev 74691)
@@ -770,6 +770,10 @@
\begin{itemize}
+\item As of package version v4.4, censoring of unicode characters such as umlauts
+ is now supported in pdflatex (it had already been supported in lualatex and
+ xelatex).
+
\item As of package version v4.0, the token-cycling pseudo-environments of the
\textsf{tokcycle} package were used to process the tokens of
the \verb|\blackout| and \verb|\xblackout| macros.
Modified: trunk/Master/texmf-dist/tex/latex/censor/censor.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/censor/censor.sty 2025-03-18 20:30:01 UTC (rev 74690)
+++ trunk/Master/texmf-dist/tex/latex/censor/censor.sty 2025-03-18 20:30:17 UTC (rev 74691)
@@ -1,6 +1,6 @@
% censor.sty
-\def\censorversionnumber{4.3}
-\def\censorversiondate{2023/06/05}
+\def\censorversionnumber{4.4}
+\def\censorversiondate{2025/03/18}
\ProvidesPackage{censor}
[\censorversiondate\ \censorversionnumber\
Provides capability for redaction of sensitive information]
@@ -84,14 +84,14 @@
{\tctestifcon\ifexpandarg{\expandafter\processtoks\expandafter
{\expanded{##1}}\@dump\censored at word}{\groupedcytoks{\processtoks{##1}%
\@dump\censored at word}}\expandargfalse}
- {\tctestifx{~##1}{\@append\censored at word{##1}}%
- {\tctestifx{\expanded##1}{\@dump\censored at word\expandargtrue}%
+ {\ifactivetok\@append\censored at word{##1}\else%
+ \tctestifx{\expanded##1}{\@dump\censored at word\expandargtrue}%
{\test at chars{##1}\if at char\if at mathgreek
\@append\censored at word{\ensuremath{##1}}\else
\@append\censored at word{##1}\fi\else
\test at accents{##1}\if at accent\@append\censored at word{##1}\tcpop\tc at popped
\expandafter\@append\expandafter\censored at word\expandafter{\tc at popped}%
- \else\@dump\censored at word\addcytoks{##1}\fi\fi}}}
+ \else\@dump\censored at word\addcytoks{##1}\fi\fi}\fi}
{\@dump\censored at word\addcytoks{##1}}
{\stripgroupingtrue\def\censored at word{}\sloppy}
{\@dump\censored at word}
@@ -108,14 +108,14 @@
{\tctestifcon\ifexpandarg{\expandafter\processtoks\expandafter
{\expanded{##1}}\@dump\censored at word}{\groupedcytoks{\processtoks{##1}%
\@dump\censored at word}}\expandargfalse}
- {\tctestifx{~##1}{\@append\censored at word{##1}}%
- {\tctestifx{\expanded##1}{\@dump\censored at word\expandargtrue}%
+ {\ifactivetok\@append\censored at word{##1}\else%
+ \tctestifx{\expanded##1}{\@dump\censored at word\expandargtrue}%
{\test at chars{##1}\if at char\if at mathgreek
\@append\censored at word{\ensuremath{##1}}\else
\@append\censored at word{##1}\fi\else
\test at accents{##1}\if at accent\@append\censored at word{##1}\tcpop\tc at popped
\expandafter\@append\expandafter\censored at word\expandafter{\tc at popped}%
- \else\@dump\censored at word\addcytoks{##1}\fi\fi}}}
+ \else\@dump\censored at word\addcytoks{##1}\fi\fi}\fi}
{\@dump\censored at word\addcytoks{\ccenspace}}
{\stripgroupingtrue\def\censored at word{}\sloppy}
{\@dump\censored at word}
@@ -264,4 +264,4 @@
4.3 - Introduced \ifcensor condition, default true, set false via
\StopCensoring and set true via \RestartCensoring. Thus, the current
state of censoring can be determined by the user.
-
+4.4 - Now supports the use of unicode characters within the pdflatex engine.
More information about the tex-live-commits
mailing list.