I am trying to typeset some text with small caps in ConTeXt (mkiv — version 2015.05.18 12:26), and have that text available for copy–and–paste.
Here's a minimum problematic setup:
% !TEX encoding = UTF-8 Unicode % !TEX TS-program = ConTeXt (LuaTeX) \usemodule[simplefonts] \setmainfont[Warnock Pro] \starttext \sc Hello. \stoptext
ello portion will not copy and paste as expected (at least, apparently, on Mac and Windows, but I presume this is a system-agnostic problem). What is copied appears as
The Warnock font being referenced is OpenType and has the
I would hope this would be resolvable with both the
In addition to the manuals, there are a number of seemingly applicable resources on ConTeXtGarden, but the parts I have read and various attempts I have made, have not revealed the underlying cause nor indicated the appropriate path to a solution or workaround.
What seems to be the most popular on-topic question on this site, Small-caps, old-style numbers, and some ligatures produce odd symbols in PDF copy text?, suggests that by using LuaTeX one works around problems with XeLaTeX, but it is not clear how to replicate the result in ConTeXt.
For ease of reference, see e.g.: