Hello,
I'm new to ConTeXt and this list. After a long time of using LaTeX and
xeLaTeX I was finally lured into trying ConTexT by its ability of grid
typesetting.
Today's problem is a bit complex. In a book project I have several
points where stuff is capitalized or turned into caps+smallcaps or pure
smallcaps. My guess is that that should work either with \WORD{Stuff},
\Cap{Stuff} and \cap{Stuff} or with \uppercase, \sc, and
{\sc\lowercase{Stuff}}. (Not quite, it seems)
I'll use a commercial font called Calluna, but have added Linux Biolinum
O to the example for those who don't want to download Calluna (the
"Regular" can be "bought" for free, e.g. at
https://www.fontspring.com/fonts/exljbris/calluna).
Both Calluna and Biolinum contain the glyph "LATIN CAPITAL LETTER SHARP
S" at "1E9E. I'm not sure if they contain a small or medium caps
version. I'd like to use that glyph in the capitalizations mentioned,
but it only works erratically (cf. example).
Also, Calluna comes with oldstyle numerals switched on, which is nice
for normal text, but should change to lining numbers in all-caps and to
small-cap lining numbers in all-small-cap text. I'm not sure what I'll
want in a caps+smallcaps context, but certainly not oldstyle numbers
with their descenders.
Any ideas? Thanks for reading! -- Thomas
PS: I asked the same question on stackexchange, there's also an image of
the result of my example:
http://tex.stackexchange.com/questions/302823/context-uppercase-%C3%9F-customizing-glyph-substitution
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainlanguage[de]
\language[de]
\uccode`ß="1E9E % This gives the capital ß to \uppercase
\definefontfeature[fcalluna][default][] % I tried all the font features
built
% into Calluna, to no avail.
\definefontfamily [myfamily] [serif][Calluna][features=fcalluna]
\definefontfamily [myfamily] [sans] [Linux Biolinum O][features=fcalluna]
\definefontfamily [myfamily] [mono] [TeX Gyre Cursor]
\setupbodyfont [myfamily]
\startTEXpage[offset=10pt]
\starttabulate[|l|l|l|]
\NC \it Command \NC \it Calluna \NC \it Linux Biolinum \NC\NR
\NC\type{\WORD{Gruß134}}: \NC\WORD{Gruß134} \NC
{\ss\WORD{Gruß134}} \NC\NR
\NC\type{\uppercase{Gruß134}}: \NC\uppercase{Gruß134}
\NC{\ss\uppercase{Gruß134}} \NC\NR
\NC\type{\sc{Gruß134}}: \NC{\sc Gruß134} \NC{\ss{\sc
Gruß134}} \NC\NR
\NC\type{\Cap{Gruß134}:} \NC\Cap{Gruß134} \NC{\ss
\Cap{Gruß134}} \NC\NR
\NC\type{\cap{Gruß134}:} \NC\cap{Gruß134} \NC{\ss
\cap{Gruß134}} \NC\NR
\NC\type{{\sc\lowercase{Gruß134}}:}
\NC{\sc\lowercase{Gruß134}} \NC{\ss\sc\lowercase{Gruß134}} \NC\NR
\stoptabulate
\stopTEXpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________