From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48507 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: Re: font switching questions Date: Wed, 18 Mar 2009 11:34:11 +0100 Message-ID: <326847810903180334s76d15a85vdd88e256e2ea4dc5@mail.gmail.com> References: <326847810903171448l5208311do3b5d440486dd8122@mail.gmail.com> <49C023EF.9050106@wxs.nl> <326847810903180112r369058daxc1ead108ac62746a@mail.gmail.com> <49C0AF85.7040605@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1694764931==" X-Trace: ger.gmane.org 1237372507 3815 80.91.229.12 (18 Mar 2009 10:35:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2009 10:35:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 18 11:36:23 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Ljt8C-0000D0-Rp for gctc-ntg-context-518@m.gmane.org; Wed, 18 Mar 2009 11:36:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C5281FD8D; Wed, 18 Mar 2009 11:34:52 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05613-01-9; Wed, 18 Mar 2009 11:34:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 49B0E1FD5A; Wed, 18 Mar 2009 11:34:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 40CC91FD5A for ; Wed, 18 Mar 2009 11:34:20 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05613-01-8 for ; Wed, 18 Mar 2009 11:34:13 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id F3AFC1FD4E for ; Wed, 18 Mar 2009 11:34:12 +0100 (CET) Original-Received: from mail-ew0-f173.google.com (mail-ew0-f173.google.com [209.85.219.173]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2IAYCHS001475 for ; Wed, 18 Mar 2009 11:34:12 +0100 Original-Received: by ewy21 with SMTP id 21so2177530ewy.2 for ; Wed, 18 Mar 2009 03:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=ihD0zok7DEnblaAIuNjqyUS9UBKcFOTgI+rcgXZj5gw=; b=p+8nL3jAg3mEwsSV17KJN05h/rScBjnxxfCxTEOojv7obBfxb+4NbCTsdM8lfEmx8W i87iDNJ9T3M9fXHZSbWbVQU2S19gZRGxf7KZ9u8LzE5abNmUCyUFnP/dRXM2u5/p6HHd ekqvMs4m3a8pXIwUbZoSxzTQYVhWchxdt7bW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=S1V+xCOCcqEZPLrfDy6bAmMjr2bflDzA6FSFfgRAJZoVay3i/6L9/Eo7+QoXm8K6as jKHJ1q2bpN997ZsAhwpmjqgrNiFkxylcyJsmD3NvJdBCAIMkKheF/9xIIx9audz1me3z 3lwFYY2OvOuGMmE0LN2B1IdGpwnaCTP6P7zOk= Original-Received: by 10.216.45.71 with SMTP id o49mr72937web.57.1237372451967; Wed, 18 Mar 2009 03:34:11 -0700 (PDT) In-Reply-To: <49C0AF85.7040605@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.173; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 195362956 - bd6aa5cf1acf X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48507 Archived-At: --===============1694764931== Content-Type: multipart/alternative; boundary=0016367d69d87452a4046562391e --0016367d69d87452a4046562391e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Mar 18, 2009 at 9:23 AM, Hans Hagen wrote: > [...] > (there's also Normal, Bold etc that is even more generic in the sense that > it can be sans or serif depending of the situation) > > these symbolic names are there for a reason as i never want to see hard > coded font names (and features) in my document styles more than once What I'm looking for... With: \starttypescript [serif/sans] [somefont] \definefontsynonym [SomeFontRegular] [name:somefont] [features=default] \definefontsynonym [SomeFontItalic] [name:somefontitalic] [features=default] \definefontsynonym [SomeFontBold] [name:somefontbold] [features=default] \definefontsynonym [SomeFontBoldItalic] [name:somefontbolditalic] [features=default] \stoptypescript \starttypescript [serif/sans] [somefont] \setups [font:fallback:sans] \definefontsynonym [Regular] [SomeFontRegular] \definefontsynonym [Italic] [SomeFontItalic] \definefontsynonym [Bold] [SomeFontBold] \definefontsynonym [BoldItalic] [SomeFontBoldItalic] \stoptypescript \starttypescript [somefont] \definetypeface [somefont] [rm/ss] [serif/sans] [somefont] [default] \stoptypescript \usetypescriptfile[tps_somefont] \usetypescript[somefont] \definetypeface[myXTypeface][somefont] and... * somefont = arial, times, tahoma, courrier, ... * X = Body/Chapter/Section/.../Header/Footer/... how to... \def\myXSymbolicName=\somecommandRegular/Bold/Italic{myXTypeface} for... \definefont[myXFont][myXSymbolicName sa myXScale] Alan --0016367d69d87452a4046562391e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Wed, Mar 18, 2009 at 9:23 AM, Hans Hagen <pragma@wxs.nl> wrote:
[...]
(there's also Normal, Bold etc that is even more = generic in the sense that it can be sans or serif depending of the situatio= n)

these symbolic names are there for a reason as i never want to se= e hard coded font names (and features) in my document styles more than once=
=A0
What I'm looking for...
=A0
With:
=A0
\starttypescript [serif/sans] [somefont]
=A0\definefontsynonym [Som= eFontRegular]=A0=A0[name:somefont]=A0=A0=A0=A0 =A0=A0=A0[features=3Ddefault= ]
=A0\definefontsynonym [SomeFontItalic]=A0=A0=A0[name:somefontitalic]= =A0=A0=A0[features=3Ddefault]
=A0\definefontsynonym [SomeFontBold]=A0=A0= =A0=A0[name:somefontbold]=A0=A0=A0[features=3Ddefault]
=A0\definefontsynonym [SomeFontBoldItalic]=A0[name:somefontbolditalic]=A0[f= eatures=3Ddefault]
\stoptypescript
=A0
\starttypescript [serif/san= s] [somefont]
=A0\setups [font:fallback:sans]
=A0\definefontsynonym [= Regular]=A0=A0=A0[SomeFontRegular]
=A0\definefontsynonym [Italic]=A0=A0=A0=A0[SomeFontItalic]
=A0\definefon= tsynonym [Bold]=A0=A0=A0=A0[SomeFontBold]
=A0\definefontsynonym [BoldIta= lic]=A0=A0[SomeFontBoldItalic]
\stoptypescript
=A0
\starttypescrip= t [somefont]
=A0\definetypeface [somefont] [rm/ss] [serif/sans] [somefon= t] [default]
\stoptypescript
\usetypescriptfile[tps_somefont]
\usetypescript[somefont]
\defin= etypeface[myXTypeface][somefont]
=A0
and...
=A0
* somefont =3D arial, times, tahoma, courrier, ...
=A0
* X =3D Body/Chapter/Section/.../Header/Footer/...
=A0
how to...
=A0
\def\myXSymbolicName=3D\somecommandRegular/Bold/Italic{myXTypeface}
=A0
for...
=A0
\definefont[myXFont][myXSymbolicName sa myXScale]
=A0
Alan
--0016367d69d87452a4046562391e-- --===============1694764931== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1694764931==--