ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unifraktur Maguntia features
@ 2018-11-12 15:41 Willi Egger
  2018-11-12 16:31 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Willi Egger @ 2018-11-12 15:41 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

Hi all,

is there somebody among the ConTeXt users, who has experience with the font UnifrakturMaguntja (http://unifraktur.sourceforge.net/maguntia.html#)?

I tried all kind of approaches to get the font switching between lnum, tnum pnum and onum. — I come to the conclusion that I am unable to subtract and add features. I appreciate any help.

Please refer to the appended tex file.

Kind regards

willi

[-- Attachment #2: test-font-maguntia.tex --]
[-- Type: application/octet-stream, Size: 1970 bytes --]

% Context-file
% filename: test-font-aguntia.tex

\mainlanguage[de]

\setuplanguage
  [de]
  [righthyphenchar=173]
	
\definefontfeature
	[maguntia]
	[mode=auto,script=latn,pnum=no,onum=no,lnum=yes]

\definefontfeature[onum][pnum=yes]
\definefontfeature[pnum][pnum=yes]
\definefontfeature[tnum][tnum=yes]
\definefontfeature[lnum][lnum=yes]

\starttypescript[calligraphy][maguntia]
	\definefontsynonym [maguntia][file:UnifrakturMaguntia][features=maguntia]
\stoptypescript

\starttypescript[maguntia]
	\definetypeface[\typescriptone][cg][calligraphy] [\typescriptone][default]
	\definetypeface[\typescriptone][ss][sans]        [heros]   [default]
	\definetypeface[\typescriptone][rm][serif]       [pagella] [default]
	\definetypeface[\typescriptone][mm][math]        [pagella] [default]
	\definetypeface[\typescriptone][tt][mono]        [cursor]  [default]
\stoptypescript

\setupbodyfont[maguntia,cg,10pt]

\subtractfeature[onum]
\subtractfeature[pnum]

\startbuffer[ruledhboxed]
\ruledhbox{1234567890}
\stopbuffer

\startbuffer[Sample]

	\subtractfeature[onum]
	\subtractfeature[pnum]
	\subtractfeature[lnum]
	\subtractfeature[tnum]
	
	\startsubject[title=\fontname\font]

	pnum=no,onum=no,lnum=no,tnum=no
	
	1234567890
	
	1+2=3
	
	\starttabulate[|lw(3.5cm)|p|]
	\NC 
		\rm pnum=yes,onum=yes 
	\NC
		\subtractfeature[lnum]
		\addfeature[pnum]
		\addfeature[onum]
		\getbuffer[ruledhboxed]
		\subtractfeature[onum]
	\NC\NR
	\NC 
		\rm pnum=yes,lnum=yes
	\NC
		\addfeature[lnum]
		\getbuffer[ruledhboxed]
		\subtractfeature[lnum]
		\subtractfeature[pnum]
	\NC\NR
	\NC
		\rm tnum=yes,onum=yes
	\NC
		\addfeature[tnum]
		\addfeature[onum]
		\getbuffer[ruledhboxed]
		\subtractfeature[onum]
	\NC\NR
	\NC
		\rm tnum=yes,lnum=yes
	\NC
		\addfeature[lnum]
		\getbuffer[ruledhboxed]
		\subtractfeature[lnum]
		\subtractfeature[tnum]
		\addfeature[pnum]
		\addfeature[onum]
	\NC\NR
	\stoptabulate
	
	1234567890
	\stopsubject
\stopbuffer

\starttext

	\getbuffer[Sample]

\stoptext

[-- Attachment #3: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Unifraktur Maguntia features
  2018-11-12 15:41 Unifraktur Maguntia features Willi Egger
@ 2018-11-12 16:31 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2018-11-12 16:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Willi Egger


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

Hi Willi,

To be save you should make a combination of the onum/lnum and pnum/tnum 
features.

\definefontfamily [unifraktur] [rm] [Unifraktur Maguntia]
\definefontfamily [unifraktur] [tt] [Latin Modern Mono]

\setupbodyfont [unifraktur]

\definefontfeature [onum+pnum] [onum=yes,pnum=yes]
\definefontfeature [onum+tnum] [onum=yes,tnum=yes]
\definefontfeature [lnum+pnum] [lnum=yes,pnum=yes]
\definefontfeature [lnum+tnum] [lnum=yes,tnum=yes]

\starttext

Unifraktur Maguntia

\starttabulate[|lT|l|]
\NC default     \NC 1234                       \NC\NR
\NC onum + pnum \NC \feature[+][onum+pnum]1234 \NC\NR
\NC onum + tnum \NC \feature[+][onum+tnum]1234 \NC\NR
\NC lnum + pnum \NC \feature[+][lnum+pnum]1234 \NC\NR
\NC lnum + tnum \NC \feature[+][lnum+tnum]1234 \NC\NR
\stoptabulate

\stoptext

Wolfgang


Willi Egger schrieb am 12.11.18 um 16:41:
> Hi all,
>
> is there somebody among the ConTeXt users, who has experience with the font UnifrakturMaguntja (http://unifraktur.sourceforge.net/maguntia.html#)?
>
> I tried all kind of approaches to get the font switching between lnum, tnum pnum and onum. — I come to the conclusion that I am unable to subtract and add features. I appreciate any help.
>
> Please refer to the appended tex file.
>
> Kind regards
>
> willi
>
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2018-11-12 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12 15:41 Unifraktur Maguntia features Willi Egger
2018-11-12 16:31 ` Wolfgang Schuster

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