texlive[47382] Master/texmf-dist: newunicodechar (8apr18)

commits+karl at tug.org commits+karl at tug.org
Sun Apr 8 22:06:28 CEST 2018


Revision: 47382
          http://tug.org/svn/texlive?view=revision&revision=47382
Author:   karl
Date:     2018-04-08 22:06:28 +0200 (Sun, 08 Apr 2018)
Log Message:
-----------
newunicodechar (8apr18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/newunicodechar/README
    trunk/Master/texmf-dist/doc/latex/newunicodechar/newunicodechar.pdf
    trunk/Master/texmf-dist/source/latex/newunicodechar/newunicodechar.dtx
    trunk/Master/texmf-dist/source/latex/newunicodechar/newunicodechar.ins
    trunk/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty

Modified: trunk/Master/texmf-dist/doc/latex/newunicodechar/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/newunicodechar/README	2018-04-08 20:06:15 UTC (rev 47381)
+++ trunk/Master/texmf-dist/doc/latex/newunicodechar/README	2018-04-08 20:06:28 UTC (rev 47382)
@@ -8,12 +8,12 @@
 where <char> is some (directly typed in) Unicode character
 and <code> is what we need to be substituted to <char>.
 
-This is version 1.1 of the package
+This is version 1.2 of the package
 
-Changes from version 1.0:
-o The inputenx package is supported
+Changes from version 1.1:
+o Now utf8 is default for 8 bit engines
 
-Copyright (C) 2012 by Enrico Gregorio 
+Copyright (C) 2018 by Enrico Gregorio
 <Enrico dot Gregorio at univr dot it>
 -------------------------------------------------------
 
@@ -30,7 +30,7 @@
 The Current Maintainer of this work is Enrico Gregorio.
 
 This work consists of the files
-  newunicodechar.dtx 
+  newunicodechar.dtx
   newunicodechar.ins
 and the derived file newunicodechar.sty.
 
@@ -48,5 +48,5 @@
 o run "makeindex -s gglo.ist -o newunicodechar.gls newunicodechar.glo"
 o run "pdflatex newunicodechar.dtx"
 
-2012/11/12
+2018/04/08
 Enrico Gregorio

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

Modified: trunk/Master/texmf-dist/source/latex/newunicodechar/newunicodechar.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/newunicodechar/newunicodechar.dtx	2018-04-08 20:06:15 UTC (rev 47381)
+++ trunk/Master/texmf-dist/source/latex/newunicodechar/newunicodechar.dtx	2018-04-08 20:06:28 UTC (rev 47382)
@@ -1,9 +1,9 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2011-2012 by Enrico Gregorio 
+% Copyright (C) 2011-2018 by Enrico Gregorio
 % <Enrico dot Gregorio at univr dot it>
 % -------------------------------------------------------
-% 
+%
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
 % version 1.3c of this license or (at your option) any
@@ -13,11 +13,11 @@
 % of LaTeX version 2005/12/01 or later.
 %
 % This work has the LPPL maintenance status `maintained'.
-% 
+%
 % The Current Maintainer of this work is Enrico Gregorio.
 %
 % This work consists of the files
-%   newunicodechar.dtx 
+%   newunicodechar.dtx
 %   newunicodechar.ins
 % and the derived file newunicodechar.sty.
 %
@@ -27,10 +27,10 @@
 %<*driver>
 \ProvidesFile{newunicodechar.dtx}
 %</driver>
-%<package>\NeedsTeXFormat{LaTeX2e}[2008/04/05]
+%<package>\NeedsTeXFormat{LaTeX2e}[2018/04/01]
 %<package>\ProvidesPackage{newunicodechar}
 %<*package>
-    [2012/11/12 v1.1 Defining Unicode characters]
+    [2018/04/08 v1.2 Defining Unicode characters]
 %</package>
 %
 %<*driver>
@@ -48,7 +48,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{200}
+% \CheckSum{201}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -66,7 +66,7 @@
 %   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %   Right brace   \}     Tilde         \~}
 %
-%
+% \changes{v1.2}{2018/04/08}{Now utf8 is default}
 % \changes{v1.1}{2012/11/12}{Added support for \mbox{\textsf{inputenx}}}
 % \changes{v1.0}{2011/02/15}{Initial version}
 %
@@ -124,7 +124,7 @@
 % for \texttt{\u{o}}, \texttt{\={o}}, and \texttt{\u{u}}. As a matter
 % of fact, only \texttt{\u{a}} and \texttt{\u{A}} are defined, as they
 % are used in the Romanian language.
-% 
+%
 % One might resort to |\DeclareUnicodeCharacter| in the document's
 % preamble, but this requires looking up at the (long) list of Unicode
 % characters and jotting down the relevant numbers. For example,
@@ -147,6 +147,11 @@
 % |\usepackage{wasysym}|\\
 % |\newunicodechar{|\eighthnote|}{\eighthnote}|
 % \end{flushleft}
+% Important note: the package will not work if the \textsf{inputenc} package
+% is called with an option different from \texttt{utf8}. As of April 2018,
+% this encoding is assumed by default in 8~bit \TeX{} engines when running
+% \LaTeX. However one can still load \textsf{inputenc} or \textsf{inputenx}
+% with the \texttt{utf8} option (not \texttt{utf8x}).
 %
 % A similar problem may arise even with \XeLaTeX{}. A frequently asked
 % question on mailing lists or discussion groups is how to print some
@@ -369,17 +374,18 @@
 % right option, otherwise we define |\newunicodechar| to swallow its
 % arguments, after a warning. We need to first check for
 % \textsf{inputenx} because it loads \textsf{inputenc}.
+% \changes{v1.2}{2018/04/08}{Now utf8 is default}
 % \changes{v1.1}{2012/11/12}{Added support for \mbox{\textsf{inputenx}}}
 %    \begin{macrocode}
 \def\nuc at stop{\PackageWarningNoLine{newunicodechar}
-  {This package won't work without loading\MessageBreak
-   `inputenc' or `inputenx' with the `utf8' option}%
+  {This package only works if the document\MessageBreak
+   encoding is `utf8'}%
   \let\newunicodechar\@gobbletwo\endinput}
-\@ifpackageloaded{inputenx}
-  {\def\nuc at tempa{inputenx}}
-  {\@ifpackageloaded{inputenc}{\def\nuc at tempa{inputenc}}{\nuc at stop}}
-\@ifpackagewith{\nuc at tempa}{utf8}{}{\nuc at stop}
-\@ifpackagewith{\nuc at tempa}{utf8x}{\nuc at stop}{}
+\edef\@tempa{\detokenize{utf8}}
+\edef\@tempb{\detokenize\expandafter{\inputencodingname}}
+\ifx\@tempb\@tempa\else
+  \nuc at stop
+\fi
 %    \end{macrocode}
 % \begin{macro}{\newunicodechar}
 % The main macro. We set the temporary switch to false and put in
@@ -405,7 +411,7 @@
     \if at tempswa
       \@ifundefined{u8:\nuc at tempa}{}
         {\PackageWarning{newunicodechar}
-          {Redefining Unicode character\ifdefined\nuc at verbose; 
+          {Redefining Unicode character\ifdefined\nuc at verbose;
            it meant\MessageBreak
            ***\space\space\nuc at meaning\space\space***\MessageBreak
            before your redefinition\fi}}%

Modified: trunk/Master/texmf-dist/source/latex/newunicodechar/newunicodechar.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/newunicodechar/newunicodechar.ins	2018-04-08 20:06:15 UTC (rev 47381)
+++ trunk/Master/texmf-dist/source/latex/newunicodechar/newunicodechar.ins	2018-04-08 20:06:28 UTC (rev 47382)
@@ -1,7 +1,7 @@
-% Copyright (C) 2011-2012 by Enrico Gregorio 
+% Copyright (C) 2011-2018 by Enrico Gregorio
 % <Enrico dot Gregorio at univr dot it>
 % -------------------------------------------------------
-% 
+%
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
 % version 1.3c of this license or (at your option) any
@@ -11,11 +11,11 @@
 % of LaTeX version 2005/12/01 or later.
 %
 % This work has the LPPL maintenance status `maintained'.
-% 
+%
 % The Current Maintainer of this work is Enrico Gregorio.
 %
 % This work consists of the files
-%   newunicodechar.dtx 
+%   newunicodechar.dtx
 %   newunicodechar.ins
 % and the derived file newunicodechar.sty.
 
@@ -28,7 +28,7 @@
 
 This is a generated file.
 
-Copyright (C) 2011-2012 by Enrico Gregorio 
+Copyright (C) 2011-2018 by Enrico Gregorio
 <Enrico dot Gregorio at univr dot it>
 -------------------------------------------------------
 
@@ -45,7 +45,7 @@
 The Current Maintainer of this work is Enrico Gregorio.
 
 This work consists of the files
-  newunicodechar.dtx 
+  newunicodechar.dtx
   newunicodechar.ins
 and the derived file newunicodechar.sty.
 

Modified: trunk/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty	2018-04-08 20:06:15 UTC (rev 47381)
+++ trunk/Master/texmf-dist/tex/latex/newunicodechar/newunicodechar.sty	2018-04-08 20:06:28 UTC (rev 47382)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (C) 2011 by Enrico Gregorio
+%% Copyright (C) 2011-2018 by Enrico Gregorio
 %% <Enrico dot Gregorio at univr dot it>
 %% -------------------------------------------------------
 %% 
@@ -29,9 +29,9 @@
 %%   newunicodechar.ins
 %% and the derived file newunicodechar.sty.
 %% 
-\NeedsTeXFormat{LaTeX2e}[2008/04/05]
+\NeedsTeXFormat{LaTeX2e}[2018/04/01]
 \ProvidesPackage{newunicodechar}
-    [2012/11/12 v1.1 Defining Unicode characters]
+    [2018/04/08 v1.2 Defining Unicode characters]
 \@ifundefined{eTeXversion}
   {\PackageError{newunicodechar}{LaTeX engine too old, aborting}
    {Please upgrade your TeX system}\@@end}{}
@@ -77,14 +77,14 @@
 \expandafter\endinput
 \fi % End of code for Unicode engines
 \def\nuc at stop{\PackageWarningNoLine{newunicodechar}
-  {This package won't work without loading\MessageBreak
-   `inputenc' or `inputenx' with the `utf8' option}%
+  {This package only works if the document\MessageBreak
+   encoding is `utf8'}%
   \let\newunicodechar\@gobbletwo\endinput}
-\@ifpackageloaded{inputenx}
-  {\def\nuc at tempa{inputenx}}
-  {\@ifpackageloaded{inputenc}{\def\nuc at tempa{inputenc}}{\nuc at stop}}
-\@ifpackagewith{\nuc at tempa}{utf8}{}{\nuc at stop}
-\@ifpackagewith{\nuc at tempa}{utf8x}{\nuc at stop}{}
+\edef\@tempa{\detokenize{utf8}}
+\edef\@tempb{\detokenize\expandafter{\inputencodingname}}
+\ifx\@tempb\@tempa\else
+  \nuc at stop
+\fi
 \def\newunicodechar#1#2{%
   \@tempswafalse
   \edef\nuc at tempa{\detokenize{#1}}%



More information about the tex-live-commits mailing list