From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55092 Path: news.gmane.org!not-for-mail From: Matthijs Kooijman Newsgroups: gmane.comp.tex.context Subject: Selectively not using a font feature Date: Sun, 6 Dec 2009 23:45:32 +0100 Message-ID: <20091206224532.GV13955@katherina.student.utwente.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0146429914==" X-Trace: ger.gmane.org 1260139555 25827 80.91.229.12 (6 Dec 2009 22:45:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2009 22:45:55 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 06 23:45:48 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHPrP-000679-Dx for gctc-ntg-context-518@m.gmane.org; Sun, 06 Dec 2009 23:45:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 47892C9BAC; Sun, 6 Dec 2009 23:45:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SHbWn1fONzfp; Sun, 6 Dec 2009 23:45:43 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77F08C9B66; Sun, 6 Dec 2009 23:45:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 64036C9B66 for ; Sun, 6 Dec 2009 23:45:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MDhZs1OqX5pu for ; Sun, 6 Dec 2009 23:45:34 +0100 (CET) Original-Received: from katherina.student.utwente.nl (katherina.student.utwente.nl [130.89.168.160]) by balder.ntg.nl (Postfix) with ESMTP id A3C15C9B49 for ; Sun, 6 Dec 2009 23:45:33 +0100 (CET) Original-Received: from matthijs by katherina.student.utwente.nl with local (Exim 4.69) (envelope-from ) id 1NHPrB-0000Xy-0u for ntg-context@ntg.nl; Sun, 06 Dec 2009 23:45:33 +0100 Mail-Followup-To: Mailing list for ConTeXt users X-PGP-Fingerprint: 7F6A 9F44 2820 18E2 18DE 24AA CF49 D0E6 8A2F AFBC X-PGP-Key: http://katherina.student.utwente.nl/~matthijs/gpg_pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55092 Archived-At: --===============0146429914== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AJd+a2ML6L6CXP6l" Content-Disposition: inline --AJd+a2ML6L6CXP6l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, I'm currently using old-style numerals in my document using the onum otf fo= nt feature: \definefontfeature[default][default][onum=3Dyes] This gives very nice results, except for the cases where a 0 appears by its= elf in the text. In these cases, it appears just like an o instead of a 0. I'd like to explicitly turn off old style numerals for those cases, but I'm uns= ure how. Any suggestions? Gr. Matthijs For completeness, this is all of my font setup code: % Script taken from the "typescripts" pacakage at http://modules.contextgar= den.net/typescripts \starttypescript [serif] [linuxlibertine] \definefontsynonym [LinuxLibertine-Regular] [name:Linux Libertine O]= [features=3Ddefault] \definefontsynonym [LinuxLibertine-Italic] [name:Linux Libertine O = Italic] [features=3Ddefault] \definefontsynonym [LinuxLibertine-Bold] [name:Linux Libertine O = Bold] [features=3Ddefault] \definefontsynonym [LinuxLibertine-BoldItalic] [name:Linux Libertine O = Bold Italic] [features=3Ddefault] \definefontsynonym [LinuxLibertine-Caps] [name:Linux Libertine O = Capitals] [features=3Ddefault]=20 \stoptypescript % Script taken from the "typescripts" pacakage at \starttypescript [serif] [linuxlibertine] \setups[font:fallback:serif] \definefontsynonym [Serif] [LinuxLibertine-Regular] [featu= res=3Ddefault] \definefontsynonym [SerifItalic] [LinuxLibertine-Italic] [featu= res=3Ddefault] \definefontsynonym [SerifBold] [LinuxLibertine-Bold] [featu= res=3Ddefault] \definefontsynonym [SerifBoldItalic] [LinuxLibertine-BoldItalic] [featu= res=3Ddefault] \definefontsynonym [SerifCaps] [LinuxLibertine-Caps] [featu= res=3Ddefault] \stoptypescript \usetypescript[linuxlibertine] % Use old numbers when available \definefontfeature[default][default][onum=3Dyes] % Define a custom typescript. We could also have put the \definetypeface's = =20 % directly in the file, without a typescript, but I guess this is more % elegant... \starttypescript[Custom] % This is a sans font that supports greek symbols \definetypeface [Custom] [ss] [sans] [iwona] [default] % This is a serif font that supports greek symbols \definetypeface [Custom] [rm] [serif] [linuxlibertine] [default= ] =20 \definetypeface [Custom] [tt] [mono] [modern] [default] \definetypeface [Custom] [mm] [math] [modern] [default] \stoptypescript \usetypescript [Custom] \switchtotypeface [Custom] [10pt] --AJd+a2ML6L6CXP6l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkscNAwACgkQz0nQ5oovr7x3wQCfVPBlJgIFkXacsiEtOI4CRMO+ QgIAnA7n4MDyVmNYR3y+zHS3H8UYcHP2 =ie9o -----END PGP SIGNATURE----- --AJd+a2ML6L6CXP6l-- --===============0146429914== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0146429914==--