On 2/14/2025 2:19 AM, Gerion Entrup wrote:
Hi,
I recently learned that Typst seems to be able to produce PDFs where a
hyphenated text can be copied without the hyphenation (so all words in the
copied text are not hyphenated).
I seem to recall that the PDF format has an extra mode for this, where the
creation program can embed some text that should only appear when copied and
replace the word parts that are visible on the page.
ConTeXt, in it's default mode, seems not to embed this text. When copying
hyphenated words, the hyphenated word parts appear as distinct words (even
without the hyphen). Is there a way to tell ConTeXt to produce PDF where the
text can be copied without hyphenated words?
This is a fuzzy area and has always depended on how pdf viewers see
things. The standard has some suggestions and oenm is to use soft
hyphens which is what we do (can be turned off). From your description
it looks like actual text is used and in this case, although one can
make that work, to me it is not a solution, it not only polutes the page
stream, it also can interferes with other features and increases overhead.
When a viewer sees aoft hyphen it is assumed that it looks for the next
part of the word. Afaik acrobat reader can handle both variants. The
other (open source) viewers that I use are a mixed bag (in areas like
these).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________