ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* uppercase, small caps, numerals and German capital sharp s
@ 2016-04-14 16:22 Thomas Fehige
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Fehige @ 2016-04-14 16:22 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. 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
___________________________________________________________________________________

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

* Re: uppercase, small caps, numerals and German capital sharp s
  2016-04-20 14:25     ` Wolfgang Schuster
  2016-04-20 21:25       ` Thomas Fehige
@ 2016-04-20 21:27       ` Thomas Fehige
  1 sibling, 0 replies; 8+ messages in thread
From: Thomas Fehige @ 2016-04-20 21:27 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1590 bytes --]

Thanks for the clarification, Wolfgang.

Am 20.04.2016 um 16:25 schrieb Wolfgang Schuster:
> [...]
>> I was looking for a general way how to substitute one glyph with 
>> another depending on context, thus I can't see how there are 
>> different problems in my post? But it's good to hear that others have 
>> thought at least of a partial solution.
>>
>> Is my guess right that normally the author of a font ought to provide 
>> otf features that can be switched on and off to get one result 
>> instead of the other? That area seems to be utter chaos in the 
>> Calluna fonts.
> The output of \sc to produce small capitals depends on the font and 
> it’s the font designers job to provide a small ẞ (he could use 
> stilistic sets to let you choose between ß and ẞ).

Well, there's the problem, I think. Jos Buivenga, aka exljbris, 
Calluna's font designer, has done a superb job on the graphics (in my 
eyes), but his stylistic sets or otf features seem to be full of holes, 
as far as I understand them, which is perhaps not very far.

What I'm looking for is a way on the TeX, LuaTeX or ConTeXt level to 
define "environments" ('scuse my LaTeX slang) within which certain glyph 
substitutions happen. Then I could kind of redefine a thing like \sc to 
use the smallcaps ß and switch to smallcaps lining figures, if 
available, or, otherwise, scaled-down uppercase lining figures. I have 
still other fish to fry in this context, but a general hint where to 
look for something like this would be helpful.

Thanks a lot so far -- Thomas






[-- Attachment #1.2: Type: text/html, Size: 2381 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: uppercase, small caps, numerals and German capital sharp s
  2016-04-20 14:25     ` Wolfgang Schuster
@ 2016-04-20 21:25       ` Thomas Fehige
  2016-04-20 21:27       ` Thomas Fehige
  1 sibling, 0 replies; 8+ messages in thread
From: Thomas Fehige @ 2016-04-20 21:25 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1590 bytes --]

Thanks for the clarification, Wolfgang.

Am 20.04.2016 um 16:25 schrieb Wolfgang Schuster:
> [...]
>> I was looking for a general way how to substitute one glyph with 
>> another depending on context, thus I can't see how there are 
>> different problems in my post? But it's good to hear that others have 
>> thought at least of a partial solution.
>>
>> Is my guess right that normally the author of a font ought to provide 
>> otf features that can be switched on and off to get one result 
>> instead of the other? That area seems to be utter chaos in the 
>> Calluna fonts.
> The output of \sc to produce small capitals depends on the font and 
> it’s the font designers job to provide a small ẞ (he could use 
> stilistic sets to let you choose between ß and ẞ).

Well, there's the problem, I think. Jos Buivenga, aka exljbris, 
Calluna's font designer, has done a superb job on the graphics (in my 
eyes), but his stylistic sets or otf features seem to be full of holes, 
as far as I understand them, which is perhaps not very far.

What I'm looking for is a way on the TeX, LuaTeX or ConTeXt level to 
define "environments" ('scuse my LaTeX slang) within which certain glyph 
substitutions happen. Then I could kind of redefine a thing like \sc to 
use the smallcaps ß and switch to smallcaps lining figures, if 
available, or, otherwise, scaled-down uppercase lining figures. I have 
still other fish to fry in this context, but a general hint where to 
look for something like this would be helpful.

Thanks a lot so far -- Thomas






[-- Attachment #1.2: Type: text/html, Size: 2388 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: uppercase, small caps, numerals and German capital sharp s
  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
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2016-04-20 14:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1354 bytes --]

> Thomas Fehige <mailto:thomas@fehige.de>
> 20. April 2016 um 16:03
> Wolfgang,
>> Use separate threads for each problem. The uppercase sharp s 
>> replacement with \WORD can be changed in the next beta.
>>
>> %% begin example
> are you saying, use this example as long as the new beta isn't out 
> yet, or are you saying, this example will work as soon as I'll use the 
> new beta? It doesn't seem to do anything right now, not even an error 
> message.
It’s a new feature which will work with the next beta.

With \enabledirectives[fonts.uppercasesharps] you tell context to 
convert ß to ẞ (instead of SS) when you use \WORD to capitalize a string.
> I was looking for a general way how to substitute one glyph with 
> another depending on context, thus I can't see how there are different 
> problems in my post? But it's good to hear that others have thought at 
> least of a partial solution.
>
> Is my guess right that normally the author of a font ought to provide 
> otf features that can be switched on and off to get one result instead 
> of the other? That area seems to be utter chaos in the Calluna fonts.
The output of \sc to produce small capitals depends on the font and it’s 
the font designers job to provide a small ẞ (he could use stilistic sets 
to let you choose between ß and ẞ).

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2761 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: uppercase, small caps, numerals and German capital sharp s
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Thomas Fehige @ 2016-04-20 14:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3447 bytes --]

Wolfgang,
> Use separate threads for each problem. The uppercase sharp s 
> replacement with \WORD can be changed in the next beta.
>
> %% begin example
are you saying, use this example as long as the new beta isn't out yet, 
or are you saying, this example will work as soon as I'll use the new 
beta? It doesn't seem to do anything right now, not even an error message.

I was looking for a general way how to substitute one glyph with another 
depending on context, thus I can't see how there are different problems 
in my post? But it's good to hear that others have thought at least of a 
partial solution.

Is my guess right that normally the author of a font ought to provide 
otf features that can be switched on and off to get one result instead 
of the other? That area seems to be utter chaos in the Calluna fonts.

Cheers -- Thomas

Am 19.04.2016 um 14:05 schrieb Wolfgang Schuster:
>> Thomas Fehige <mailto:thomas@fehige.de>
>> 19. April 2016 um 09:10
>> 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.
> Use separate threads for each problem. The uppercase sharp s 
> replacement with \WORD can be changed in the next beta.
>
> %% begin example
> \usemodule[lingual-de]
>
> \setupbodyfont[libertine]
>
> \starttext
>
> Gruß Straße Buße
>
> \WORD{Gruß Straße Buße}
>
> \enabledirectives[fonts.uppercasesharps]
>
> \WORD{Gruß Straße Buße}
>
> \disabledirectives[fonts.uppercasesharps]
>
> \WORD{Gruß Straße Buße}
>
> \stoptext
> %% end example
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 6167 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: uppercase, small caps, numerals and German capital sharp s
  2016-04-19 12:05 ` Wolfgang Schuster
@ 2016-04-19 12:46   ` Thomas Fehige
  2016-04-20 14:03   ` Thomas Fehige
  1 sibling, 0 replies; 8+ messages in thread
From: Thomas Fehige @ 2016-04-19 12:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3451 bytes --]

Wolfgang,
> Use separate threads for each problem. The uppercase sharp s 
> replacement with \WORD can be changed in the next beta.
>
> %% begin example
are you saying, use this example as long as the new beta isn't out yet, 
or are you saying, this example will work as soon as I'll use the new 
beta? It doesn't seem to do anything right now, not even an error message.

I was looking for a general way how to substitute one glyph with another 
depending on context, thus I can't see how there are different problems 
in my post? But it's good to hear that others have thought at least of a 
partial solution.

Is my guess right that normally the author of a font ought to provide 
otf features that can be switched on and off to get one result instead 
of the other? That area seems to be utter chaos in the Calluna fonts.

Cheers -- Thomas

Am 19.04.2016 um 14:05 schrieb Wolfgang Schuster:
>> Thomas Fehige <mailto:thomas@fehige.de>
>> 19. April 2016 um 09:10
>> 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.
> Use separate threads for each problem. The uppercase sharp s 
> replacement with \WORD can be changed in the next beta.
>
> %% begin example
> \usemodule[lingual-de]
>
> \setupbodyfont[libertine]
>
> \starttext
>
> Gruß Straße Buße
>
> \WORD{Gruß Straße Buße}
>
> \enabledirectives[fonts.uppercasesharps]
>
> \WORD{Gruß Straße Buße}
>
> \disabledirectives[fonts.uppercasesharps]
>
> \WORD{Gruß Straße Buße}
>
> \stoptext
> %% end example
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 6207 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* Re: uppercase, small caps, numerals and German capital sharp s
  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
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2016-04-19 12:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1943 bytes --]

> Thomas Fehige <mailto:thomas@fehige.de>
> 19. April 2016 um 09:10
> 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.
Use separate threads for each problem. The uppercase sharp s replacement 
with \WORD can be changed in the next beta.

%% begin example
\usemodule[lingual-de]

\setupbodyfont[libertine]

\starttext

Gruß Straße Buße

\WORD{Gruß Straße Buße}

\enabledirectives[fonts.uppercasesharps]

\WORD{Gruß Straße Buße}

\disabledirectives[fonts.uppercasesharps]

\WORD{Gruß Straße Buße}

\stoptext
%% end example

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3099 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 8+ messages in thread

* 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; 8+ 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] 8+ messages in thread

end of thread, other threads:[~2016-04-20 21:27 UTC | newest]

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

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