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
The 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 H.
The Warnock font being referenced is OpenType and has the smcp feature.
I would hope this would be resolvable with both the \sc and \setff{smallcaps} macros.
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.:
- http://pragma-ade.com/general/manuals/fonts-mkiv.pdf
- http://wiki.contextgarden.net/Encodings_and_Regimes#in_LuaTeX_.28MkIV.29
- http://wiki.contextgarden.net/simplefonts
- http://wiki.contextgarden.net/Fonts_in_LuaTeX
- http://wiki.contextgarden.net/TypeScripts
- http://wiki.contextgarden.net/Featuresets
- http://wiki.contextgarden.net/Pseudo_Small_Caps
- http://watershade.net/wmcclain/context-help.html#newfont-type1-texfont
- http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf
- http://meeting.contextgarden.net/2010/talks/2010-09-15-mojca-fonts/some-thoughts-about-typescripts.pdf
- http://www.pragma-ade.com/general/manuals/mfonts.pdf