From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95668 Path: news.gmane.org!.POSTED!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: \typescriptthree within the optional argument of \definefontsynonym Date: Thu, 4 Aug 2016 09:24:43 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3838806366285214142==" X-Trace: blaine.gmane.org 1470317155 21585 195.159.176.226 (4 Aug 2016 13:25:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2016 13:25:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 04 15:25:51 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVIej-0004qd-97 for gctc-ntg-context-518@m.gmane.org; Thu, 04 Aug 2016 15:25:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DE833144A9; Thu, 4 Aug 2016 15:24:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gSndl1QJ91nV; Thu, 4 Aug 2016 15:24:56 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D8F761449B; Thu, 4 Aug 2016 15:24:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DCA4414494 for ; Thu, 4 Aug 2016 15:24:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IvzZfWZiDujB for ; Thu, 4 Aug 2016 15:24:55 +0200 (CEST) Original-Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4807814490 for ; Thu, 4 Aug 2016 15:24:45 +0200 (CEST) Original-Received: by mail-lf0-f53.google.com with SMTP id l69so181977775lfg.1 for ; Thu, 04 Aug 2016 06:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=bFkIKU+87ZUEdR2mkOQNl2xOYLj3wLhVdG+fPm8U/F4=; b=P3Do2Edso7ddo2NUjulQiZhRT+xG9UNuZsc82xmrjS1sv6RJ3cBgIn2KF1rL4qBSgY qhUR+nINqf6V5SggzzGBJG8nbF00LYGMTqNwH0ejclGd03/LdsPmNlmjKBt5F4s4PGjw 6OAqWc916dlVIOcieysdvdRqJ8EVJMCOHpr4ix6XfIJPq/VyQNn9HysnznJAxZkQNnRL yFyP6rfAt030WvkMyTWHlKZOxc2V+FtQCbwiOMqNDJosKYWF0ZHYmfhRMGlWny+FzFn3 ZG6VUkAL9Xjsszlr93mtZc1MZE7AD7xmbZCk1qcLDEr+6/RTIQDqmAAs2RfZnwBTlM3t w8+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bFkIKU+87ZUEdR2mkOQNl2xOYLj3wLhVdG+fPm8U/F4=; b=HE9Um0FdB1cAgORSBXqIwlY2YWGoC8NSRKE+50ogLb4jqiOgNUpPZXcgQ+HaWJQbMa ZM1FyjUQ1qSNv34fVu1SCe6F+1Y4Tvu4obfg3c5y2GNE/V3DG55JC+jUtbmmAo4NVIBs VpSlLkujYsUtJHCqs/H4A2EVhqCZuP/z5d/2tC0QPAubtmJJfvse4h9I7fHTkGtOAgR1 GVh+hktU9s6JJ3QU0KFn0fcD027KKkbRbFP5uM0m9/RxuwJHEVXR6FOiCLsUQnI8lyyw 0Rqpxqw4xO/ycibdwBsce3yE5EDKA6qRog9ADRHQqtudTTrEIjyZ/BcsjkZ7nKtLV2Za Ri5w== X-Gm-Message-State: AEkoousc/ymFPTvZhRqsO0FjjZGPW9XgPJIg8IqUD8x0IWttgHnE07WCyobS4/bSDXPEu0ge9Ahviv6Ph9ZOEw== X-Received: by 10.25.216.26 with SMTP id p26mr24743378lfg.122.1470317084205; Thu, 04 Aug 2016 06:24:44 -0700 (PDT) Original-Received: by 10.25.215.164 with HTTP; Thu, 4 Aug 2016 06:24:43 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95668 Archived-At: --===============3838806366285214142== Content-Type: multipart/alternative; boundary=001a114024a482e99d05393edf1c --001a114024a482e99d05393edf1c Content-Type: text/plain; charset=UTF-8 Hello Hans, Suppose you have a typescript as follows. \starttypescript [first] [MyFont] [GoodieOne,GoodieTwo] \definefontsynonym [Serif] [\typescripttwo] [goodies=\typescriptthree] \stoptypescript Using macros \typescriptX (for X=one, two, and three) works in the first and second arguments in \definefontsynonym but not in the optional argument. This seems to be because the optional argument is not expanded. Is this a bug or a feature? What I want to do was have a set of "fixes" (correcting kern issues, etc.) for a collection of fonts. I can either put these in separate goodie files or feature sets (the latter being what I was trying but not in the sample above), and write generic typescripts that would load any of the fonts with its associated fixes. While I can use sans/serif/mono in the first argument, and name of the font in the second argument (to be mapped appropriately using \typescriptprefix to nmemonic name and real font name), the third (optional) argument of \definefontsynonym does not expand immediately, hence I'll end up with "undefined" \typescriptthree when it will be used. Best, Hossein --001a114024a482e99d05393edf1c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello Hans,

Suppose you have a typescri= pt as follows.

\starttypescript [first] [MyFont] [= GoodieOne,GoodieTwo]
=C2=A0 \definefontsynonym [Serif] [\typescri= pttwo] [goodies=3D\typescriptthree]
\stoptypescript
Using macros \typescriptX (for X=3Done, two, and three) works i= n the first and second arguments in \definefontsynonym but not in the optio= nal argument.=C2=A0 This seems to be because the optional argument is not e= xpanded.=C2=A0 Is this a bug or a feature?

What I = want to do was have a set of "fixes" (correcting kern issues, etc= .) for a collection of fonts.=C2=A0 I can either put these in separate good= ie files or feature sets (the latter being what I was trying but not in the= sample above), and write generic typescripts that would load any of the fo= nts with its associated fixes.

While I can use san= s/serif/mono in the first argument, and name of the font in the second argu= ment (to be mapped appropriately using \typescriptprefix to nmemonic name a= nd real font name), the third (optional) argument of \definefontsynonym doe= s not expand immediately, hence I'll end up with "undefined" = \typescriptthree when it will be used.

Best,
=
Hossein
--001a114024a482e99d05393edf1c-- --===============3838806366285214142== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============3838806366285214142==--