Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-12-01 Thread Pavneet Arora
Just for the sake of completeness, in case someone else stumbles upon this 
thread, it should be noted that \definefontfeature needs to be set before 
\setupbodyfont, i.e.,


\definefontfeature[default][default][onum=yes]
\definefontfeature[smallcaps][smallcaps][onum=yes]
\setupbodyfont[schola,11pt]

rather than:

\setupbodyfont[schola,11pt]
\definefontfeature[default][default][onum=yes]
\definefontfeature[smallcaps][smallcaps][onum=yes]

I made the mistake of using the latter form in one of my tests and was
left wondering why things weren't working.

Regards.

On 11-11-30 04:19 PM, Wolfgang Schuster wrote:


Am 30.11.2011 um 20:19 schrieb Pavneet Arora:


Okay another anomaly:  I used the example in the FAQs to try to set the feature 
across the entire document, which is really what I want.

http://wiki.contextgarden.net/FAQ#How_can_I_get_the_.E2.80.9Coldstyle_numbers.E2.80.9D_.28text_figures.29_in_a_document.3F

In a manuscript length project, I wouldn't want to get {\os } for each local 
instance.  Now, what I have noticed was that the small caps switch, \sc, seems 
to disable old-style numerals.  Is this a typographic convention, i.e., that in 
a run of small caps one should not revert to old-style numerals?  Is there a 
way of avoiding this assumption for a larger project?  I sometimes have text 
set in small caps that as part of a project ID would have some numbers in it.  
In that case, I would like the old-style numerals to be used.


No, the answer is that smallcaps are activated with the “smcp” feature and this 
is applied to the regular style with the “smallcaps” set. To get now old style 
figures when you use smallcaps letters you need also this setup:

\definefontfeature[smallcaps][smallcaps][onum=yes]

Wolfgang


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

___
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
___


Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Pavneet Arora

Many thanks Wolfgang!

On 11-11-30 01:30 AM, Wolfgang Schuster wrote:


Am 30.11.2011 um 02:19 schrieb Pavneet Arora:


I enclose a minimal example as well as the output.  It would seem that the \os 
causes the m-dash to come out as three hyphens.  Is this the expected behavior?


Write {\os 123…}, context use a special fontfeature set (with the name 
“just-os”) for old style figure where where kerning, text ligatures etc. are 
disabled.

Wolfgang


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

___
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
___


Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Pavneet Arora
Okay another anomaly:  I used the example in the FAQs to try to set the feature 
across the entire document, which is really what I want.


http://wiki.contextgarden.net/FAQ#How_can_I_get_the_.E2.80.9Coldstyle_numbers.E2.80.9D_.28text_figures.29_in_a_document.3F

In a manuscript length project, I wouldn't want to get {\os } for each local 
instance.  Now, what I have noticed was that the small caps switch, \sc, seems 
to disable old-style numerals.  Is this a typographic convention, i.e., that in 
a run of small caps one should not revert to old-style numerals?  Is there a way 
of avoiding this assumption for a larger project?  I sometimes have text set in 
small caps that as part of a project ID would have some numbers in it.  In that 
case, I would like the old-style numerals to be used.


I again enclose a small example with output.

advTHANKSance.

On 11-11-30 01:30 AM, Wolfgang Schuster wrote:


Am 30.11.2011 um 02:19 schrieb Pavneet Arora:


I enclose a minimal example as well as the output.  It would seem that the \os 
causes the m-dash to come out as three hyphens.  Is this the expected behavior?


Write {\os 123…}, context use a special fontfeature set (with the name 
“just-os”) for old style figure where where kerning, text ligatures etc. are 
disabled.

Wolfgang


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)



test.pdf
Description: Adobe PDF document
\definefontfeature[default][default][onum=yes]

\setupbodyfont[schola]

\starttext
1234567890 A Pause---between yes and no.

{\sc 1234567890 A Pause---between yes and no.} 0987654321

\stoptext

___
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
___

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Willi Egger
Hi Pavneet,

I do not know which font/kind of font you intend to use. So provided the font 
is a otf-type the following works:

\setupbodyfont[times,rm,12pt]
\definefontfeature[oldstyle][sript=latin,onum=yes]
\starttext
\addff{oldstyle}
1234567890 A Pause---between yes and no.


1234567890 A Pause---between yes and no.
\stoptext



Willi
On 30 Nov 2011, at 20:19, Pavneet Arora wrote:

 Okay another anomaly:  I used the example in the FAQs to try to set the 
 feature across the entire document, which is really what I want.
 
 http://wiki.contextgarden.net/FAQ#How_can_I_get_the_.E2.80.9Coldstyle_numbers.E2.80.9D_.28text_figures.29_in_a_document.3F
 
 In a manuscript length project, I wouldn't want to get {\os } for each local 
 instance.  Now, what I have noticed was that the small caps switch, \sc, 
 seems to disable old-style numerals.  Is this a typographic convention, i.e., 
 that in a run of small caps one should not revert to old-style numerals?  Is 
 there a way of avoiding this assumption for a larger project?  I sometimes 
 have text set in small caps that as part of a project ID would have some 
 numbers in it.  In that case, I would like the old-style numerals to be used.
 
 I again enclose a small example with output.
 
 advTHANKSance.
 
 On 11-11-30 01:30 AM, Wolfgang Schuster wrote:
 
 Am 30.11.2011 um 02:19 schrieb Pavneet Arora:
 
 I enclose a minimal example as well as the output.  It would seem that the 
 \os causes the m-dash to come out as three hyphens.  Is this the expected 
 behavior?
 
 Write {\os 123…}, context use a special fontfeature set (with the name 
 “just-os”) for old style figure where where kerning, text ligatures etc. are 
 disabled.
 
 Wolfgang
 
 -- 
 -
 - Pavneet Arora
 
 Waroc Fine Audio + Custom Home Cinema
 www.waroc.com  416.937.WAROC (9276)
 
 test.pdftest.tex___
 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
 ___

___
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
___


Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Wolfgang Schuster

Am 30.11.2011 um 20:19 schrieb Pavneet Arora:

 Okay another anomaly:  I used the example in the FAQs to try to set the 
 feature across the entire document, which is really what I want.
 
 http://wiki.contextgarden.net/FAQ#How_can_I_get_the_.E2.80.9Coldstyle_numbers.E2.80.9D_.28text_figures.29_in_a_document.3F
 
 In a manuscript length project, I wouldn't want to get {\os } for each local 
 instance.  Now, what I have noticed was that the small caps switch, \sc, 
 seems to disable old-style numerals.  Is this a typographic convention, i.e., 
 that in a run of small caps one should not revert to old-style numerals?  Is 
 there a way of avoiding this assumption for a larger project?  I sometimes 
 have text set in small caps that as part of a project ID would have some 
 numbers in it.  In that case, I would like the old-style numerals to be used.

No, the answer is that smallcaps are activated with the “smcp” feature and this 
is applied to the regular style with the “smallcaps” set. To get now old style 
figures when you use smallcaps letters you need also this setup:

\definefontfeature[smallcaps][smallcaps][onum=yes]

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
___


Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Pavneet Arora

Works a charm, Wolfgang.  Thanks again.

On 11-11-30 04:19 PM, Wolfgang Schuster wrote:


Am 30.11.2011 um 20:19 schrieb Pavneet Arora:


Okay another anomaly:  I used the example in the FAQs to try to set the feature 
across the entire document, which is really what I want.

http://wiki.contextgarden.net/FAQ#How_can_I_get_the_.E2.80.9Coldstyle_numbers.E2.80.9D_.28text_figures.29_in_a_document.3F

In a manuscript length project, I wouldn't want to get {\os } for each local 
instance.  Now, what I have noticed was that the small caps switch, \sc, seems 
to disable old-style numerals.  Is this a typographic convention, i.e., that in 
a run of small caps one should not revert to old-style numerals?  Is there a 
way of avoiding this assumption for a larger project?  I sometimes have text 
set in small caps that as part of a project ID would have some numbers in it.  
In that case, I would like the old-style numerals to be used.


No, the answer is that smallcaps are activated with the “smcp” feature and this 
is applied to the regular style with the “smallcaps” set. To get now old style 
figures when you use smallcaps letters you need also this setup:

\definefontfeature[smallcaps][smallcaps][onum=yes]

Wolfgang


--
-
- Pavneet Arora

Waroc Fine Audio + Custom Home Cinema
www.waroc.com  416.937.WAROC (9276)

___
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
___


Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-30 Thread Hans Hagen

On 30-11-2011 22:19, Wolfgang Schuster wrote:


Am 30.11.2011 um 20:19 schrieb Pavneet Arora:


Okay another anomaly:  I used the example in the FAQs to try to set the feature 
across the entire document, which is really what I want.

http://wiki.contextgarden.net/FAQ#How_can_I_get_the_.E2.80.9Coldstyle_numbers.E2.80.9D_.28text_figures.29_in_a_document.3F

In a manuscript length project, I wouldn't want to get {\os } for each local 
instance.  Now, what I have noticed was that the small caps switch, \sc, seems 
to disable old-style numerals.  Is this a typographic convention, i..e., that 
in a run of small caps one should not revert to old-style numerals?  Is there a 
way of avoiding this assumption for a larger project?  I sometimes have text 
set in small caps that as part of a project ID would have some numbers in it.  
In that case, I would like the old-style numerals to be used.


No, the answer is that smallcaps are activated with the “smcp” feature and this 
is applied to the regular style with the “smallcaps” set. To get now old style 
figures when you use smallcaps letters you need also this setup:

\definefontfeature[smallcaps][smallcaps][onum=yes]


given that the smallcaps feature does not nil oldstyle (happens in some 
fonts)



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-29 Thread Pavneet Arora
I enclose a minimal example as well as the output.  It would seem that the \os 
causes the m-dash to come out as three hyphens.  Is this the expected behaviour?


advTHANKSance.

--
-
- Pavneet Arora



test.pdf
Description: Adobe PDF document
\starttext
1234567890 A Pause---between yes and no.

\os
1234567890 A Pause---between yes and no.
\stoptext
___
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
___

Re: [NTG-context] Why does the oldstyle numerals switch, \os, also switch off m-dashes?

2011-11-29 Thread Wolfgang Schuster

Am 30.11.2011 um 02:19 schrieb Pavneet Arora:

 I enclose a minimal example as well as the output.  It would seem that the 
 \os causes the m-dash to come out as three hyphens.  Is this the expected 
 behavior?

Write {\os 123…}, context use a special fontfeature set (with the name 
“just-os”) for old style figure where where kerning, text ligatures etc. are 
disabled.

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
___