From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86991 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Baskervald ADF Virtual Math Fonts Date: Sun, 13 Apr 2014 17:52:36 +0200 Message-ID: <534AB2C4.4030206@wxs.nl> References: <534a386f.c3acc20a.67e1.319f@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1397404387 22566 80.91.229.3 (13 Apr 2014 15:53:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Apr 2014 15:53:07 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 13 17:52:58 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WZMiI-0000Av-FG for gctc-ntg-context-518@m.gmane.org; Sun, 13 Apr 2014 17:52:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BFAB31022B for ; Sun, 13 Apr 2014 17:52:57 +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 bYXff5R+YhdE for ; Sun, 13 Apr 2014 17:52:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1F0461022C for ; Sun, 13 Apr 2014 17:52:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 72EA2101E9 for ; Sun, 13 Apr 2014 17:52:49 +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 qjExUCb7ajNY for ; Sun, 13 Apr 2014 17:52:47 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 97843101E1 for ; Sun, 13 Apr 2014 17:52:37 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3DFqbOq002887 for ; Sun, 13 Apr 2014 17:52:37 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 359-1713362 for ; Sun, 13 Apr 2014 17:52:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <534a386f.c3acc20a.67e1.319f@mx.google.com> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=Provincie Overijssel; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QLNrQBXH - ffc5a5e40117 - 20140413 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86991 Archived-At: On 4/13/2014 8:32 AM, joasyannick@gmail.com wrote: > Hello, > > I am going to solve my problem here: > > http://tex.stackexchange.com/questions/123647/from-xelatexs-unicode-m= ath-to-contexts-typescript > > > with virtual math fonts. I use Baskervald ADF instead of Libertine. I > was pleased to see that the following files produced effects: > > Extract from environment file fonts.tex: > ------------------------------------------------ > \startenvironment fonts > \starttypescript [math] [fonts] > \loadfontgoodies[baskervald-math] > > \definefontsynonym[MathRoman][file:texgyrepagella-math@baskervald-math] > \stoptypescript > \definetypeface [fonts] [mm] [math] [fonts] [default] > [features=3Ddefault] > \setupbodyfont [fonts, 12pt] > \stopenvironment > -------------------------------------------------------------------------= ------------------------------ > > Extract from goodies file baskervald-math.lfg: > ------------------------------------------ > return { > name =3D "baskervald-math", > version =3D "1.00", > comment =3D "Goodies that give math support for the Baskervald ADF > font.", > author =3D "author", > copyright =3D "copyrigth", > mathematics =3D { > virtuals =3D { > ["baskervald-math"] =3D { > { name =3D "texgyrepagella-math.otf", features =3D > "virtualmath", main =3D true }, > { name =3D "BaskervaldADFStd.otf", features =3D > "virtualmath", vector =3D "tex-mr-missing" } , > { name =3D "BaskervaldADFStd-Italic", vector =3D "tex-it= " } , > { name =3D "BaskervaldADFStd-Bold.otf", vector =3D > "tex-bf", skewchar=3D0x7F } , > { name =3D "BaskervaldADFStd-BoldItalic.otf", vector =3D > "tex-bi" } , > { name =3D "corbel.ttf", vector =3D "tex-ss", optional= =3Dtrue }, > { name =3D "UbuntuMono-R.ttf", vector =3D "tex-tt", > optional=3Dtrue }, > }, > } > } > } > -------------------------------------------------------------------------= -------------------------------- > > Now I have two questions. > > The first and most important question is: Where do I define my own > vector mapping? Should I modify ConTeXt=92s source code in the > math-ttv.lua file? How do I define my own baskervald-math.lua and what > should I write in it (for example for mapping Pagella=92s upright > mathematic glyphs to Baskervald=92s upright glyphs)? the virtual math font mechanism is normally used for type one math fonts = overlayed over open type text fonts if you have a proper opentype math font you can better use fallbacks = (the fallback mechanism for math looks the same as for text but is = implemented differently) see type-imp-euler.mkiv for an example > The second question is this. I have the following Project structure: > > Book (root directory) > Book/book.tex (Project file) > Book/fonts.tex (environment file) > Book/Volume1 (subdirectory) > Book/Volume1/volume1.tex (product file) > Book/Volume1/Chapter1 (subsubdirectory) > Book/Volume1/Chapter1/chapter1.tex (component file) > > I am forced to put the goodies file baskervald-math.lfg in > Book/Volume1/Chapter1. When I put it in Book and compiled chapter1.tex > separately ConTeXt failed to find it. What should I do to have the file > baskervald-math.lfg in the Book directory and make ConTeXt find it when > invoked from Book/Volume1/Chapter1. ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________