From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94420 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Help with t-vim module and math Date: Wed, 13 Apr 2016 15:33:27 +0200 Message-ID: <570E4AA7.4060703@gmail.com> References: <570E3FFC.8050405@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4980111954332666564==" X-Trace: ger.gmane.org 1460554462 27787 80.91.229.3 (13 Apr 2016 13:34:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Apr 2016 13:34:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 13 15:34:07 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aqKvl-0006bx-Eh for gctc-ntg-context-518@m.gmane.org; Wed, 13 Apr 2016 15:34:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 89D6BA473; Wed, 13 Apr 2016 15:33:41 +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 sIsqrXug00wn; Wed, 13 Apr 2016 15:33:40 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 53E63A465; Wed, 13 Apr 2016 15:33:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3BABCA465 for ; Wed, 13 Apr 2016 15:33:39 +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 myUB3AFupwjc for ; Wed, 13 Apr 2016 15:33:38 +0200 (CEST) Original-Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) (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 8EA3AA450 for ; Wed, 13 Apr 2016 15:33:28 +0200 (CEST) Original-Received: by mail-wm0-f47.google.com with SMTP id u206so78315296wme.1 for ; Wed, 13 Apr 2016 06:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=XT0CJqoMq3eWE8/uVc4yRRp/yWUJWkVzdh5CAjsyqog=; b=foyCnbQedew4kgmNJ3FF4RxmE0C7XZE4zI2LXCMNEae24Pc5vAIr66OIEq2wMShdLP DJNHu2ASiBePXqBVMxCG9aOZynFVlHB4xv8P/WD7T3s4gOyQqVc1s9+4QAT13gtrE5sg HAONJzsJaDiGD0k4uR8wVKzvSeNQJQwm96wUKDXq0wwXJewZxzUH+ttbWLbG2beI/mIZ 03SGbvp0BrzqGD+bZ/BSgW6gsnuGQlyHh02UzrMXF7hWZquYQ4JJ6uYifpK20gZmkAKH huUktKmfzmBIaKNGhaWOHy/5mCz69EmHdo0gGGN63yAHdgbkFIcxFU4Y5Mhggf+FN726 FVnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=XT0CJqoMq3eWE8/uVc4yRRp/yWUJWkVzdh5CAjsyqog=; b=IlZGPTB3m+40x3SpiWllsodK8o5YxPb1FS758sj9DRqhRZHREesMTfF2ShhRrcQenF NQ4KFQcQJx9Uu1HLSbiyETd2m3n9R0OyFsNbhretJtBf3DvldYjSnvtn/417zO1vafKA jUmqw6E6oHTvk8g4+AnUzarBaYLyoWl1wKlDM0eXPcsxi02xZJ56Iln5EF326QRVMIFs W/kXH9wx5stVNFUdYMhZiyhElJof9vxtOXS1x9oh0H78gMDxWgyB5YZMqXxtUBHkgWV0 iFyk464oSO9y4SEq6M0FRRcmKsSMki7H6rMtgpEXKlqETpOXVxO7WGd8GuUU4uZ6bnNr q39A== X-Gm-Message-State: AD7BkJJdfUw2K7/Pz45UneQGNBf0TKIvx9BCINRdW2oaMqoVKIZyyO8lq9dfASVixNYFWQ== X-Received: by 10.28.31.212 with SMTP id f203mr29823161wmf.69.1460554407992; Wed, 13 Apr 2016 06:33:27 -0700 (PDT) Original-Received: from keima.localdomain (x2f290aa.dyn.telefonica.de. [2.242.144.170]) by smtp.gmail.com with ESMTPSA id c187sm1321178wme.16.2016.04.13.06.33.26 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Apr 2016 06:33:27 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: 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:94420 Archived-At: This is a multi-part message in MIME format. --===============4980111954332666564== Content-Type: multipart/alternative; boundary="------------080604090805030200090706" This is a multi-part message in MIME format. --------------080604090805030200090706 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Nicola > 13. April 2016 um 15:28 > > On 2016-04-13 12:47:56 +0000, Wolfgang Schuster said: > > > Nicola 13. April 2016 um 14:17 > > On 2016-04-13 11:53:51 +0000, Hans Hagen said: > > > > Thanks, that works. Unfortunately, DejaVu Sans Mono looks too heavy in=20 > my document: > > is there a light variant? > > > Also, can't the fallback mechanism be used? > > Yes it can but you have to enable your custom typeface with=20 > \setupbodyfont which > > wasn=E2=80=99t done in your example. > > > You're right, but I have done it in my original document. > > Even with that, the fallback symbol does not show up: > > > \usemodule[vim] > > \definefontfamily[slidesfont][mono][Latin Modern Mono Light] > > \definefallbackfamily[slidesfont][mono][DejaVu Sans Mono][range=3D{"022= 2A}] > > \definevimtyping[pascal][syntax=3Dpascal] > > \setupbodyfont[slidesfont] > > \starttext > > \startpascal > > X :=3D Y =E2=88=AA Z; > > \stoppascal > > \stoptext > > You have to move the fallback setting before the font where you want to=20 apply the fallback, i.e. \definefallbackfamily [=E2=80=A6] [=E2=80=A6] [=E2=80=A6] \definefontfamily [=E2=80=A6] [=E2=80=A6] [=E2=80=A6] Wolfgang --------------080604090805030200090706 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
13= .=20 April 2016 um 15:28

On 2016-04-13 12:47:56 +0000, Wolfgang Schuster said:


Nicola 13. April 2016 um 14:17=C2=A0

On 2016-04-13 11:53:51 +0000, Hans Hag= en=20 said:=C2=A0



Thanks, that works. Unfortunately, Dej= aVu Sans Mono looks too heavy in my document:=C2=A0

is there a light variant?=C2=A0


Also, can't the fallback mechanism be=20 used?=C2=A0

Yes it can but you have to enable your= =20 custom typeface with \setupbodyfont which

wasn=E2=80=99t done in your example.


You're right, but I have done it in my original document.=

Even with that, the fallback symbol does not show up:


\usemodule[vim]

\definefontfamily=C2= =A0 =C2=A0 [slidesfont][mono][Latin Modern Mono Light]

\definefallbackfamily[slidesfont][mono][DejaVu Sans=20 Mono][range=3D{"0222A}]

\definevimtyping[pascal][syntax=3Dpascal]

\setupbodyfont[slidesfont]

\starttext

\startpascal

=C2=A0X :=3D= Y =E2=88=AA Z;

\stoppascal

\stoptext


You have to move the fallback setting before the font where you want to=20 apply the fallback, i.e.

=C2=A0=C2=A0=C2=A0 \definefallbackfamily [=E2=80=A6] [=E2=80=A6] [=E2=80=A6= ]
=C2=A0=C2=A0=C2=A0 \definefontfamily=C2=A0=C2=A0=C2=A0=C2=A0 [=E2=80=A6] = [=E2=80=A6] [=E2=80=A6]

Wolfgang
--------------080604090805030200090706-- --===============4980111954332666564== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4980111954332666564==--