ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* uppercase, small caps, numerals and German capital sharp s
@ 2016-04-19  7:10 Thomas Fehige
  2016-04-19 12:05 ` Wolfgang Schuster
  0 siblings, 1 reply; 42+ messages in thread
From: Thomas Fehige @ 2016-04-19  7:10 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2016-05-19 16:15 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-19  7:10 uppercase, small caps, numerals and German capital sharp s 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
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

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).