Skip to content

Commit

Permalink
Preload glyphtounicode.tex
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed Jan 30, 2021
1 parent 6f86770 commit 203801e
Show file tree
Hide file tree
Showing 3 changed files with 5,541 additions and 1 deletion.
1 change: 1 addition & 0 deletions base/build.lua
Expand Up @@ -126,6 +126,7 @@ dynamicfiles = {"*.tst"}
unpackfiles = {"unpack.ins"}
unpacksuppfiles =
{
"glyphtounicode.tex",
"hyphen.cfg",
"UShyphen.tex",
"ot1lmr.fd",
Expand Down
30 changes: 29 additions & 1 deletion base/ltfinal.dtx
Expand Up @@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltfinal.dtx}
[2021/01/15 v2.2l LaTeX Kernel (Final Settings)]
[2021/01/21 v2.2l LaTeX Kernel (Final Settings)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltfinal.dtx}
Expand Down Expand Up @@ -566,6 +566,34 @@
\fi
% \end{macrocode}
%
% For pdf\TeX\ preload and enable automatic glyph to Unicode mapping
% for more reliable copy and paste support.
% \changes{v2.2l}{2021/01/21}{Load glyphtounicode.tex for pdf\TeX}
%
% \begin{macrocode}
%</2ekernel>
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2021/05/01}%
%<latexrelease> {\pdfgentounicode}{Preload glyphtounicode}%
\ifx \pdfgentounicode \@undefined \else
\input glyphtounicode
\pdfgentounicode=1
\fi
%</2ekernel|latexrelease>
%<latexrelease>\EndIncludeInRelease
% \end{macrocode}
% When rolling back we can't unload the glyphtounicode mappings, but we
% can reset |\pdfgentounicode| to ensure that they aren't used.
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{0000/00/00}%
%<latexrelease> {\pdfgentounicode}{Preload glyphtounicode}%
%<latexrelease>\ifx \pdfgentounicode \@undefined \else
%<latexrelease> \pdfgentounicode=0
%<latexrelease>\fi
%<latexrelease>\EndIncludeInRelease
%<*2ekernel>
% \end{macrocode}
%
% \subsection{Input encoding}
%
% \changes{v2.1a}{2018/03/25}{default to UTF-8}
Expand Down

0 comments on commit 203801e

Please sign in to comment.