From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52130 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: fontfeatures Date: Fri, 7 Aug 2009 10:43:55 +0200 Message-ID: <83ED45A8-EA76-42AA-BB0A-AB98634D7B58@gmail.com> References: <4A7B486F.7030505@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249634648 20686 80.91.229.12 (7 Aug 2009 08:44:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2009 08:44:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 07 10:44:01 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 1MZL3R-0006P5-E1 for gctc-ntg-context-518@m.gmane.org; Fri, 07 Aug 2009 10:44:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E1DBC9B80; Fri, 7 Aug 2009 10:43:58 +0200 (CEST) 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 QqI3i0BB8QZk; Fri, 7 Aug 2009 10:43:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AECD4C9B41; Fri, 7 Aug 2009 10:43:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 95B09C9B41 for ; Fri, 7 Aug 2009 10:43:51 +0200 (CEST) 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 s2c2Lr6YTNNJ for ; Fri, 7 Aug 2009 10:43:38 +0200 (CEST) Original-Received: from mail-qy0-f185.google.com (mail-qy0-f185.google.com [209.85.221.185]) by balder.ntg.nl (Postfix) with ESMTP id D1B32C9ADD for ; Fri, 7 Aug 2009 10:43:37 +0200 (CEST) Original-Received: by qyk15 with SMTP id 15so1290598qyk.16 for ; Fri, 07 Aug 2009 01:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=668HvVdwx565sN8qEo5pDPmy1lG+psOQsKevHrNC/RQ=; b=uM4KzPogN2I/VBr0HXpplWeEp4ZNE953BJ0lSy6PE1/1Vb1fwB4kvdeU3G4lHRThc9 fVurkO76qcfThfTR39UUc2k8bH6D0VXJKILnigD9/0M91uo+dSxnBlNfz+e2HXz6DOUI Z6s8dB5NyMi+uwmzpdBOGSdF/CBZg8Llj07Rg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=kEuXCSyWXkqla6ChFo6gkg9y7m9u0hHHV2GsNJG325352PIpPG4axh1X0nvYqZSaTG Nk9rkXDcNslxeNxuxyNigqTPya90UaBw8rxO/S14eB7W/8ZWz3Fvwqi5RVmrtkQgzXAk QlsyYTvrtY0tpqxhSZnB7ygk5GoyR7AOVU6yM= Original-Received: by 10.224.6.148 with SMTP id 20mr806975qaz.289.1249634616626; Fri, 07 Aug 2009 01:43:36 -0700 (PDT) Original-Received: from ?192.168.2.23? ([72.14.241.7]) by mx.google.com with ESMTPS id 2sm2049996qwi.13.2009.08.07.01.43.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 07 Aug 2009 01:43:35 -0700 (PDT) In-Reply-To: <4A7B486F.7030505@wxs.nl> X-Mailer: Apple Mail (2.935.3) 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:52130 Archived-At: Am 06.08.2009 um 23:17 schrieb Hans Hagen: > Wolfgang Schuster wrote: >> >> what happened with the option to set font features with more >> memorizable names >> you mentioned in http://www.ntg.nl/pipermail/ntg-context/2007/028330.html >> It would be nice to write \definefontfeature[mine][smallcaps=yes] >> instead >> of \definefontfeature[mine][smcp=yes] where you have to know the >> four letter >> code for the feature. > > as mapping is already kin dof present, if you add > > for k, v in pairs(to_features) do > to_features[gsub(k," ","")] = v > k = lower(k) > to_features[k] = v > to_features[gsub(k," ","")] = v > end > > to font-ott.lua then you can say: > > \starttext We should restrict this to one alternative (besides smcp=yes) and the last variant seems to me like the context way (lowercase keys without spaces in it). > % \definefontfeature[smallcaps][smcp=yes,script=latn] > % \definefontfeature[smallcaps][SmallCapitals=yes,script=latn] > % \definefontfeature[smallcaps][Small Capitals=yes,script=latn] > % \definefontfeature[smallcaps][small capitals=yes,script=latn] > \definefontfeature[smallcaps][smallcapitals=yes,script=latn] > > \definedfont[cambria*smallcaps] test > > \stoptext > > of course you need to memorize the huge feature name table Why, you can make a table where there normal feature name (Uppercase with spaces) is listed together with the normalized form (lowercase, no spaces) and the four letter form. > if needed we can add some extra common entries, like smallcaps and > oldstyle but someone needs to collect them Sure, the wiki is a good place for this. 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 ___________________________________________________________________________________