From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101741 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: definefallbackfamily stopped working for text fonts Date: Tue, 28 Aug 2018 19:03:02 +0200 Message-ID: References: <3ecba0e4-b2a7-24ee-8378-27691db4e187@xs4all.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------FA47BBF18EE164B94A428749" X-Trace: blaine.gmane.org 1535475688 29504 195.159.176.226 (28 Aug 2018 17:01:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Aug 2018 17:01:28 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 PostboxApp/6.1.1 To: mailing list for ConTeXt users , Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 28 19:01:24 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fuhMq-0007XI-0j for gctc-ntg-context-518@m.gmane.org; Tue, 28 Aug 2018 19:01:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 441A759A8F; Tue, 28 Aug 2018 19:03:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f6XBRoJ-HLMY; Tue, 28 Aug 2018 19:03:17 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AC0FF59A85; Tue, 28 Aug 2018 19:03:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 15E2959A85 for ; Tue, 28 Aug 2018 19:03:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pA6xUrvJcnF8 for ; Tue, 28 Aug 2018 19:03:15 +0200 (CEST) Original-Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8A84E59A84 for ; Tue, 28 Aug 2018 19:03:05 +0200 (CEST) Original-Received: by mail-ed1-f51.google.com with SMTP id h9-v6so1919533edr.0 for ; Tue, 28 Aug 2018 10:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=obXEs6C5xM4WCSi+Uva60tnofRTfZIxmTNk9Z37v4lM=; b=FY8cTisXM1VD5JohkGnebclf5skgbAAuVIW0A2g1j9+VOBJ7kQBQUaLdVhrAebthB0 r6vr9q9xIK5O6AvBm4/rdPi6Pu+HqKxcfMm9wdm7wWO8jAb/vAK82XFNnzcmyQY+qpo/ 8Dg58y3up99H5a3GV+nx3KJ/0SWprKkho0TOLE4m3TUagIYQaEGv9fMyMfkr4zVQl/j3 I73NKziRysd6UccAuX03e7prtiVicIOiSDuBRbXtSstbD5gay6LQh4K1lbjFnmieTcmv vPOlvfOpQHRzKTtrkH98TaRwhtxV5mR9W8ssOYiXpsyo/pt3U9XQ9wcZ4rDAtTwwMnf1 en1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=obXEs6C5xM4WCSi+Uva60tnofRTfZIxmTNk9Z37v4lM=; b=iT/n+pqFe4HwHuMIgfDcTdL83mgIew++WahekCLf3/uFaL952dumrn2BcnN0rjZoRD 7lxU/NZ52CdcMwaAcSj7RWNdtkmP0Hgp4kv+r4MqD1idIsikUc7+ku512L3lLiI1MB5e vmny6P1YE6WG8TGOIAA++yWeMapzYU7TFuZ9R85twD2GvG76zIz2GXXC00wLQD1ny/Zq j5mNORT9yLdU1vogzUBVfFrbdJLBSF/rSSMR1X/KKJ7DwokbKjczcO+tztZSKTHLpE3o bmWf27cn09v+qRc59MYd0fOU8f1f0ZV1ne681VxQ56eArTlKR3RUEs/g7Loo3BH/0pwg aBfg== X-Gm-Message-State: APzg51DcKXfb3b2guK/l2O6JQuA//jnkSwNHV/sBgRmf6jgg3YBumFZt qaBuZCPEzimWQVQ5qHjHums= X-Google-Smtp-Source: ANB0VdYN0xM9Dd4kylbrxU0IbhGtR4BaaKvmjWb74UJ7d3LPE0pqq1mTxO8enfly91Bl7M1+PuGdoQ== X-Received: by 2002:a50:d1c7:: with SMTP id i7-v6mr3364644edg.169.1535475785293; Tue, 28 Aug 2018 10:03:05 -0700 (PDT) Original-Received: from [192.168.1.11] (x5f720402.dyn.telefonica.de. [95.114.4.2]) by smtp.gmail.com with ESMTPSA id h8-v6sm724487edi.68.2018.08.28.10.03.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Aug 2018 10:03:04 -0700 (PDT) In-Reply-To: <3ecba0e4-b2a7-24ee-8378-27691db4e187@xs4all.nl> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:101741 Archived-At: This is a multi-part message in MIME format. --------------FA47BBF18EE164B94A428749 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hans Hagen schrieb am 28.08.18 um 10:14: > On 8/28/2018 3:49 AM, Henri Menke wrote: >> Dear list, >> >> In the latest beta the font fallback using a text font in math mode does >> not work anymore. The log contains messages like >> >> char 𝑐 (U+1D450) in font 'MinionPro-It' with id 8: missing >> char π‘Ž (U+1D44E) in font 'MinionPro-It' with id 8: missing >> char 𝑏 (U+1D44F) in font 'MinionPro-It' with id 8: missing >> >> which is not surprising because a text font does not have math italics. >> How can I get this to work again? MWE below. > > Isn't it > > \definefallbackfamily > [mainface] [math] [Minion Pro] > [range=lowercaseitalic,force=yes] > \definefallbackfamily > [mainface] [math] [Minion Pro] > [range=digitsnormal,force=yes] > > or so? It's Wolfgangs speciality ... \definefallbackfamily [mainface] [math] [Minion Pro] [preset=math:lowercaseitalic,force=yes] \definefallbackfamily [mainface] [math] [Minion Pro] [preset=math:digitsnormal,force=yes] but there is a bug in the fallback mechanism when you try to replace characters which are in different positions, e.g. mathitalic lowercase a (0x1D44E) with upright lowercase a (0x61). Attached is a test file where I tried to replace the uppercase and lowercase mathitalic b with a letter from a text font but it doesn’t work. Wolfgang --------------FA47BBF18EE164B94A428749 Content-Type: application/x-tex; name="math_typescript_fallback.tex" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="math_typescript_fallback.tex" \enabletrackers[math.remapping,math.collecting] % old method: fonts are set with \definefontfallback % % \starttypescript [math] [mainface] % \definefontfallback [fallback-mainface-mm-tf] [file:texgyrepagellamath] [0x1D44E,0x1D434,0x31] [check=no,force=yes,features=math\mathsizesuffix] % \definefontfallback [fallback-mainface-mm-tf] [file:texgyreherositalic] [0x42] [check=no,force=yes,features=default,offset=uppercaseitalic] % \definefontfallback [fallback-mainface-mm-tf] [file:texgyreherositalic] [0x62] [check=no,force=yes,features=default,offset=lowercaseitalic] % \definefontfallback [fallback-mainface-mm-tf] [file:texgyreherosregular] [0x32] [check=no,force=yes,features=default] % \stoptypescript % new method: fonts are set with synonyms which are then loaded by \definefontfallback \starttypescript [math] [mainface] \definefontsynonym [synonym-mainface-mm-tf-1] [file:texgyrepagellamath] [features=math\mathsizesuffix] \definefontsynonym [synonym-mainface-mm-tf-2] [file:texgyreherositalic] [features=default] \definefontsynonym [synonym-mainface-mm-tf-3] [file:texgyreherosregular] [features=default] \stoptypescript \starttypescript [math] [mainface] \definefontfallback [fallback-mainface-mm-tf] [synonym-mainface-mm-tf-1] [0x1D44E,0x1D434,0x31] [check=no,force=yes]% π‘Ž + 𝐴 + 1 \definefontfallback [fallback-mainface-mm-tf] [synonym-mainface-mm-tf-2] [0x62] [check=no,force=yes,offset=lowercaseitalic + 1]% 𝑏 \definefontfallback [fallback-mainface-mm-tf] [synonym-mainface-mm-tf-2] [0x42] [check=no,force=yes,offset=uppercaseitalic + 1]% 𝐡 \definefontfallback [fallback-mainface-mm-tf] [synonym-mainface-mm-tf-3] [0x32] [check=no,force=yes]% 2 \stoptypescript \starttypescript [math] [mainface] \definefontsynonym [MathRoman] [file:latinmodernmath] [fallbacks=fallback-mainface-mm-tf,features={math\mathsizesuffix,mathextra}] \stoptypescript \starttypescript [mainface] \definetypeface [mainface] [rm] [serif] [modern] [default] \definetypeface [mainface] [mm] [math] [mainface] [default] \stoptypescript \setupbodyfont[mainface] \starttext \startformula abc\quad ABC\quad 123 \stopformula \stoptext --------------FA47BBF18EE164B94A428749 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --------------FA47BBF18EE164B94A428749--