[latex3-commits] [l3svn] branch master updated: Use OT1 CMR for all engines

noreply at latex-project.org noreply at latex-project.org
Tue Jan 24 08:56:34 CET 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

The following commit(s) were added to refs/heads/master by this push:
       new  68c5e8c   Use OT1 CMR for all engines
68c5e8c is described below

commit 68c5e8c69d5c300dbb5bd552c7ddcea9b157c1ec
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Jan 24 07:54:22 2017 +0000

    Use OT1 CMR for all engines
    
    Following the 2017/01/01 LaTeX2e kernel update, the font used
    'out of the box' is engine-dependent. That leads to differences
    we are not interested in (probably).
    
    For the present, force OT1/CMR at the level of the local .cfg
    file. It may be worth adding this to the standard l3build set up
    (when LaTeX is in use): to discuss.
    
    Longer-term it may be sensible to add more .tlg files rather
    than go this way, but that should be done once the kernel changes
    have had more testing 'in the wild' themselves.
---
 build-config.lua                       |    2 +
 l3kernel/testfiles/m3file001.ptex.tlg  |    2 +
 l3kernel/testfiles/m3file001.tlg       |    2 +
 l3kernel/testfiles/m3file001.uptex.tlg |    2 +
 l3kernel/testfiles/m3file001.xetex.tlg |    2 +
 support/fontenc.sty                    |  113 +++++++++++++++++++++++++++++
 support/ot1enc.def                     |  122 ++++++++++++++++++++++++++++++++
 support/regression-test.cfg            |    6 ++
 8 files changed, 251 insertions(+)

diff --git a/build-config.lua b/build-config.lua
index 5cb0ca2..a943ab4 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -10,7 +10,9 @@ checkengines    = checkengines
 checksuppfiles  = checksuppfiles  or
   {
     "CaseFolding.txt",
+    "fontenc.sty",
     "minimal.cls",
+    "ot1enc.def",
     "regression-test.cfg",
     "SpecialCasing.txt",
     "UnicodeData.txt",
diff --git a/l3kernel/testfiles/m3file001.ptex.tlg b/l3kernel/testfiles/m3file001.ptex.tlg
index 3988af5..b9cf9a3 100644
--- a/l3kernel/testfiles/m3file001.ptex.tlg
+++ b/l3kernel/testfiles/m3file001.ptex.tlg
@@ -80,6 +80,8 @@ kinsoku.tex
 minimal.cls
 regression-test
 regression-test.cfg
+fontenc.sty
+ot1enc.def
 expl3.sty
 expl3-code.tex
 l3dvipdfmx.def
diff --git a/l3kernel/testfiles/m3file001.tlg b/l3kernel/testfiles/m3file001.tlg
index c53cbf4..c673e0a 100644
--- a/l3kernel/testfiles/m3file001.tlg
+++ b/l3kernel/testfiles/m3file001.tlg
@@ -74,6 +74,8 @@ TEST 5: File listing
 minimal.cls
 regression-test
 regression-test.cfg
+fontenc.sty
+ot1enc.def
 expl3.sty
 expl3-code.tex
 l3pdfmode.def
diff --git a/l3kernel/testfiles/m3file001.uptex.tlg b/l3kernel/testfiles/m3file001.uptex.tlg
index ab77029..e668387 100644
--- a/l3kernel/testfiles/m3file001.uptex.tlg
+++ b/l3kernel/testfiles/m3file001.uptex.tlg
@@ -80,6 +80,8 @@ ukinsoku.tex
 minimal.cls
 regression-test
 regression-test.cfg
+fontenc.sty
+ot1enc.def
 expl3.sty
 expl3-code.tex
 l3dvipdfmx.def
diff --git a/l3kernel/testfiles/m3file001.xetex.tlg b/l3kernel/testfiles/m3file001.xetex.tlg
index 92f4107..622968d 100644
--- a/l3kernel/testfiles/m3file001.xetex.tlg
+++ b/l3kernel/testfiles/m3file001.xetex.tlg
@@ -74,6 +74,8 @@ TEST 5: File listing
 minimal.cls
 regression-test
 regression-test.cfg
+fontenc.sty
+ot1enc.def
 expl3.sty
 expl3-code.tex
 l3xdvipdfmx.def
diff --git a/support/fontenc.sty b/support/fontenc.sty
new file mode 100644
index 0000000..4252a0a
--- /dev/null
+++ b/support/fontenc.sty
@@ -0,0 +1,113 @@
+%%
+%% This is file `fontenc.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ltoutenc.dtx  (with options: `package')
+%% 
+%% This is a generated file.
+%% 
+%% The source is maintained by the LaTeX Project team and bug
+%% reports for it can be opened at http://latex-project.org/bugs.html
+%% (but please observe conditions on bug reports sent to that address!)
+%% 
+%% 
+%% Copyright 1993-2016
+%% The LaTeX3 Project and any individual authors listed elsewhere
+%% in this file.
+%% 
+%% This file was generated from file(s) of the LaTeX base system.
+%% --------------------------------------------------------------
+%% 
+%% It 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 later version.
+%% The latest version of this license is in
+%%    http://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%% 
+%% This file has the LPPL maintenance status "maintained".
+%% 
+%% This file may only be distributed together with a copy of the LaTeX
+%% base system. You may however distribute the LaTeX base system without
+%% such generated files.
+%% 
+%% The list of all files belonging to the LaTeX base distribution is
+%% given in the file `manifest.txt'. See also `legal.txt' for additional
+%% information.
+%% 
+%% The list of derived (unpacked) files belonging to the distribution
+%% and covered by LPPL is defined by the unpacking scripts (with
+%% extension .ins) which are part of the distribution.
+%%% From File: ltoutenc.dtx
+\ProvidesPackage{fontenc}
+ [2016/12/11 v2.0a
+                 Standard LaTeX package]
+\def\update at uclc@with at cyrillic{%
+ \expandafter\def\expandafter\@uclclist\expandafter
+  {\@uclclist
+  \cyra\CYRA\cyrabhch\CYRABHCH\cyrabhchdsc\CYRABHCHDSC\cyrabhdze
+  \CYRABHDZE\cyrabhha\CYRABHHA\cyrae\CYRAE\cyrb\CYRB\cyrbyus
+  \CYRBYUS\cyrc\CYRC\cyrch\CYRCH\cyrchldsc\CYRCHLDSC\cyrchrdsc
+  \CYRCHRDSC\cyrchvcrs\CYRCHVCRS\cyrd\CYRD\cyrdelta\CYRDELTA
+  \cyrdje\CYRDJE\cyrdze\CYRDZE\cyrdzhe\CYRDZHE\cyre\CYRE\cyreps
+  \CYREPS\cyrerev\CYREREV\cyrery\CYRERY\cyrf\CYRF\cyrfita
+  \CYRFITA\cyrg\CYRG\cyrgdsc\CYRGDSC\cyrgdschcrs\CYRGDSCHCRS
+  \cyrghcrs\CYRGHCRS\cyrghk\CYRGHK\cyrgup\CYRGUP\cyrh\CYRH
+  \cyrhdsc\CYRHDSC\cyrhhcrs\CYRHHCRS\cyrhhk\CYRHHK\cyrhrdsn
+  \CYRHRDSN\cyri\CYRI\cyrie\CYRIE\cyrii\CYRII\cyrishrt\CYRISHRT
+  \cyrishrtdsc\CYRISHRTDSC\cyrizh\CYRIZH\cyrje\CYRJE\cyrk\CYRK
+  \cyrkbeak\CYRKBEAK\cyrkdsc\CYRKDSC\cyrkhcrs\CYRKHCRS\cyrkhk
+  \CYRKHK\cyrkvcrs\CYRKVCRS\cyrl\CYRL\cyrldsc\CYRLDSC\cyrlhk
+  \CYRLHK\cyrlje\CYRLJE\cyrm\CYRM\cyrmdsc\CYRMDSC\cyrmhk\CYRMHK
+  \cyrn\CYRN\cyrndsc\CYRNDSC\cyrng\CYRNG\cyrnhk\CYRNHK\cyrnje
+  \CYRNJE\cyrnlhk\CYRNLHK\cyro\CYRO\cyrotld\CYROTLD\cyrp\CYRP
+  \cyrphk\CYRPHK\cyrq\CYRQ\cyrr\CYRR\cyrrdsc\CYRRDSC\cyrrhk
+  \CYRRHK\cyrrtick\CYRRTICK\cyrs\CYRS\cyrsacrs\CYRSACRS
+  \cyrschwa\CYRSCHWA\cyrsdsc\CYRSDSC\cyrsemisftsn\CYRSEMISFTSN
+  \cyrsftsn\CYRSFTSN\cyrsh\CYRSH\cyrshch\CYRSHCH\cyrshha\CYRSHHA
+  \cyrt\CYRT\cyrtdsc\CYRTDSC\cyrtetse\CYRTETSE\cyrtshe\CYRTSHE
+  \cyru\CYRU\cyrushrt\CYRUSHRT\cyrv\CYRV\cyrw\CYRW\cyry\CYRY
+  \cyrya\CYRYA\cyryat\CYRYAT\cyryhcrs\CYRYHCRS\cyryi\CYRYI\cyryo
+  \CYRYO\cyryu\CYRYU\cyrz\CYRZ\cyrzdsc\CYRZDSC\cyrzh\CYRZH
+  \cyrzhdsc\CYRZHDSC}%
+ \let\update at uclc@with at cyrillic\relax
+}
+\DeclareOption*{%
+   \let\encodingdefault\CurrentOption
+   \edef\reserved at f{%
+     \lowercase{\def\noexpand\reserved at f{\CurrentOption enc.def}}}%
+   \reserved at f
+   \InputIfFileExists\reserved at f
+        {}{\PackageError{fontenc}%
+         {Encoding file `\reserved at f' not found.%
+          \MessageBreak
+           You might have misspelt the name of the encoding}%
+         {Necessary code for this encoding was not
+          loaded.\MessageBreak
+          Thus calling the encoding later on will
+          produce further error messages.}}%
+  \let\reserved at f\relax
+  \expandafter\in@\expandafter{\CurrentOption}%
+                              {T2A,T2B,T2C,X2,LCY,OT2}%
+  \ifin@
+     \expandafter\in@\expandafter\cyra\expandafter
+                              {\@uclclist}%
+     \ifin@
+     \else
+       \update at uclc@with at cyrillic
+     \fi
+  \fi
+}
+\ProcessOptions*
+\fontencoding\encodingdefault\selectfont
+\let\update at uclc@with at cyrillic\relax
+\global\expandafter\let\csname ver at fontenc.sty\endcsname\relax
+\global\expandafter\let\csname opt at fontenc.sty\endcsname\relax
+\global\let\@ifl at ter@@\@ifl at ter
+\def\@ifl at ter#1#2#3#4#5{\global\let\@ifl at ter\@ifl at ter@@}
+\endinput
+%%
+%% End of file `fontenc.sty'.
diff --git a/support/ot1enc.def b/support/ot1enc.def
new file mode 100644
index 0000000..3d5e030
--- /dev/null
+++ b/support/ot1enc.def
@@ -0,0 +1,122 @@
+%%
+%% This is file `ot1enc.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ltoutenc.dtx  (with options: `OT1')
+%% 
+%% This is a generated file.
+%% 
+%% The source is maintained by the LaTeX Project team and bug
+%% reports for it can be opened at http://latex-project.org/bugs.html
+%% (but please observe conditions on bug reports sent to that address!)
+%% 
+%% 
+%% Copyright 1993-2016
+%% The LaTeX3 Project and any individual authors listed elsewhere
+%% in this file.
+%% 
+%% This file was generated from file(s) of the LaTeX base system.
+%% --------------------------------------------------------------
+%% 
+%% It 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 later version.
+%% The latest version of this license is in
+%%    http://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%% 
+%% This file has the LPPL maintenance status "maintained".
+%% 
+%% This file may only be distributed together with a copy of the LaTeX
+%% base system. You may however distribute the LaTeX base system without
+%% such generated files.
+%% 
+%% The list of all files belonging to the LaTeX base distribution is
+%% given in the file `manifest.txt'. See also `legal.txt' for additional
+%% information.
+%% 
+%% The list of derived (unpacked) files belonging to the distribution
+%% and covered by LPPL is defined by the unpacking scripts (with
+%% extension .ins) which are part of the distribution.
+%%% From File: ltoutenc.dtx
+\ProvidesFile{ot1enc.def}
+ [2016/12/11 v2.0a
+         Standard LaTeX file]
+\DeclareFontEncoding{OT1}{}{}
+\DeclareTextAccent{\"}{OT1}{127}
+\DeclareTextAccent{\'}{OT1}{19}
+\DeclareTextAccent{\.}{OT1}{95}
+\DeclareTextAccent{\=}{OT1}{22}
+\DeclareTextAccent{\^}{OT1}{94}
+\DeclareTextAccent{\`}{OT1}{18}
+\DeclareTextAccent{\~}{OT1}{126}
+\DeclareTextAccent{\H}{OT1}{125}
+\DeclareTextAccent{\u}{OT1}{21}
+\DeclareTextAccent{\v}{OT1}{20}
+\DeclareTextAccent{\r}{OT1}{23}
+\DeclareTextCommand{\b}{OT1}[1]
+   {\hmode at bgroup\o at lign{\relax#1\crcr\hidewidth\ltx at sh@ft{-3ex}%
+     \vbox to.2ex{\hbox{\char22}\vss}\hidewidth}\egroup}
+\DeclareTextCommand{\c}{OT1}[1]
+   {\leavevmode\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent24 #1%
+    \else{\ooalign{\unhbox\z@\crcr\hidewidth\char24\hidewidth}}\fi}
+\DeclareTextCommand{\d}{OT1}[1]
+   {\hmode at bgroup
+    \o at lign{\relax#1\crcr\hidewidth\ltx at sh@ft{-1ex}.\hidewidth}\egroup}
+\DeclareTextSymbol{\AE}{OT1}{29}
+\DeclareTextSymbol{\OE}{OT1}{30}
+\DeclareTextSymbol{\O}{OT1}{31}
+\DeclareTextSymbol{\ae}{OT1}{26}
+\DeclareTextSymbol{\i}{OT1}{16}
+\DeclareTextSymbol{\j}{OT1}{17}
+\DeclareTextSymbol{\oe}{OT1}{27}
+\DeclareTextSymbol{\o}{OT1}{28}
+\DeclareTextSymbol{\ss}{OT1}{25}
+\DeclareTextSymbol{\textemdash}{OT1}{124}
+\DeclareTextSymbol{\textendash}{OT1}{123}
+\DeclareTextCommand{\textexclamdown}{OT1}{!`}
+\DeclareTextCommand{\textquestiondown}{OT1}{?`}
+\DeclareTextSymbol{\textquotedblleft}{OT1}{92}
+\DeclareTextSymbol{\textquotedblright}{OT1}{`\"}
+\DeclareTextSymbol{\textquoteleft}{OT1}{`\`}
+\DeclareTextSymbol{\textquoteright}{OT1}{`\'}
+\DeclareTextCommand{\L}{OT1}
+   {\leavevmode\setbox\z@\hbox{L}\hb at xt@\wd\z@{\hss\@xxxii L}}
+\DeclareTextCommand{\l}{OT1}
+   {\hmode at bgroup\@xxxii l\egroup}
+\DeclareTextCompositeCommand{\r}{OT1}{A}
+   {\leavevmode\setbox\z@\hbox{!}\dimen@\ht\z@\advance\dimen at -1ex%
+    \rlap{\raise.67\dimen@\hbox{\char23}}A}
+\DeclareTextCommand{\ij}{OT1}{%
+  \nobreak\hskip\z at skip i\kern-0.02em j\nobreak\hskip\z at skip}
+\DeclareTextCommand{\IJ}{OT1}{%
+  \nobreak\hskip\z at skip I\kern-0.02em J\nobreak\hskip\z at skip}
+\DeclareTextCommand{\textdollar}{OT1}{\hmode at bgroup
+   \ifdim \fontdimen\@ne\font >\z@
+      \slshape
+   \else
+      \upshape
+   \fi
+   \char`\$\egroup}
+\DeclareTextCommand{\textsterling}{OT1}{\hmode at bgroup
+   \ifdim \fontdimen\@ne\font >\z@
+      \itshape
+   \else
+      \fontshape{ui}\selectfont
+   \fi
+   \char`\$\egroup}
+\DeclareTextComposite{\.}{OT1}{i}{`\i}
+\DeclareTextComposite{\.}{OT1}{\i}{`\i}
+\DeclareTextCompositeCommand{\`}{OT1}{i}{\@tabacckludge`\i}
+\DeclareTextCompositeCommand{\'}{OT1}{i}{\@tabacckludge'\i}
+\DeclareTextCompositeCommand{\^}{OT1}{i}{\^\i}
+\DeclareTextCompositeCommand{\"}{OT1}{i}{\"\i}
+\ifx\textcommaabove\@undefined\else
+\DeclareTextCompositeCommand{\c}{OT1}{g}{\textcommaabove{g}}
+\fi
+\endinput
+%%
+%% End of file `ot1enc.def'.
diff --git a/support/regression-test.cfg b/support/regression-test.cfg
index 4207c85..e3e5d8f 100644
--- a/support/regression-test.cfg
+++ b/support/regression-test.cfg
@@ -45,3 +45,9 @@
 \ifdefined\disablecjktoken
   \expandafter\disablecjktoken
 \fi
+
+% Force OT1 CMR for all engines
+\RequirePackage[OT1]{fontenc}
+\renewcommand{\rmdefault}{cmr}
+\renewcommand{\sfdefault}{cmss}
+\renewcommand{\ttdefault}{cmtt}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list