ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thomas Fehige <thomas@fehige.de>
To: ntg-context@ntg.nl
Subject: uppercase, small caps, numerals and German capital sharp s
Date: Thu, 14 Apr 2016 18:22:04 +0200	[thread overview]
Message-ID: <570FC3AC.3090202@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. 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
___________________________________________________________________________________

             reply	other threads:[~2016-04-14 16:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14 16:22 Thomas Fehige [this message]
2016-04-19  7:10 Thomas Fehige
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

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=570FC3AC.3090202@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).