From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46822 Path: news.gmane.org!not-for-mail From: Mikael Persson Newsgroups: gmane.comp.tex.context Subject: Re: Fourier in ConTeXt (was Fonts readily available in Context) Date: Fri, 16 Jan 2009 13:02:12 +0100 Message-ID: References: <6faad9f00901140416u5db0667n8f9e7516329ba159@mail.gmail.com> <6faad9f00901140610g5b5ca6afk190f2d146508c5bc@mail.gmail.com> <6faad9f00901140926v402de444v8a5a245222fc15b9@mail.gmail.com> <6faad9f00901150815n7bae726cy3ab019ff452655ca@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232107505 733 80.91.229.12 (16 Jan 2009 12:05:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 12:05:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 16 13:06:16 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 1LNnRs-0001Lq-SY for gctc-ntg-context-518@m.gmane.org; Fri, 16 Jan 2009 13:05:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3FEF91FE2B; Fri, 16 Jan 2009 13:03:57 +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 27334-01; Fri, 16 Jan 2009 13:02:53 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4A1641FDD2; Fri, 16 Jan 2009 13:02:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CE6B21FDD2 for ; Fri, 16 Jan 2009 13:02:51 +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 27502-01 for ; Fri, 16 Jan 2009 13:02:15 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id 289951FDCD for ; Fri, 16 Jan 2009 13:02:15 +0100 (CET) Original-Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0GC2DZv024256 for ; Fri, 16 Jan 2009 13:02:13 +0100 Original-Received: by wf-out-1314.google.com with SMTP id 27so1638688wfd.5 for ; Fri, 16 Jan 2009 04:02:12 -0800 (PST) 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 :content-transfer-encoding; bh=ZfmCLxtXNhAOjhZjbjz7yRkw01/XHhlcHKJKy54jIEA=; b=RvHNsuqh8cqYVMcnSH5w/tihVgaCERQ4roiD/AyMKm2BHeicc0e9dIIaCAHZKWXRRd XwF6tC5OuSWzAd9hXMFXKO7CqGz6xOhrQxRZtRh7Ah0kUsXha4gYG8hXd2eY2aj8ZBrw NG5+bdB5UXT9GQsPvCtwsQYTLeyxMBvEzG7yQ= 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:content-transfer-encoding; b=rKEL9rfu62cnM0yuz8T4mSOwBWDrxznKpOEu78YDK2LjmAlbevDjw2N+Bc0uRmIJ9k yqdi63wupe56Ri8J+WrS825hLOr/tA80At2WuegXKySd4WABEAtjFBPqsNPKg6p4w4RG Dl+OOR9ZiSweN6dbvwx//y8OsL28fUpVNQNjU= Original-Received: by 10.142.128.15 with SMTP id a15mr1007907wfd.214.1232107332222; Fri, 16 Jan 2009 04:02:12 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.200.168; 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: 166391914 - 89828dca8415 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:46822 Archived-At: On Fri, Jan 16, 2009 at 8:34 AM, Mikael Persson wrote: > On Thu, Jan 15, 2009 at 6:37 PM, Aditya Mahajan wrote: >> On Thu, 15 Jan 2009, Mojca Miklavec wrote: >> >>> On Thu, Jan 15, 2009 at 2:11 PM, Mikael Persson wrote: >>>> >>>> On Wed, Jan 14, 2009 at 6:26 PM, Mojca Miklavec >>>> wrote: >>>>> >>>>> On Wed, Jan 14, 2009 at 3:54 PM, Mikael Persson wrote: >>>>>> >>>>>> Mojca, does it work both in mkii and mkiv for you? >>>>> >>>>> I only tested in mkii so far (I suspect that mkiv suffers from the >>>>> lack of Utopia in proper format, so one would need to check >>>>> typescripts). >>>>> >>>>> Mojca >>>> >>>> Thank you Mojca for your help! >>>> >>>> I'm also being a bit curious about the [tf] in >>>> >>>> \definemathsymbol [hat] [accent] [tf] ["2] >>>> >>>> In math-fou.tex I see >>>> mi (Math Italics?) >>>> sy (Symbols?) >>>> ex (Extension?) >>>> mr (Math Roman?) >>>> >>>> 2) I guess all [mr] (10 or so) in math-fou.tex safely can be changed to >>>> [tf]? >>> >>> I would not just bet on it. I would try it first. If mr works, one >>> should better leave mr, but I have no idea why it fails. >> >> The reason \hat is defined using tf is because the math font does not have >> accents. This is the same thing with Euler, and last I checked (about a >> months ago), Euler accents work perfectly in MKIV. So, in principle it >> should work with Fourier also. >> >> I do not have time right now to look into it, maybe sometime next week. >> >>>> 3) Does anyone know what has to be done to get this working in mkiv? >>> >>> Hans, what's the strategy with non-unicode fonts, in particular >>> Utopia? It doesn't come in otf format, but could still be used in both >>> mkiv and XeTeX. Is there some type-something.tex foreseen for such >>> fonts? >> >> Another possibility is to redistribute the fonts as otf. From what I >> understand from the license (http://tug.ctan.org/tex-archive/fonts/utopia/) >> it is ok to modify the fonts (ie change the format) as long as you do not >> call the modified font utopia, and remove all references to Adobe. Are there >> tools to convert type 1 to otf? >> >> Aditya > > Thanks Mojca and Aditya for your help. I just found out that if I change > > \definefontsynonym [MathRoman] [Utopia-Regular] > to > \definefontsynonym [MathRoman] [futr8t] > in the typescript file, and define the math accents as: > > \def\grave{\mathaccent"7000} > \def\acute{\mathaccent"7001} > \def\hat{\mathaccent"7002} > \def\tilde{\mathaccent"7003} > \def\ddot{\mathaccent"7004} > \def\mathring{\mathaccent"7006} > \def\check{\mathaccent"7007} > \def\breve{\mathaccent"7008} > \def\bar{\mathaccent"7009} > \def\dot{\mathaccent"700A} > > they all work (both in mkii and mkiv). Can someone explain how to > convert these definitions to context versions, for example like > \definemathsymbol [acute] [accent] [tf] ["1]? > > Best regards, Mikael > I thought I tested this before, but \startmathcollection [fou] \definemathsymbol [acute] [accent] [mr] ["1] \definemathsymbol [grave] [accent] [mr] ["0] \definemathsymbol [ddot] [accent] [mr] ["4] \definemathsymbol [tilde] [accent] [mr] ["3] \definemathsymbol [bar] [accent] [mr] ["9] \definemathsymbol [breve] [accent] [mr] ["8] \definemathsymbol [check] [accent] [mr] ["7] \definemathsymbol [hat] [accent] [mr] ["2] \definemathsymbol [dot] [accent] [mr] ["A] \definemathsymbol [mathring] [accent] [mr] ["6] \stopmathcollection works as long as one has \definefontsynonym [MathRoman] [futr8t] and not \definefontsynonym [MathRoman] [Utopia-Roman]% putr8a or \definefontsynonym [MathRoman] [futr8r] or ... It thus seems that type-fou.tex does not need any changes. Below is a working type script: %%%%%%%%% type-fourier.tex \starttypescript [serif] [utopia] \setups[font:fallback:serif] \definefontsynonym [Serif] [Utopia-Regular] \definefontsynonym [SerifItalic] [Utopia-Italic] \definefontsynonym [SerifBold] [Utopia-Bold] \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic] \stoptypescript \starttypescript [serif] [utopia] \definefontsynonym [Utopia-Regular] [file:putr8a][features=default] \definefontsynonym [Utopia-Italic] [file:putri8a][features=default] \definefontsynonym [Utopia-Bold] [file:putb8a][features=default] \definefontsynonym [Utopia-BoldItalic] [file:putbi8a][features=default] \stoptypescript \starttypescript [math] [fourier] [name] \definefontsynonym [MathRoman] [futr8t] \definefontsynonym [MathItalic] [futmii] \definefontsynonym [MathSymbol] [futsy] \definefontsynonym [MathExtension] [fourier-mex] \loadmapfile[fourier.map] \stoptypescript \starttypescript [fourier,utopia] \definetypeface [\typescriptone] [rm] [serif] [utopia] [default] \definetypeface [\typescriptone] [ss] [sans] [modern] [default][rscale=1.07] \definetypeface [\typescriptone] [tt] [mono] [modern] [default][rscale=1.07] \definetypeface [\typescriptone] [mm] [math] [fourier] [default][encoding=default] \usemathcollection[fou] \quittypescriptscanning \stoptypescript %%%%%%%%%%%%%% And a working test file: %%%%%%%% Test file \usetypescriptfile[type-fourier] \usetypescript[fourier][ec] \setupbodyfont[fourier] \enablemathcollection[fou] \starttext Test: acute $\acute{a}$ grave $\grave{a}$ ddot $\ddot{a}$ tilde $\tilde{a}$ bar $\bar{a}$ breve $\breve{a}$ check $\check{a}$ hat $\hat{a}$ dot $\dot{a}$ mathring $\mathring{a}$ widetilde $\widetilde{ab}$. \startformula \hat{f}(x)= \startcases \NC x \MC x>0\NR \NC -x \MC x<0\NR \stopcases \stopformula \stoptext %%%%%%% Could this \enablemathcollection[fou] go somewhere else? Best regards, Mikael ___________________________________________________________________________________ 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 ___________________________________________________________________________________