Re: [NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread Mika Ritola
2009/9/23 Hans Hagen pra...@wxs.nl

 Mika Ritola wrote:

 2009/9/22 Wolfgang Schuster schuster.wolfg...@googlemail.com

  Am 22.09.2009 um 12:43 schrieb Mika Ritola:

  Hello again,

 I just discovered another weird problem with small caps when using some
 fonts, e.g. Adobe Jenson Pro or Adobe Garamond Pro.

 When old-style figures are enabled, the code below generates GEOff
 instead of GEOFF. Another ligature bug, it seems -- which is strange
 because I don't see why old-style figures should affect ligatures at all
 (not that I know anything about these things), and also because the
 second
 line should disable ligatures in small caps altogether.

 \definefontfeature[smallcaps][smallcaps][liga=no]

  Did it work with this redefinition of the smallcaps feature?

 \definefontfeature[smallcaps][smallcaps][mode=node]

  With \setfontfeature{oldstyle}, I don't seem to get any small caps at
 all in
 node mode. If I replace it with the line that you suggest below, small
 caps
 seem to work well regardless of mode. So, problem solved for me. Thanks!


 does \addfontfeaturetoset{oldstyle} work?

 That seems to behave the same as \setfontfeature{oldstyle}, i.e. it
generates GEOff. And again, I don't get small caps in node mode. So far,
the only way to get small caps and old-style figures working properly
together has been to use \setmainfont[Adobe Jenson
Pro][oldstylefigures=yes], as suggested by Wolfgang.

Here's my current test file, with all the different variations commented
out:

\usemodule[simplefonts]
%\setfontfeature{oldstyle}
%\addfontfeaturetoset{oldstyle}
\definefontfeature[smallcaps][smallcaps][liga=no]
%\definefontfeature[smallcaps][smallcaps][mode=node]
%\setmainfont[Adobe Jenson Pro]
\setmainfont[Adobe Jenson Pro][oldstylefigures=yes]

\starttext
{\sc Geoff} % GEOff or GEOFF?

1954 % do old-style figures work?
\stoptext

Mika
___
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] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread Mika Ritola
2009/9/24 Mika Ritola the.thin@gmail.com

 2009/9/23 Hans Hagen pra...@wxs.nl

 Mika Ritola wrote:

 2009/9/22 Wolfgang Schuster schuster.wolfg...@googlemail.com

  Am 22.09.2009 um 12:43 schrieb Mika Ritola:

  Hello again,

 I just discovered another weird problem with small caps when using some
 fonts, e.g. Adobe Jenson Pro or Adobe Garamond Pro.

 When old-style figures are enabled, the code below generates GEOff
 instead of GEOFF. Another ligature bug, it seems -- which is strange
 because I don't see why old-style figures should affect ligatures at
 all
 (not that I know anything about these things), and also because the
 second
 line should disable ligatures in small caps altogether.

 \definefontfeature[smallcaps][smallcaps][liga=no]

  Did it work with this redefinition of the smallcaps feature?

 \definefontfeature[smallcaps][smallcaps][mode=node]

  With \setfontfeature{oldstyle}, I don't seem to get any small caps at
 all in
 node mode. If I replace it with the line that you suggest below, small
 caps
 seem to work well regardless of mode. So, problem solved for me. Thanks!


 does \addfontfeaturetoset{oldstyle} work?

 That seems to behave the same as \setfontfeature{oldstyle}, i.e. it
 generates GEOff. And again, I don't get small caps in node mode. So far,
 the only way to get small caps and old-style figures working properly
 together has been to use \setmainfont[Adobe Jenson
 Pro][oldstylefigures=yes], as suggested by Wolfgang.

 Here's my current test file, with all the different variations commented
 out:

 \usemodule[simplefonts]
 %\setfontfeature{oldstyle}
 %\addfontfeaturetoset{oldstyle}
 \definefontfeature[smallcaps][smallcaps][liga=no]
 %\definefontfeature[smallcaps][smallcaps][mode=node]
 %\setmainfont[Adobe Jenson Pro]
 \setmainfont[Adobe Jenson Pro][oldstylefigures=yes]

 \starttext
 {\sc Geoff} % GEOff or GEOFF?

 1954 % do old-style figures work?
 \stoptext


I have to reply to my own mail because I just updated simplefonts and
noticed that the latest version behaves a bit differently. The
[oldstylefigures=yes] option still works perfectly, but now both
\setfontfeature{oldstyle} and \addfontfeaturetoset{oldstyle} result in small
caps not working at all.

Mika
___
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] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread Hans Hagen

Mika Ritola wrote:


I have to reply to my own mail because I just updated simplefonts and
noticed that the latest version behaves a bit differently. The
[oldstylefigures=yes] option still works perfectly, but now both
\setfontfeature{oldstyle} and \addfontfeaturetoset{oldstyle} result in small
caps not working at all.


that's for Wolfgang to sort out then (that is: the interaction betweem 
his settings and dynamic features)


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] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread Wolfgang Schuster


Am 24.09.2009 um 14:24 schrieb Hans Hagen:


Mika Ritola wrote:


I have to reply to my own mail because I just updated simplefonts and
noticed that the latest version behaves a bit differently. The
[oldstylefigures=yes] option still works perfectly, but now both
\setfontfeature{oldstyle} and \addfontfeaturetoset{oldstyle} result  
in small

caps not working at all.


that's for Wolfgang to sort out then (that is: the interaction  
betweem his settings and dynamic features)


there is one method to get oldstyle figures with my module (which i  
showed him)
and should use, if he don't like this method the alternative is to  
define his own

fontfeatures and use them (\set...font[...][features=myfeature])

as suggested by Hans in a previous mail i enabled node mode by  
default, you can

switch back to base mode with \setupsimplefonts[mode=base]

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] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread the.thin.air
2009/9/24 Wolfgang Schuster schuster.wolfg...@googlemail.com


 Am 24.09.2009 um 14:24 schrieb Hans Hagen:

  Mika Ritola wrote:

  I have to reply to my own mail because I just updated simplefonts and
 noticed that the latest version behaves a bit differently. The
 [oldstylefigures=yes] option still works perfectly, but now both
 \setfontfeature{oldstyle} and \addfontfeaturetoset{oldstyle} result in
 small
 caps not working at all.


 that's for Wolfgang to sort out then (that is: the interaction betweem his
 settings and dynamic features)


 there is one method to get oldstyle figures with my module (which i showed
 him)
 and should use, if he don't like this method the alternative is to define
 his own
 fontfeatures and use them (\set...font[...][features=myfeature])

 I do use the method that you suggested. I only reported the problems with
the other methods because I didn't know whether the behaviour was expected
or caused by some bug that you or Hans might want to know about.

Thanks for helping,

Mika
___
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] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread Wolfgang Schuster


Am 24.09.2009 um 17:26 schrieb the.thin.air:

there is one method to get oldstyle figures with my module (which i  
showed him)
and should use, if he don't like this method the alternative is to  
define his own

fontfeatures and use them (\set...font[...][features=myfeature])

I do use the method that you suggested. I only reported the problems  
with the other methods because I didn't know whether the behaviour  
was expected or caused by some bug that you or Hans might want to  
know about.


But when you want to make sure it's a ConTeXt bug typescripts are
a better way, my module has to many other things around them and
and it's hard to tell who cause the problem.

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] Another small caps problem with some fonts (and old-style figures)

2009-09-23 Thread Mika Ritola
2009/9/22 Wolfgang Schuster schuster.wolfg...@googlemail.com


 Am 22.09.2009 um 12:43 schrieb Mika Ritola:

  Hello again,

 I just discovered another weird problem with small caps when using some
 fonts, e.g. Adobe Jenson Pro or Adobe Garamond Pro.

 When old-style figures are enabled, the code below generates GEOff
 instead of GEOFF. Another ligature bug, it seems -- which is strange
 because I don't see why old-style figures should affect ligatures at all
 (not that I know anything about these things), and also because the second
 line should disable ligatures in small caps altogether.

 \definefontfeature[smallcaps][smallcaps][liga=no]


 Did it work with this redefinition of the smallcaps feature?

 \definefontfeature[smallcaps][smallcaps][mode=node]

With \setfontfeature{oldstyle}, I don't seem to get any small caps at all in
node mode. If I replace it with the line that you suggest below, small caps
seem to work well regardless of mode. So, problem solved for me. Thanks!

 \setfontfeature{oldstyle}
 \setmainfont[Adobe Jenson Pro]


 \setmainfont[Adobe Jenson Pro][oldstylefigures=yes]


Mika
___
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] Another small caps problem with some fonts (and old-style figures)

2009-09-23 Thread Hans Hagen

Mika Ritola wrote:

2009/9/22 Wolfgang Schuster schuster.wolfg...@googlemail.com


Am 22.09.2009 um 12:43 schrieb Mika Ritola:

 Hello again,

I just discovered another weird problem with small caps when using some
fonts, e.g. Adobe Jenson Pro or Adobe Garamond Pro.

When old-style figures are enabled, the code below generates GEOff
instead of GEOFF. Another ligature bug, it seems -- which is strange
because I don't see why old-style figures should affect ligatures at all
(not that I know anything about these things), and also because the second
line should disable ligatures in small caps altogether.

\definefontfeature[smallcaps][smallcaps][liga=no]


Did it work with this redefinition of the smallcaps feature?

\definefontfeature[smallcaps][smallcaps][mode=node]


With \setfontfeature{oldstyle}, I don't seem to get any small caps at all in
node mode. If I replace it with the line that you suggest below, small caps
seem to work well regardless of mode. So, problem solved for me. Thanks!


does \addfontfeaturetoset{oldstyle} work?

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
___


[NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-22 Thread Mika Ritola
Hello again,

I just discovered another weird problem with small caps when using some
fonts, e.g. Adobe Jenson Pro or Adobe Garamond Pro.

When old-style figures are enabled, the code below generates GEOff instead
of GEOFF. Another ligature bug, it seems -- which is strange because I
don't see why old-style figures should affect ligatures at all (not that I
know anything about these things), and also because the second line should
disable ligatures in small caps altogether.

\usemodule[simplefonts]
\definefontfeature[smallcaps][smallcaps][liga=no]
\setfontfeature{oldstyle}
\setmainfont[Adobe Jenson Pro]

\starttext
{\sc Geoff}
\stoptext

I'm using the latest beta from yesterday. Again, I'd appreciate a workaround
for this, apart from disabling old-style figures.

Thanks,

Mika

P.S. Thanks to everyone who's replied to my bibliography questions. I'll get
back to it as soon as I've had time to try out the suggestions.
___
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] Another small caps problem with some fonts (and old-style figures)

2009-09-22 Thread Wolfgang Schuster


Am 22.09.2009 um 12:43 schrieb Mika Ritola:


Hello again,

I just discovered another weird problem with small caps when using  
some fonts, e.g. Adobe Jenson Pro or Adobe Garamond Pro.


When old-style figures are enabled, the code below generates GEOff  
instead of GEOFF. Another ligature bug, it seems -- which is  
strange because I don't see why old-style figures should affect  
ligatures at all (not that I know anything about these things), and  
also because the second line should disable ligatures in small caps  
altogether.


\definefontfeature[smallcaps][smallcaps][liga=no]


Did it work with this redefinition of the smallcaps feature?

\definefontfeature[smallcaps][smallcaps][mode=node]


\setfontfeature{oldstyle}
\setmainfont[Adobe Jenson Pro]


\setmainfont[Adobe Jenson Pro][oldstylefigures=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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___