From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69248 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Vianney_le_Cl=E9ment?= Newsgroups: gmane.comp.tex.context Subject: Re: How to define fallback font for symbols Date: Fri, 17 Jun 2011 10:42:14 +0200 Message-ID: References: <4DFB07BF.5040200@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1308300178 16236 80.91.229.12 (17 Jun 2011 08:42:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Jun 2011 08:42:58 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 17 10:42:48 2011 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.69) (envelope-from ) id 1QXUdZ-00071f-54 for gctc-ntg-context-518@m.gmane.org; Fri, 17 Jun 2011 10:42:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 526FACADC2; Fri, 17 Jun 2011 10:42:42 +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 gf5v0FPYQ3u7; Fri, 17 Jun 2011 10:42:38 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2FA7CCAD97; Fri, 17 Jun 2011 10:42:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 971EECAD97 for ; Fri, 17 Jun 2011 10:42:37 +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 4Z7maQCiv7iT for ; Fri, 17 Jun 2011 10:42:35 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id D8065CAD8F for ; Fri, 17 Jun 2011 10:42:35 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5H8gZ6r008866 for ; Fri, 17 Jun 2011 10:42:35 +0200 Original-Received: by fxm18 with SMTP id 18so2226209fxm.14 for ; Fri, 17 Jun 2011 01:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=7n7pAaYm7N62B2TmWsNpeHWh2dtV5KVSjW10exqTv/Q=; b=XeIrpz3uS6+hBU5CRlJvhi8vt/kp+JQRGx7Yvnj/c6Q1TQ6mgvo6EdqNhQgD9PGOSD iz7CnqRYUesq67rbfCOJlSMfXP5Pb5mUGNvR/rPaGFb7+ildw/NhWTGwENLo6l+mLLL9 b4U7gcBfzFjxlcJTKzfiDiHOIe+1epA9Ga4/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=OVd3A1BDFel3hopy6ytJiLz4Kl6N00ag+BSDiDFbKc30OmwZMj90DX9lUvfB8l/FeE KWtg84q6gy85IsGphyngUZo8tUNr/5OF25IsYou3iBIpgCn19xtngUoslLd0RNbIxPpl lN1h4BAsekqlVzrsdKNHSTswnSbjGWzbxVo+k= Original-Received: by 10.223.23.143 with SMTP id r15mr462034fab.29.1308300155089; Fri, 17 Jun 2011 01:42:35 -0700 (PDT) Original-Received: by 10.223.22.216 with HTTP; Fri, 17 Jun 2011 01:42:14 -0700 (PDT) In-Reply-To: <4DFB07BF.5040200@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 06EUUGzRI - 6c6d2cbb4ec6 - 20110617 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:69248 Archived-At: 2011/6/17 Hans Hagen : > % \definefontfeature[zh][mode=3Dnode,script=3Dhang,lang=3Dzhs] > % \definefontfallback[serifwhatever] =A0 =A0 =A0 =A0 =A0[lmroman10-regula= r] > [0x0000-0x0400][force=3Dyes] > % \definefontfallback[serifboldwhatever] =A0 =A0 =A0[lmroman10-bold] > [0x0000-0x0400][force=3Dyes] > % \definefontfallback[serifitalicwhatever] =A0 =A0[lmroman10-italic] > [0x0000-0x0400][force=3Dyes] > % > \definefontfallback[serifbolditalicwhatever][lmroman10-bolditalic][0x0000= -0x0400][force=3Dyes] > % > % \starttypescript [serif] [zhfont] > % =A0 =A0\definefontsynonym [zhserif] =A0 =A0 =A0 =A0 =A0[AdobeSongStd-Li= ght] > [features=3Dzh,fallbacks=3Dserifwhatever] > % =A0 =A0\definefontsynonym [zhserifbold] > [AdobeHeitiStd-Regular][features=3Dzh,fallbacks=3Dserifboldwhatever] > % =A0 =A0\definefontsynonym [zhserifitalic] > [AdobeKaitiStd-Regular][features=3Dzh,fallbacks=3Dserifitalicwhatever] > % =A0 =A0\definefontsynonym > [zhserifbolditalic][AdobeHeitiStd-Regular][features=3Dzh,fallbacks=3Dseri= fbolditalicwhatever] > % \stoptypescript > % > % \starttypescript [serif][zhfont][name] > % =A0 =A0\definefontsynonym[Serif] =A0 =A0 =A0 =A0 =A0 =A0 [zhserif] =A0 = =A0 =A0 =A0 =A0 =A0 % > [fallbacks=3Dserifwhatever] > % =A0 =A0\definefontsynonym[SerifBold] =A0 =A0 =A0 =A0 [zhserifbold] =A0 = =A0 =A0 =A0 % > [fallbacks=3Dserifboldwhatever] > % =A0 =A0\definefontsynonym[SerifItalic] =A0 =A0 =A0 [zhserifitalic] =A0 = =A0 =A0 % > [fallbacks=3Dserifitalicwhatever] > % =A0 =A0\definefontsynonym[SerifBoldItalic] =A0 [zhserifbolditalic] =A0 % > [fallbacks=3Dserifbolditalicwhatever] > % \stoptypescript > % > % \starttypescript[myfont] > % =A0 =A0\definetypeface[myfont][rm][serif][zhfont] > % \stoptypescript > % > % \usetypescript[myfont] \setupbodyfont[myfont,rm,12pt] > % > % \starttext > % =A0 fonts {\bf fonts} {\bi fonts} {\it fonts} > % \stoptext This works fine, thanks. However, instead of redefining the typescripts, is it possible to set a global fallback for all fonts, like we can do for font features? E.g. \definefontfeature[default][default][fallbacks=3Dwhatever] to be able to reuse existing typescripts. Vianney ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________