Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Thomas A. Schmitz


On May 11, 2009, at 4:05 AM, Corsair wrote:


Ok.  Sorry for the vagueness.  I use Adobe Caslon Pro as my body font,
with XeTeX.  And I enable the `onum' feature so that all numbers in my
document appear as old-style numbers, which is good.  But I also
prefer some of them use the normal capital number glyphs, for example,
in page numbers.  How can I do that?


Not sure if this is the canonical way, but here's how I do it: If I  
have onum=yes enabled for my normal Roman font, I disable it for my  
smallcaps variant and set page numbers etc as \sc. Or am I  
misunderstanding something?


Thomas
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Wolfgang Schuster


Am 10.05.2009 um 18:25 schrieb Corsair:


Hi all,

I have `onum=yes' in my font features and it works great.  But how can
I type a capital number in this case?  I want to use capital numbers
in pagenumbers.


Something like (untested):

\definefontfeature[header][default][lnum=yes]

\definefont[HeaderStyle][Serif][features=header]

\setupheader[style=HeaderStyle]

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Henning Hraban Ramm

Am 2009-05-11 um 08:13 schrieb Thomas A. Schmitz:

Ok.  Sorry for the vagueness.  I use Adobe Caslon Pro as my body  
font,
with XeTeX.  And I enable the `onum' feature so that all numbers in  
my

document appear as old-style numbers, which is good.  But I also
prefer some of them use the normal capital number glyphs, for  
example,

in page numbers.  How can I do that?


Not sure if this is the canonical way, but here's how I do it: If I  
have onum=yes enabled for my normal Roman font, I disable it for my  
smallcaps variant and set page numbers etc as \sc. Or am I  
misunderstanding something?


Similarly you could define an additional variant, like noos.
http://wiki.contextgarden.net/Font_Variants

(Didn't check if font variants work ok in MkIV; I used them only for  
light and medium weights before.)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Corsair
On Mon, May 11, 2009 at 08:13:59AM +0200, Thomas A. Schmitz wrote:
 Not sure if this is the canonical way, but here's how I do it: If I  
 have onum=yes enabled for my normal Roman font, I disable it for my  
 smallcaps variant and set page numbers etc as \sc. Or am I  
 misunderstanding something?

Thanks you for the reply!  But it doesn't work for me, because small
cap numbers in Adobe Caslon Pro are themselves old-style...

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.


pgpUFSMTu0X9O.pgp
Description: PGP signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Thomas A. Schmitz


On May 11, 2009, at 8:39 AM, Corsair wrote:


Thanks you for the reply!  But it doesn't work for me, because small
cap numbers in Adobe Caslon Pro are themselves old-style...


I don't use XeTeX, but this works in mkiv:

\definefontfeature
  [mydefault]
   
[mode 
= 
node 
,script=latn,language=dflt,liga=yes,onum=yes,kern=yes,tlig=yes,trep=yes]


\definefontfeature
  [mycaps]
   
[mode 
=node,script=latn,language=dflt,liga=yes,lnum=yes,kern=yes,smcp=yes]


\starttypescript [serif] [caslon]
  \definefontsynonym [Caslon-Roman]   
[name:acaslonproregular]  [features=mydefault]
  \definefontsynonym [Caslon-Bold]   [name:acaslonprobold]   
[features=mydefault]
  \definefontsynonym [Caslon-Italic] [name:acaslonproitalic]   
[features=mydefault]
  \definefontsynonym [Caslon-Bold-Italic] 
[name:acaslonprobolditalic] [features=mydefault]
  \definefontsynonym [Caslon-SmallCaps]   
[name:acaslonproregular]  [features=mycaps]

 \stoptypescript

\starttypescript [serif] [caslon]
  \definefontsynonym [Serif]   [Caslon-Roman]  
[features=mydefault]
  \definefontsynonym [SerifItalic] [Caslon-Italic]  
[features=mydefault]
  \definefontsynonym [SerifBold]   [Caslon-Bold]  
[features=mydefault]
  \definefontsynonym [SerifBoldItalic] [Caslon-Bold-Italic]  
[features=mydefault]
  \definefontsynonym [SerifCaps]   [Caslon-SmallCaps]  
[features=mycaps]

\stoptypescript

\starttypescript [Caslon]
  \definetypeface [Caslon] [rm] [serif] [caslon] [default]
\stoptypescript

\usetypescript[Caslon]
\setupbodyfont[Caslon,12pt]

\starttext

These are oldstyle: 1 2 3 4 5 6 7 8 9 0

{\sc These are not: 1 2 3 4 5 6 7 8 9 0}

\stoptext

HTH

Thomas
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Corsair
On Mon, May 11, 2009 at 08:35:12AM +0200, Wolfgang Schuster wrote:
 
 Am 10.05.2009 um 18:25 schrieb Corsair:
 
  Hi all,
 
  I have `onum=yes' in my font features and it works great.  But how can
  I type a capital number in this case?  I want to use capital numbers
  in pagenumbers.
 
 Something like (untested):
 
 \definefontfeature[header][default][lnum=yes]
 
 \definefont[HeaderStyle][Serif][features=header]
 
 \setupheader[style=HeaderStyle]

This works great!  Thanks!

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.


pgptTK0UoFvWr.pgp
Description: PGP signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Corsair
On Mon, May 11, 2009 at 08:37:46AM +0200, Henning Hraban Ramm wrote:
 Am 2009-05-11 um 08:13 schrieb Thomas A. Schmitz:
 
  Ok.  Sorry for the vagueness.  I use Adobe Caslon Pro as my body  
  font,
  with XeTeX.  And I enable the `onum' feature so that all numbers in  
  my
  document appear as old-style numbers, which is good.  But I also
  prefer some of them use the normal capital number glyphs, for  
  example,
  in page numbers.  How can I do that?
 
  Not sure if this is the canonical way, but here's how I do it: If I  
  have onum=yes enabled for my normal Roman font, I disable it for my  
  smallcaps variant and set page numbers etc as \sc. Or am I  
  misunderstanding something?
 
 Similarly you could define an additional variant, like noos.
 http://wiki.contextgarden.net/Font_Variants
 
 (Didn't check if font variants work ok in MkIV; I used them only for  
 light and medium weights before.)
 
Wow, I didn't know about this one.  I'll see what I can do with it.

Thank you!

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.


pgpXYyrAnk6Da.pgp
Description: PGP signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Hans Hagen

Corsair wrote:

On Sun, May 10, 2009 at 09:44:58PM +0200, Hans Hagen wrote:

Corsair wrote:

Hi all,

I have `onum=yes' in my font features and it works great.  But how can
I type a capital number in this case?  I want to use capital numbers
in pagenumbers.

can you be a bit more explicit?

to what extend smallcaps are implemented is font dependent


Ok.  Sorry for the vagueness.  I use Adobe Caslon Pro as my body font,
with XeTeX.  And I enable the `onum' feature so that all numbers in my
document appear as old-style numbers, which is good.  But I also
prefer some of them use the normal capital number glyphs, for example,
in page numbers.  How can I do that?


you can try {\subff{oldstyle} 123} (this is kind of experimental and in 
testing by idris)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Corsair
On Mon, May 11, 2009 at 08:37:46AM +0200, Henning Hraban Ramm wrote:
 Similarly you could define an additional variant, like noos.
 http://wiki.contextgarden.net/Font_Variants
 
 (Didn't check if font variants work ok in MkIV; I used them only for  
 light and medium weights before.)

I tried this approach and failed.  I compiled the following code with
texexec --xtx, and the resulting PDF contained nothing except an
old-style page number...  Any idea?

# --- ConTeXt code ---
\definefontfeature [old] [onum=yes]
\definefontfeature [noos] [onum=no]
\definefontfeature [smcap] [smcp=yes]

\starttypescript [serif] [caslon]
   \definefontsynonym [Caslon-Roman][file:ACaslonPro-Regular]  
[features=old]
   \definefontsynonym [Caslon-Roman-NoOs]  [file:ACaslonPro-Regular]  
[features=noos]
   \definefontsynonym [Caslon-Bold]   [file:ACaslonPro-Bold]   
[features=old]
   \definefontsynonym [Caslon-Italic] [file:ACaslonPro-Italic]  
[features=old]
   \definefontsynonym [Caslon-Bold-Italic][file:ACaslonPro-BoldItalic] 
[features=old]
   \definefontsynonym [Caslon-SmallCaps]  [file:ACaslonPro-Regular]  
[features=smcap]
  \stoptypescript

\starttypescript [serif] [caslon] [name]
   \definefontsynonym [Serif]   [Caslon-Roman]
   \definefontsynonym [SerifItalic] [Caslon-Italic]  
   \definefontsynonym [SerifBold]   [Caslon-Bold]
   \definefontsynonym [SerifBoldItalic] [Caslon-Bold-Italic]  
   \definefontsynonym [SerifCaps]   [Caslon-SmallCaps]

   \definefontvariant [Serif][noos][NoOs]

   \definefontsynonym [SerifRegular]   [Serif]
   \definefontsynonym [SerifRegularNoOs]   [Caslon-Roman-NoOs]  
   \definefontsynonym [SerifItalicNoOs] [Caslon-Italic]  
   \definefontsynonym [SerifBoldNoOs]   [Caslon-Bold]
   \definefontsynonym [SerifBoldItalicNoOs] [Caslon-Bold-Italic]  
\stoptypescript

\usetypescript[caslon]

\starttypescript [prof]
  \definetypeface [prof] [rm] [serif] [caslon] [default]
\stoptypescript

\usetypescript[prof]
\setupbodyfont[prof, 12pt]

\starttext
{\Var[noos] 1234567890}
\stoptext

# --- End of ConTeXt code---

%%% Local Variables: 
%%% mode: context
%%% TeX-PDF-mode: t
%%% End: 


-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.


pgpIhVDZK9yUP.pgp
Description: PGP signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Corsair
On Mon, May 11, 2009 at 09:28:27AM +0200, Hans Hagen wrote:
 you can try {\subff{oldstyle} 123} (this is kind of experimental and in 
 testing by idris)

Oops...  Doesn't work.  It just produces the word oldstyle followed
by 123.  Maybe my ConTeXt is too old?

ConTeXt  ver: 2008.05.21 15:21 MKII  fmt: 2008.10.29

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.


pgp5OYVPzp7ug.pgp
Description: PGP signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Hans Hagen

Corsair wrote:

On Mon, May 11, 2009 at 09:28:27AM +0200, Hans Hagen wrote:
you can try {\subff{oldstyle} 123} (this is kind of experimental and in 
testing by idris)


Oops...  Doesn't work.  It just produces the word oldstyle followed
by 123.  Maybe my ConTeXt is too old?

ConTeXt  ver: 2008.05.21 15:21 MKII  fmt: 2008.10.29


indeed ... very ancient esp with respect to otf (also, \setff only work 
in mkiv)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-11 Thread Wolfgang Schuster


Am 11.05.2009 um 09:40 schrieb Corsair:


On Mon, May 11, 2009 at 09:28:27AM +0200, Hans Hagen wrote:
you can try {\subff{oldstyle} 123} (this is kind of experimental  
and in

testing by idris)


Oops...  Doesn't work.  It just produces the word oldstyle followed
by 123.  Maybe my ConTeXt is too old?


No, it works only in MkIV.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-10 Thread Hans Hagen

Corsair wrote:

Hi all,

I have `onum=yes' in my font features and it works great.  But how can
I type a capital number in this case?  I want to use capital numbers
in pagenumbers.


can you be a bit more explicit?

to what extend smallcaps are implemented is font dependent



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-10 Thread Corsair
On Sun, May 10, 2009 at 09:44:58PM +0200, Hans Hagen wrote:
 Corsair wrote:
  Hi all,
  
  I have `onum=yes' in my font features and it works great.  But how can
  I type a capital number in this case?  I want to use capital numbers
  in pagenumbers.
 
 can you be a bit more explicit?
 
 to what extend smallcaps are implemented is font dependent

Ok.  Sorry for the vagueness.  I use Adobe Caslon Pro as my body font,
with XeTeX.  And I enable the `onum' feature so that all numbers in my
document appear as old-style numbers, which is good.  But I also
prefer some of them use the normal capital number glyphs, for example,
in page numbers.  How can I do that?

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.


pgpOtl2Tqe55f.pgp
Description: PGP signature
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___