
Am Sun, 16 Feb 2025 04:04:11 +0100 schrieb Gerion Entrup:
Thanks for the answer. I researched this for my default PDF-viewer, Okular from KDE, and this program seems to be really special in this regard. It should be actively responsible for the behavior described in my original mail. See https://bugs.kde.org/show_bug.cgi?id=447094#c5 and https://bugs.kde.org/show_bug.cgi?id=233604.
Well 14 years old bug reports are not really good references. In any case: at least the second bug report is not relevant, the attached PDF uses a hard hyphen 002D and not a soft hyphen 00AD as context (correctly) does. I don't know what typst does (you didn't attach an example pdf) but if they use ActualText I wouldn't recommend to copy that. Support for ActualText is worse than support for soft hyphen (and I had even examples where words or sylables got lost in copy & paste if ActualText was involved). -- Ulrike Fischer http://www.troubleshooting-tex.de/