This is partially answered by other questions which the TeX search found for me, but not in a comprehensive manner.
I am a writer, not a mathematican or academic. I write fiction. So, my needs are only a subset of what TeX has to offer. I've already mastered what I need to know with pdfLaTeX and microtype. I can create and edit fonts, am licensed for a number of commerical fonts (such as Adobe Garamond Pro), and post-process the resulting PDF using Acrobat Pro.
Until now, I decomposed OpenType fonts into Type 1 with LY1 encoding, so that pdfLaTeX could understand them. Different OpenType style sets were decomposed to different fonts, which I called separately, each time I needed a particular style set. So far, so good. Understand that I do not use any of the TeX fonts, in any format.
Now I am trying to use LuaLaTeX to directly read OpenType fonts. The non-working features of microtype won't be a problem, as the working features in LuaLaTeX suffice for my needs. I already have LuaLaTeX working with a simple, sample document that uses an OpenType font but not any OpenType features.
I'll be darned if I can figure out how to select OpenType features. I've looked through available docs, and online here, for examples. What I've seen are some code examples that select a feature by common name, rather than by the 4-character style set designation. Example:
Numbers={OldStyle,Proportional},
But most style sets do not have a common name. So, what I do I do?
I'm looking for something like this (pseudo-code):
In the preamble:
\newcommand\useThisStyleSet[3]{opentype font name}{4-character style code}{string to be styled}
\newcommand\myStyle[1]{\useThisStyleSet{Adobe Garamond Pro}{c2sc}{$1}}
\newcommand\myOtherStyle[1]{\useThisStyleSet{Adobe Caslon Pro}{ss03}{$1}}
\newcommand\myNextStyle[1]{\useThisStyleSet{Source Sans Pro}{loca}{$1}}
In the document body:
\myStyle{The quality} of mercy \myOtherStyle{is not} \myNextStyle{strained.}
fontspec
's manual, but it isn't clear to me whether that's what you mean by a 'style set' or not. – cfr Apr 14 '16 at 23:08fontspec
options. For the others, you have to use the raw feature code, as you say. But I don't see why this is a problem. You don't say why you can't do this. Have you tried reading the manual? – cfr Apr 15 '16 at 0:24