From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86535 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?572X5pmo5pif?= Newsgroups: gmane.comp.tex.context Subject: Trying to use my local otf math font by editing typescript Date: Sun, 2 Mar 2014 22:36:37 +0800 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0410001658==" X-Trace: ger.gmane.org 1393854283 11260 80.91.229.3 (3 Mar 2014 13:44:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Mar 2014 13:44:43 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 03 14:44:52 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 1WKTAq-0000dB-DZ for gctc-ntg-context-518@m.gmane.org; Mon, 03 Mar 2014 14:44:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70A98101E1; Mon, 3 Mar 2014 14:44:51 +0100 (CET) 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 dRhPc33q9gtm; Mon, 3 Mar 2014 14:44:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 77EA9101E9; Mon, 3 Mar 2014 14:44:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 44CDF101E9 for ; Sun, 2 Mar 2014 15:37:26 +0100 (CET) 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 Estr03bEHKt9 for ; Sun, 2 Mar 2014 15:37:24 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id DB9D5101E1 for ; Sun, 2 Mar 2014 15:37:15 +0100 (CET) Original-Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s22EawUa029289 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 2 Mar 2014 15:37:09 +0100 Original-Received: by mail-pa0-f41.google.com with SMTP id hz1so21793pad.0 for ; Sun, 02 Mar 2014 06:36:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=rqtgI+0bdUQnRBOiuqFQDkJra2bov8+4nmLXoJFtK4c=; b=KD4wLSB7UWv7P8vzD7cVYF66S1aNiHNKtls+hyK5ucBQzyVaRvHARI2fJY+UmhC5pQ vRg/4rzRT/YSO9ulNz5hVoIeinrcGTVbdCqWnNwKX/O5OAVxYU9JYNbINAk4Dus9eWPd ah8Y2fe1aRvEFBXsFcpkN43B2THvBrvwpyeUfovAFqOPcOGUPvcO1YD++fsafULyeeJ9 dWs/6Z7SxGJG7BZyJ+bEHk7GnJ9HA+XWYyruJsYk2flHSvQDRs8fbAyJMQr6CaC+0OT+ dkRIk/bDFLo6u7oEk9EiVdegQFTcmkizfJvKpeFgkjTSvZt8oS59NI5tm7U8Ew/SvugJ zOow== X-Received: by 10.66.122.36 with SMTP id lp4mr14605233pab.82.1393771017422; Sun, 02 Mar 2014 06:36:57 -0800 (PST) Original-Received: by 10.68.123.166 with HTTP; Sun, 2 Mar 2014 06:36:37 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400e:c03::229; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LwCAXkO - 792e3b8a5059 - 20140302 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-Mailman-Approved-At: Mon, 03 Mar 2014 14:44:48 +0100 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:86535 Archived-At: --===============0410001658== Content-Type: multipart/alternative; boundary=047d7b2e45ba644f1704f3a09a8f --047d7b2e45ba644f1704f3a09a8f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi here. I was trying to use my own math font in Mark IV, inside distribution TeX Live 2013, using typescript, but failed. The way I am thinking, I might use an fallback way. For most of the math symbols, I would use the provided palatino stuff, but for MathRoman and MathItalic, I'd like to use the same font as of normal text, let's say Minion Pro. As I'm looking into a normal typescript file, I thought of a few options: First of all, just overwrite the Palatino typescript, like follows: \starttypescript \definefontsynonym [MathRoman] [name:minionproregular] \definefontsynonym [MathItalic][name:minionproit] \stoptypescript It gives out "Math error: parameter \Umathquad\displaystyle is not set ..." Another way I'm trying, is to use some fall back mode. \starttypescript [math] [palatino] \setups[font:fallback:math] \definefontsynonym [MathRoman] [name:minionproregular] \definefontsynonym [MathItalic][name:minionproit] \stoptypescript It also doesn't work. The result was same as the previous. And I also tried \starttypescript [math] [palatinofb] \usetypescript[math][palatino] \definefontsynonym [MathRoman] [name:minionproregular] \definefontsynonym [MathItalic][name:minionproit] \stoptypescript This also makes no difference. Inspired by http://tex.stackexchange.com/questions/150566/minionpro-including-math-in-c= ontext, I also tried the \definefallbackfamily, it turn out to be an undefined control sequence. In the main typescript, I uses \definetypeface[MinionPro-Mixed][mm][math][palatino][default] So I cannot find out how to fulfill my need. I guess there might because of a missing map file, but for a roman font, do we need any? Since the following serif definition works fine: \definefontfeature[zh][mode=3Dnode,script=3Dhang,lang=3Dzhs] \starttypescript [serif] [MinionPro-Mixed] \definefontfallback[Serif] [name:minionproregular][0x0000-0x0400][force=3Dyes] \definefontfallback[SerifItalic] [name:minionproit] [0x0000-0x0400][force=3Dyes] \definefontfallback[SerifBold] [name:minionprobold] [0x0000-0x0400][force=3Dyes] \definefontfallback[SerifBoldItalic][name:minionproboldit] [0x0000-0x0400][force=3Dyes] \definefontsynonym [Serif] [name:fzshusongz01][fallbacks=3DSerif] [features=3Dzh] \definefontsynonym [SerifItalic] [name:fzheib01][fallbacks=3DSerifItalic] [features=3Dzh] \definefontsynonym [SerifBold] [name:fzheib01][fallbacks=3DSerifBol= d] [features=3Dzh] \definefontsynonym [SeriBoldItalic] [name:fzheib01][fallbacks=3DSerifBoldItalic] [features=3Dzh] \stoptypescript As I've seen, normally, a fallback definition of typescript is used in serif/sans/mono, but there comes no successfull example for fall back of math font. Also, there is fall back for a font, but not an entire typescript. And build a new math font is obvious beyond my competent. So how to deal with this problem? Is there a solution? Regards, =E5=8D=97=E4=BA=AC=E5=A4=A7=E5=AD=A6 =E7=8E=B0=E4=BB=A3=E5=B7=A5=E7=A8=8B= =E4=B8=8E=E5=BA=94=E7=94=A8=E7=A7=91=E5=AD=A6=E5=AD=A6=E9=99=A2 2013=E7=BA= =A7 =E7=BD=97=E6=99=A8=E6=98=9F Luo Chenxing =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 chenxing.luo@gmail.com --047d7b2e45ba644f1704f3a09a8f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi here.

I was trying to use= my own math font in Mark IV, inside distribution TeX Live 2013, using type= script, but failed.

The way I am thinking, I might= use an fallback way. For most of the math symbols, I would use the provide= d palatino stuff, but for MathRoman and MathItalic, I'd like to use the= same font as of normal text, let's say Minion Pro. As I'm looking = into a normal typescript file, I thought of a few options:

First of all, just overwrite the Palatino typescript, l= ike follows:

\starttypescript
=C2= =A0 =C2=A0 \definefontsynonym [MathRoman] [name:minionproregular]
=C2=A0 =C2=A0 \definefontsynonym [MathItalic][name:minionproit]
\stoptypescript

It gives out "Math= error: parameter \Umathquad\displaystyle is not set ..."
Another way I'm trying, is to use some fall back mode.

\starttypescript [math] [palatino]
=C2= =A0 =C2=A0 \setups[font:fallback:math]
=C2=A0 =C2=A0 \definef= ontsynonym [MathRoman] [name:minionproregular]
=C2=A0 =C2=A0 = \definefontsynonym [MathItalic][name:minionproit]
\stoptypescript

It also doesn't work. The result was same as the previou= s.

And I also tried

\start= typescript [math] [palatinofb]
=C2=A0 =C2=A0 \usetypescript[math]= [palatino]
=C2=A0 =C2=A0 \definefontsynonym [MathRoman] [name:minionproregu= lar]
=C2=A0 =C2=A0 \definefontsynonym [MathItalic][name:minio= nproit]
\stoptypescript

This also = makes no difference.

Inspired by=C2=A0h= ttp://tex.stackexchange.com/questions/150566/minionpro-including-math-in-co= ntext , I also tried the \definefallbackfamily, it turn out to be an un= defined control sequence.

In the main typescript, I uses=C2=A0

=C2=A0 =C2=A0 \definetypeface[MinionPro-Mixed][mm][math][palatino][d= efault]

So I cannot find out how to fulfill my= need. I guess there might because of a missing map file, but for a roman f= ont, do we need any? Since the following serif definition works fine:

\definefontfeature[zh][mode=3Dnode,script=3Dhang,l= ang=3Dzhs]

\starttypescript [serif] [MinionPro-Mix= ed]
=C2=A0 =C2=A0 \definefontfallback[Serif] =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0[name:minionproregular][0x0000-0x0400][force=3Dyes]
=C2=A0 =C2=A0 \definefontfallback[SerifItalic] =C2=A0 =C2=A0[name:mini= onproit] [0x0000-0x0400][force=3Dyes]
=C2=A0 =C2=A0 \definefontfa= llback[SerifBold] =C2=A0 =C2=A0 =C2=A0[name:minionprobold] [0x0000-0x0400][= force=3Dyes]
=C2=A0 =C2=A0 \definefontfallback[SerifBoldItalic][n= ame:minionproboldit] [0x0000-0x0400][force=3Dyes]
=C2=A0 =C2=A0 \definefontsynonym [Serif] =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0[name:fzshusongz01][fallbacks=3DSerif] [features=3Dzh]
=C2= =A0 =C2=A0 \definefontsynonym [SerifItalic] =C2=A0 =C2=A0 [name:fzheib01][f= allbacks=3DSerifItalic] [features=3Dzh]
=C2=A0 =C2=A0 \definefont= synonym [SerifBold] =C2=A0 =C2=A0 [name:fzheib01][fallbacks=3DSerifBold] [f= eatures=3Dzh]
=C2=A0 =C2=A0 \definefontsynonym [SeriBoldItalic] =C2=A0 =C2=A0 [name:= fzheib01][fallbacks=3DSerifBoldItalic] [features=3Dzh]
\stoptypes= cript

As I've seen, normally, a fallback= definition of typescript is used in serif/sans/mono, but there comes no su= ccessfull example for fall back of math font. Also, there is fall back for = a font, but not an entire typescript.

And build a new math font is obvious beyond my competen= t.

So how to deal with this problem? Is there a so= lution?

Regards,

=E5=8D=97=E4=BA=AC=E5=A4=A7=E5=AD=A6 =E7=8E= =B0=E4=BB=A3=E5=B7=A5=E7=A8=8B=E4=B8=8E=E5=BA=94=E7=94=A8=E7=A7=91=E5=AD=A6= =E5=AD=A6=E9=99=A2 2013=E7=BA=A7
=E7=BD=97=E6=99=A8=E6=98=9F
Luo Ch= enxing
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94
chenxing.luo@gmail.com
--047d7b2e45ba644f1704f3a09a8f-- --===============0410001658== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0410001658==--