From: Thomas Fehige <thomas@fehige.de>
To: ntg-context@ntg.nl
Subject: uppercase, small caps, numerals and German capital sharp s
Date: Tue, 19 Apr 2016 09:10:13 +0200 [thread overview]
Message-ID: <5715D9D5.5000403@fehige.de> (raw)
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. Calluna also has a small caps version at "F727", while
Biolinum has it at "E092. I'd like to use these glyphs in the
capitalizations mentioned, but that only works erratically (cf. example).
Secondly, Calluna comes with oldstyle numerals switched on, which is
nice for normal text, but should change to proportional lining numbers
in uppercase and to small-cap proportional lining numbers in an
all-small-cap text. I'm not sure what I'd want in a caps+smallcaps
context, but certainly not oldstyle numerals with their descenders.
Any hints and 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
___________________________________________________________________________________
next reply other threads:[~2016-04-19 7:10 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-19 7:10 Thomas Fehige [this message]
2016-04-19 12:05 ` Wolfgang Schuster
2016-04-19 12:46 ` Thomas Fehige
2016-04-20 14:03 ` Thomas Fehige
2016-04-20 14:25 ` Wolfgang Schuster
2016-04-20 21:25 ` Thomas Fehige
2016-04-20 21:27 ` Thomas Fehige
2016-04-22 11:35 ` glyph substitution Thomas Fehige
2016-04-22 20:28 ` Hans Hagen
2016-04-25 9:53 ` Thomas Fehige
2016-04-25 12:48 ` Thomas Fehige
2016-04-25 15:49 ` Thomas Fehige
2016-04-25 18:12 ` Thomas Fehige
2016-04-25 20:44 ` Wolfgang Schuster
2016-04-26 8:42 ` Thomas Fehige
2016-04-27 14:27 ` Thomas Fehige
2016-04-27 15:10 ` Hans Hagen
2016-04-29 7:44 ` Thomas Fehige
2016-04-29 7:56 ` Hans Hagen
2016-04-29 8:38 ` Test Suite Fonts "extensions-001" Thomas Fehige
2016-04-29 9:05 ` Wolfgang Schuster
2016-05-03 9:22 ` Setting up TeXworks Thomas Fehige
2016-05-06 8:04 ` Mojca Miklavec
2016-05-06 11:39 ` L.S.-Soc&Gam
2016-05-16 15:46 ` Thomas Fehige
2016-05-16 15:55 ` Jean-Pierre Delange
2016-05-17 11:16 ` Thomas Fehige
2016-05-17 12:39 ` Thomas Fehige
2016-05-17 12:59 ` Hans Hagen
2016-05-19 14:09 ` Thomas Fehige
2016-05-17 13:22 ` Jean-Pierre Delange
2016-05-19 15:16 ` Thomas Fehige
2016-05-19 16:15 ` Jean-Pierre Delange
2016-05-07 10:49 ` Thomas Fehige
2016-05-09 11:02 ` Thomas Fehige
2016-05-15 19:29 ` Thomas Fehige
2016-05-16 14:34 ` ConTeXt and Scite Thomas Fehige
2016-05-03 9:51 ` Setting up TeXworks Thomas Fehige
2016-05-03 10:21 ` Mojca Miklavec
2016-05-03 13:01 ` Thomas Fehige
2016-04-25 20:47 ` glyph substitution Wolfgang Schuster
2016-04-26 7:42 ` Thomas Fehige
-- strict thread matches above, loose matches on Subject: below --
2016-04-14 16:22 uppercase, small caps, numerals and German capital sharp s Thomas Fehige
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=5715D9D5.5000403@fehige.de \
--to=thomas@fehige.de \
--cc=ntg-context@ntg.nl \
/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).