From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: [NTG-context] Re: Inconsistencies with fonts/c2sc feature
Date: Tue, 25 Jun 2024 21:27:37 +0200 [thread overview]
Message-ID: <efd259f5-f291-48d8-a61e-4849cfd18036@gmx.es> (raw)
In-Reply-To: <b49e89c0-7560-40e5-b26c-79fa2f516478@edu.surgu.ru>
On 6/25/24 19:53, Kirill Davidov wrote:
> Yeah, I too checked it out of curiosity today, and yeah, the c2sc table
> doesn't have the Latin entries. I suppose I will stick to a different
> styling or go after the caps manually/with Lua. The "always" and "auto"
> values help too, so thanks to you both!
Hi Kirill,
this font feature may work too:
\startluacode
fonts.handlers.otf.addfeature {
name = "addedsc",
type = "substitution",
data = {
A = "A.sc",
B = "B.sc",
C = "C.sc",
D = "D.sc",
E = "E.sc",
F = "F.sc",
G = "G.sc",
H = "H.sc",
I = "I.sc",
J = "J.sc",
K = "K.sc",
L = "L.sc",
M = "M.sc",
N = "N.sc",
O = "O.sc",
P = "P.sc",
Q = "Q.sc",
R = "R.sc",
S = "S.sc",
T = "T.sc",
U = "U.sc",
V = "V.sc",
W = "W.sc",
X = "X.sc",
Y = "Y.sc",
Z = "Z.sc",
},
}
\stopluacode
\definefontfeature[allsc][c2sc=yes, smcp=yes,
addedsc=yes]
But in that case, you may have c2sc and addedsc as mutually exclusive.
Just in case it might help,
Pablo
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2024-06-25 19:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-24 16:03 [NTG-context] " Kirill Davidov
2024-06-25 9:11 ` [NTG-context] " Hans Hagen via ntg-context
2024-06-25 15:35 ` Pablo Rodriguez via ntg-context
2024-06-25 17:53 ` Kirill Davidov
2024-06-25 19:27 ` Pablo Rodriguez via ntg-context [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=efd259f5-f291-48d8-a61e-4849cfd18036@gmx.es \
--to=ntg-context@ntg.nl \
--cc=oinos@gmx.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).