#1050866 poppler: missing ToUnicode support for similarequal

Package:
src:poppler
Source:
src:poppler
Submitter:
Vincent Lefevre
Date:
2026-01-10 10:58:42 UTC
Severity:
normal
Tags:
#1050866#5
Date:
2023-08-30 13:20:02 UTC
From:
To:
For \simeq, TeX generates /similarequal instead of Adobe's
/asymptoticallyequal; so similarequal needs to be supported too.

In TeX Live 2023:
texmf-dist/fonts/map/glyphlist/glyphlist.txt (Adobe Glyph List) contains

  asymptoticallyequal;2243

but texmf-dist/fonts/map/glyphlist/texglyphlist.txt (Extensions to the
Adobe Glyph List for TeX fonts and encodings) contains

  similarequal;2243

As a consequence, texmf-dist/tex/generic/pdftex/glyphtounicode.tex
contains both

  \pdfglyphtounicode{asymptoticallyequal}{2243}
  \pdfglyphtounicode{similarequal}{2243}

NameToUnicodeTable.h already has

  { 0x2243, "asymptoticallyequal" }
so one just needs to add the missing

  { 0x2243, "similarequal" }

To reproduce the issue, consider the following simeq.tex file:

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
\thispagestyle{empty}
$\simeq\approx$
\end{document}

In the PDF file generated by pdflatex, after uncompressing it with
"qpdf --stream-data=uncompress":

/F32 9.9626 Tf 148.712 707.125 Td [('\031)]TJ

and

dup 25 /approxequal put
dup 39 /similarequal put

i.e. /similarequal is generated for \simeq, and pdftotext gives

'≈

(the apostrophe ', code 39, corresponds to /similarequal, but appears
as an apostrophe since /similarequal is not supported; and \031, i.e.
25 in decimal, corresponds to /approxequal, which appears correctly
because /approxequal is supported).

With the attached patch, pdftotext gives

≃≈

as wanted.

I've created a merge request upstream.

#1050866#12
Date:
2026-01-10 10:10:29 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.