I am compiling this tex file
\documentclass{article}
\usepackage{hfoldsty}
\begin{document}
1 $1$
\end{document}
with pdflatex and open the resulting pdf with evince. If I search the digit one (1), it finds only the second one which is in upper case and not in "old style".
I tried
\input{glyphtounicode.tex}
\pdfgentounicode=1
\pdfglyphtounicode{textoneoldstyle}{0031}
but that didn't change anything. Also the packages cmap and mmap do not help which is expected, as far as I understand, because hfoldsty provides a virtual font with which these packages do not work.
Could you please tell me how I can find the old syle 1 in the pdf?
1 and $1$, compiled it with pdfTeX 1.40.12 by MiKTeX 2.9, opened it with Adobe Reader 10.0.1 on Win7 and was able to find both 1's via Ctrl+F. A general suggestion: Uselmodern(updated Computer Modern fonts) andcfr-lmfor old style digits, as those use better quality Type 1 fonts instead of Type 3 fonts. (cf. also http://tex.stackexchange.com/q/14274/4012) – doncherry Jun 05 '11 at 20:52