[latex3-commits] [git/LaTeX3-latex3-latex2e] textcomp: provide \textlegacy... subst glyphs only warning by default (cb1d82eb)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Nov 7 09:36:57 CET 2019


Repository : https://github.com/latex3/latex2e
On branch  : textcomp
Link       : https://github.com/latex3/latex2e/commit/cb1d82ebd72b75191140c584c18a28c0c07449ff

>---------------------------------------------------------------

commit cb1d82ebd72b75191140c584c18a28c0c07449ff
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Nov 7 09:36:57 2019 +0100

    provide \textlegacy...
    subst glyphs only warning by default


>---------------------------------------------------------------

cb1d82ebd72b75191140c584c18a28c0c07449ff
 base/textcomp-adds.tex | 44 +++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 39 insertions(+), 5 deletions(-)

diff --git a/base/textcomp-adds.tex b/base/textcomp-adds.tex
index 7db0ea32..1dbef105 100644
--- a/base/textcomp-adds.tex
+++ b/base/textcomp-adds.tex
@@ -108,7 +108,9 @@
 \@onlypreamble\DeclareEncodingSubset
 
 % maybe that should be kernel error now ...
-\def\tc at errorwarn{\PackageError}
+%\def\tc at errorwarn{\PackageError}
+% or maybe not ...
+\def\tc at errorwarn#1#2#3{\PackageWarning{#1}{#2}}
 
 \def\tc at error#1{%
    \tc at errorwarn{textcomp}%  % should be latex error if general
@@ -424,7 +426,7 @@
 % we declare the subsets of a good number of fonts in the kernel ...
 
 % the default:
-\DeclareEncodingSubset{TS1}{?}{1}
+\DeclareEncodingSubset{TS1}{?}{4}
 
 \DeclareEncodingSubset{TS1}{cmr}     {0}
 \DeclareEncodingSubset{TS1}{cmss}    {0}
@@ -510,15 +512,47 @@
 
 \def\UseLegacyTextSymbols{%
   \DeclareTextSymbolDefault{\textasteriskcentered}{OMS}%
-  \DeclareTextSymbolDefault{\textdagger}{OMS}%
-  \DeclareTextSymbolDefault{\textdaggerdbl}{OMS}%
-  \DeclareTextSymbolDefault{\textbullet}{OMS}%
   \DeclareTextSymbolDefault{\textbardbl}{OMS}%
+  \DeclareTextSymbolDefault{\textbullet}{OMS}%
+  \DeclareTextSymbolDefault{\textdaggerdbl}{OMS}%
+  \DeclareTextSymbolDefault{\textdagger}{OMS}%
   \DeclareTextSymbolDefault{\textparagraph}{OMS}%
   \DeclareTextSymbolDefault{\textperiodcentered}{OMS}%
   \DeclareTextSymbolDefault{\textsection}{OMS}%
   \UndeclareTextCommand{\textsection}{T1}%
 }
 
+
+% we go the roundabout way via separate OMS declarations so that
+%   \renewcommand\textdagger{\textlegacydagger}
+% doesn't prudce an endless loop
+
+\DeclareTextSymbol{\textlegacyasteriskcentered}{OMS}{3}   % "03
+\DeclareTextSymbol{\textlegacybardbl}{OMS}{107}           % "6B
+\DeclareTextSymbol{\textlegacybullet}{OMS}{15}            % "0F
+\DeclareTextSymbol{\textlegacydaggerdbl}{OMS}{122}        % "7A
+\DeclareTextSymbol{\textlegacydagger}{OMS}{121}           % "79
+\DeclareTextSymbol{\textlegacyparagraph}{OMS}{123}        % "7B
+\DeclareTextSymbol{\textlegacyperiodcentered}{OMS}{1}     % "01
+\DeclareTextSymbol{\textlegacysection}{OMS}{120}          % "78
+
+\DeclareTextSymbolDefault{\textlegacyasteriskcentered}{OMS}
+\DeclareTextSymbolDefault{\textlegacybardbl}{OMS}
+\DeclareTextSymbolDefault{\textlegacybullet}{OMS}
+\DeclareTextSymbolDefault{\textlegacydaggerdbl}{OMS}
+\DeclareTextSymbolDefault{\textlegacydagger}{OMS}
+\DeclareTextSymbolDefault{\textlegacyparagraph}{OMS}
+\DeclareTextSymbolDefault{\textlegacyperiodcentered}{OMS}
+\DeclareTextSymbolDefault{\textlegacysection}{OMS}
+
+
+% kernel leftover .. this should be like this these days ... not faked
+
+\DeclareTextSymbolDefault{\textcompwordmark}{T1}
+
+
+
 \makeatother    
 
+\endinput
+





More information about the latex3-commits mailing list