Thank you for the answers, Bruce, Pablo and Hraban. I was not aware of
ActualText.
I work on a manjaro linux, and I tested the example Pablo sent on
several programs:
mupdf-gl or mupdf: fails! [mupdf-gl is what I customarily use for its
blazing speed]
firefox: fails
vivaldi: passes
okular: passes
qpdfview: passes
evince: passes
But \pdfbackendactualtext is actually just what I needed since it can
be used also for other things like:
\starttext
what a \pdfbackendactualtext{\hyphenatedword{wonderful}}{wonderful} text
\stoptext
Best regards
Marcus Vinicius
On Mon, Aug 7, 2023 at 3:13 AM Henning Hraban Ramm
Am 06.08.23 um 20:37 schrieb Pablo Rodriguez:
Hans provides this jewel in back-imp-pdf.mkxl and back-pdf.mkiv (adapter for your needs):
\starttext text \pdfbackendactualtext{whatever you want}{filia} text \stoptext
In any case, the PDF viewer used to search must have ActualText implemented.
Exactly. And e.g. Apple’s PDF library has not; it is used not only by Preview.app, but also by Skim and TeXshop. (I should check this with other viewers/libs.)
Hraban
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
-- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)