Wolfgang Schuster wrote:
2007/12/6, Steffen Wolfrum
: Am 06.12.2007 um 15:37 schrieb Wolfgang Schuster:
2007/12/6, Steffen Wolfrum
: Am 06.12.2007 um 14:48 schrieb Hans Hagen:
something numbers=oldstyle could be supported but i see no real reason for it since then we end up in endless lists of possibilities (given all kind of combinations) I have not yet played with Lua, thus I can't follow your and Mojca's discussion at that point. But to have a handy way to switch on/off oldstyle figures would be very useful!
"numbers=oldstyle" shouldn't be considered as a theoretical possibility, it is needed quite often.
Steffen The following should work, can't test it at the moment
\definefontfeature[enableoldstyle][onum=yes] \definefontfeature[disableoldstyle][onum=no]
\starttext
123 \setfontfeature{enableoldstyle} 456 \setfontfeature {disableoldstyle} 789
\stoptext
you mean typeset with Lua, right? with XeTeX it yields
! Undefined control sequence. l.20 \setfontfeature!
This is a new feature introduced only for LuaTeX, not XeTeX and allows you to choose a different fontfeature in your document.
Could be used overwrite the defaults for \os and \sc.
\def\os{\setfonrfeature{oldstyle}} \def\sc{\setfonrfeature{smallscaps}}
if you set auto=yes, this mechanism also adapts itself to the language, which for instance for palatino-nova means that in german one does not get an ij lig but in dutch it magically shows up (or ae ligature in french but not english) 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 -----------------------------------------------------------------