Skip to content

Commit

Permalink
improve glyphtounicode (luatex, math)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Mar 7, 2023
1 parent e9f5e82 commit 368156f
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 0 deletions.
15 changes: 15 additions & 0 deletions required/latex-lab/latex-lab-sec-tagging.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,21 @@
% \begin{macrocode}
%</package>
% \end{macrocode}
% \subsubsection{Glyphtounicode improvements}
%
% As lualatex runs with legacy encodings in the test files, we enable and
% load glyphtounicode. For the math we load additional definitions.
%
% \begin{macrocode}
%<*kernelchange>
\ifdefined\directlua
\pdfvariable gentounicode =1
\protected\def\pdfglyphtounicode {\pdfextension glyphtounicode }
\input{glyphtounicode}
\fi
\input{glyphtounicode-cmex}
%</kernelchange>
% \end{macrocode}
%
% \subsubsection{updating \cs{@currentHref}}
% [kernel?]
Expand Down
141 changes: 141 additions & 0 deletions texmf/tex/latex/glyphtounicode-cmex.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
% A subset of glyhtounicode-cmr.tex
%
% Copyright (c) 2008, Han The Thanh <thanh@river-valley.org>
% Copyright (c) 2014, Peter Selinger <selinger@mathstat.dal.ca>
% Copyright (c) 2018, Ross Moore <ross.moore@mq.edu.au>
%

%% Glyphs from the cmex fonts:

\pdfglyphtounicode{angbracketleftBig}{27E8 FE02}
\pdfglyphtounicode{angbracketleftBigg}{27E8 FE04}
\pdfglyphtounicode{angbracketleftbig}{27E8 FE01}
\pdfglyphtounicode{angbracketleftbigg}{27E8 FE03}
\pdfglyphtounicode{angbracketrightBig}{27E9 FE02}
\pdfglyphtounicode{angbracketrightBigg}{27E9 FE04}
\pdfglyphtounicode{angbracketrightbig}{27E9 FE01}
\pdfglyphtounicode{angbracketrightbigg}{27E9 FE03}
\pdfglyphtounicode{arrowbt}{2193}
\pdfglyphtounicode{arrowdblbt}{21D3}
\pdfglyphtounicode{arrowdbltp}{21D1}
\pdfglyphtounicode{arrowhookleft}{21AA}
\pdfglyphtounicode{arrowhookright}{21A9}
\pdfglyphtounicode{arrowtp}{2191}
\pdfglyphtounicode{arrowvertex}{23D0}
\pdfglyphtounicode{arrowvertexdbl}{20E6}% was {ED12}% PUA
\pdfglyphtounicode{backslashBig}{005C FE02}
\pdfglyphtounicode{backslashBigg}{005C FE04}
\pdfglyphtounicode{backslashbig}{005C FE01}
\pdfglyphtounicode{backslashbigg}{005C FE03}
\pdfglyphtounicode{braceex}{23AA}
\pdfglyphtounicode{bracehtipdownleft}{23DF}% was {ED17}% PUA
\pdfglyphtounicode{bracehtipdownright}{23DF}% was {ED18}% PUA
\pdfglyphtounicode{bracehtipupleft}{23DE}% was {ED19}% PUA
\pdfglyphtounicode{bracehtipupright}{23DE}% was {ED1A}% PUA
\pdfglyphtounicode{braceleftBig}{007B FE02}
\pdfglyphtounicode{braceleftBigg}{007B FE04}
\pdfglyphtounicode{braceleftbig}{007B FE01}
\pdfglyphtounicode{braceleftbigg}{007B FE03}
\pdfglyphtounicode{braceleftbt}{23A9}
\pdfglyphtounicode{braceleftmid}{23A8}
\pdfglyphtounicode{bracelefttp}{23A7}
\pdfglyphtounicode{bracerightBig}{007D FE02}
\pdfglyphtounicode{bracerightBigg}{007D FE04}
\pdfglyphtounicode{bracerightbig}{007D FE01}
\pdfglyphtounicode{bracerightbigg}{007D FE03}
\pdfglyphtounicode{bracerightbt}{23AD}
\pdfglyphtounicode{bracerightmid}{23AC}
\pdfglyphtounicode{bracerighttp}{23AB}
\pdfglyphtounicode{bracketleftBig}{005B FE02}
\pdfglyphtounicode{bracketleftBigg}{005B FE04}
\pdfglyphtounicode{bracketleftbig}{005B FE01}
\pdfglyphtounicode{bracketleftbigg}{005B FE03}
\pdfglyphtounicode{bracketleftbt}{23A3}
\pdfglyphtounicode{bracketleftex}{23A2}
\pdfglyphtounicode{bracketlefttp}{23A1}
\pdfglyphtounicode{bracketrightBig}{005D FE02}
\pdfglyphtounicode{bracketrightBigg}{005D FE04}
\pdfglyphtounicode{bracketrightbig}{005D FE01}
\pdfglyphtounicode{bracketrightbigg}{005D FE03}
\pdfglyphtounicode{bracketrightbt}{23A6}
\pdfglyphtounicode{bracketrightex}{23A5}
\pdfglyphtounicode{bracketrighttp}{23A4}
\pdfglyphtounicode{ceilingleftBig}{2308 FE02}
\pdfglyphtounicode{ceilingleftBigg}{2308 FE04}
\pdfglyphtounicode{ceilingleftbig}{2308 FE01}
\pdfglyphtounicode{ceilingleftbigg}{2308 FE03}
\pdfglyphtounicode{ceilingrightBig}{2309 FE02}
\pdfglyphtounicode{ceilingrightBigg}{2309 FE04}
\pdfglyphtounicode{ceilingrightbig}{2309 FE01}
\pdfglyphtounicode{ceilingrightbigg}{2309 FE03}
\pdfglyphtounicode{circledotdisplay}{2A00 FE02}
\pdfglyphtounicode{circledottext}{2A00 FE01}
\pdfglyphtounicode{circlemultiplydisplay}{2A02 FE02}
\pdfglyphtounicode{circlemultiplytext}{2A02 FE01}
\pdfglyphtounicode{circleplusdisplay}{2A01 FE02}
\pdfglyphtounicode{circleplustext}{2A01 FE01}
\pdfglyphtounicode{contintegraldisplay}{222E FE02}
\pdfglyphtounicode{contintegraltext}{222E FE01}
\pdfglyphtounicode{coproductdisplay}{2210 FE02}
\pdfglyphtounicode{coproducttext}{2210 FE01}
\pdfglyphtounicode{floorleftBig}{230A FE02}
\pdfglyphtounicode{floorleftBigg}{230A FE04}
\pdfglyphtounicode{floorleftbig}{230A FE01}
\pdfglyphtounicode{floorleftbigg}{230A FE03}
\pdfglyphtounicode{floorrightBig}{230B FE02}
\pdfglyphtounicode{floorrightBigg}{230B FE04}
\pdfglyphtounicode{floorrightbig}{230B FE01}
\pdfglyphtounicode{floorrightbigg}{230B FE03}
\pdfglyphtounicode{hatwide}{02C6 FE01}
\pdfglyphtounicode{hatwider}{02C6 FE02}
\pdfglyphtounicode{hatwidest}{02C6 FE03}
\pdfglyphtounicode{integraldisplay}{222B FE02}
\pdfglyphtounicode{integraltext}{222B FE01}
\pdfglyphtounicode{intersectiondisplay}{22C2 FE02}
\pdfglyphtounicode{intersectiontext}{22C2 FE01}
\pdfglyphtounicode{logicalanddisplay}{22C0 FE02}
\pdfglyphtounicode{logicalandtext}{22C0 FE01}
\pdfglyphtounicode{logicalordisplay}{22C1 FE02}
\pdfglyphtounicode{logicalortext}{22C1 FE01}
\pdfglyphtounicode{mapsto}{21A6}
\pdfglyphtounicode{parenleftBig}{0028 FE02}
\pdfglyphtounicode{parenleftBigg}{0028 FE04}
\pdfglyphtounicode{parenleftbig}{0028 FE01}
\pdfglyphtounicode{parenleftbigg}{0028 FE03}
\pdfglyphtounicode{parenleftbt}{239D}
\pdfglyphtounicode{parenleftex}{239C}
\pdfglyphtounicode{parenlefttp}{239B}
\pdfglyphtounicode{parenrightBig}{0029 FE02}
\pdfglyphtounicode{parenrightBigg}{0029 FE04}
\pdfglyphtounicode{parenrightbig}{0029 FE01}
\pdfglyphtounicode{parenrightbigg}{0029 FE03}
\pdfglyphtounicode{parenrightbt}{23A0}
\pdfglyphtounicode{parenrightex}{239F}
\pdfglyphtounicode{parenrighttp}{239E}
\pdfglyphtounicode{productdisplay}{220F FE02}
\pdfglyphtounicode{producttext}{220F FE01}
\pdfglyphtounicode{radicalBig}{221A FE02}
\pdfglyphtounicode{radicalBigg}{221A FE04}
\pdfglyphtounicode{radicalbig}{221A FE01}
\pdfglyphtounicode{radicalbigg}{221A FE03}
\pdfglyphtounicode{radicalbt}{23B7}% was {221A}
\pdfglyphtounicode{radicaltp}{231C}% was {ED6A}% PUA
\pdfglyphtounicode{radicalvertex}{20D3}% was {ED6B}% PUA
\pdfglyphtounicode{slashBig}{002F FE02}
\pdfglyphtounicode{slashBigg}{002F FE04}
\pdfglyphtounicode{slashbig}{002F FE01}
\pdfglyphtounicode{slashbigg}{002F FE03}
\pdfglyphtounicode{summationdisplay}{2211 FE02}
\pdfglyphtounicode{summationtext}{2211 FE01}
\pdfglyphtounicode{tie}{2040}
\pdfglyphtounicode{tildewide}{02DC FE01}
\pdfglyphtounicode{tildewider}{02DC FE02}
\pdfglyphtounicode{tildewidest}{02DC FE03}
\pdfglyphtounicode{uniondisplay}{22C3 FE02}
\pdfglyphtounicode{unionmultidisplay}{2A04 FE02}
\pdfglyphtounicode{unionmultitext}{2A04 FE01}
\pdfglyphtounicode{unionsqdisplay}{2A06 FE02}
\pdfglyphtounicode{unionsqtext}{2A06 FE01}
\pdfglyphtounicode{uniontext}{22C3 FE01}
\pdfglyphtounicode{vextenddouble}{20E6}% was {ED79}% PUA
\pdfglyphtounicode{vextendsingle}{20D3}%%% was {23D0}

0 comments on commit 368156f

Please sign in to comment.