From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103564 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: Re: textext within ConTeXt Date: Sun, 3 Mar 2019 13:26:17 -0500 Message-ID: References: <20190303111257.06e98a5e@comcast.net> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3118950121603900407==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="67587"; mail-complaints-to="usenet@blaine.gmane.org" Cc: mailing list for ConTeXt users To: Alan Braslau Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 03 19:26:39 2019 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1h0Vot-000HSk-Ba for gctc-ntg-context-518@m.gmane.org; Sun, 03 Mar 2019 19:26:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B3788F7A11; Sun, 3 Mar 2019 19:26:33 +0100 (CET) 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 aQLkhOuLP_Cv; Sun, 3 Mar 2019 19:26:32 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EE348F7A13; Sun, 3 Mar 2019 19:26:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5447CF7A11 for ; Sun, 3 Mar 2019 19:26:32 +0100 (CET) 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 f9C9U7GI8cPW for ; Sun, 3 Mar 2019 19:26:31 +0100 (CET) Original-Received: from mail-oi1-f196.google.com (mail-oi1-f196.google.com [209.85.167.196]) (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 94E25F7A06 for ; Sun, 3 Mar 2019 19:26:31 +0100 (CET) Original-Received: by mail-oi1-f196.google.com with SMTP id t206so2126927oib.3 for ; Sun, 03 Mar 2019 10:26:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E2qPxKSBrHwEXy2AkBNVOYYRCUGWnDaE3gbmfd46A/E=; b=tPano6QsMcCoRQ5cb7fdnVkiTmU/Vhd4KkKij+jG9UGbSgHlA2PnYpXAgH1hODSFx4 U1CEV07ZH11axBLtuEoQyoUvv5MAqwYkbl1luKpxxx3D7NMQebb+6uZmPwezsQGLGX3x xkSywWZiv4flxYNRnHnpixOalyJAabtbhgBGaY0mftPyNQ2L/vTQ7EhdXrZ0+oBy2AEP qBkFx/fv5igJ6WQB1lr5fBWlZaffq7/IpYiFty7MILHDZYAn7CKTPzRmbJnTv1ktJdUH F2+N0jD4I0wf25jKT4he563Z0Bs84Z6xMIg0Xt6MOpYFYTrhs57U0RWpMDBZ6DBrg6f0 bL0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E2qPxKSBrHwEXy2AkBNVOYYRCUGWnDaE3gbmfd46A/E=; b=puCTml8m+3TCGZzuodAkFJWhRPVXy95OK6BVnvzXTLx7eOL3gUOTEZHYuDMFg3LEud /wB7QuQoKQWrLvckDxLjsWoxQBsjbhGWBnxGG6UiP1hjs1FsCayJp5k6cS33yyb9FU1Q BA0cwQYE2g/6tsAjt05QUzpx2oN4UBiyZZ58OiyigkhtEs0l0I7p68vVq7Yx427dfvP0 FDyrr86+sfG9aFD45HMxpJSPma4lXc+cz8bIiqVsTdc3SbsHJWGnc5a6vyWdi9T+yZhD q6LWwh+ReDukkwJqUSYgAFqF/bWTwI4O1nvGB8AeWzls1lkedjLkROXJmaTaYv5vRKG0 yNWA== X-Gm-Message-State: APjAAAXrvR3bvvQQvmA3NXy/gNIjL5cv10BOchTCgj1fzw9cLGbqknUq tkiLBJfi1hc8f7QPEDGeAtH1rBohP2FWDXJv43MIoqBj X-Google-Smtp-Source: AHgI3IYpX58I6UEmn1M3Bc2S8CZm4X/daGf1b9nD69wJWOR+slgViHL8RuQfWT7CX3g49gPiE7F0/qUVDMOCRyE2KHM= X-Received: by 2002:aca:aa07:: with SMTP id t7mr9610786oie.126.1551637590249; Sun, 03 Mar 2019 10:26:30 -0800 (PST) In-Reply-To: <20190303111257.06e98a5e@comcast.net> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:103564 Archived-At: --===============3118950121603900407== Content-Type: multipart/alternative; boundary="00000000000063171d058334c753" --00000000000063171d058334c753 Content-Type: text/plain; charset="UTF-8" This is quite counterintuitive... It also happens if I define a string variable, use concatenate operator to set its value, and then finally pass the string to textext macro. Is there a way to get around this issue? On Sun, Mar 3, 2019, 1:13 PM Alan Braslau wrote: > On Sun, 3 Mar 2019 12:52:53 -0500 > Mohammad Hossein Bateni wrote: > > > Hi, > > > > I can't understand why the following code does not work. Could someone > > help me out here? > > > > \starttext > > \startMPpage > > draw textext("\convertnumber{r}{12}"); > > draw textext("\convertnumber{r}{" & "12" & "}"); > > \stopMPpage > > \stoptext > > > > The first draw statement works perfectly. But the second one throws out > > errors and complains as follows: > > Because luatex intercepts and processes \convertnumber{r}{ > and tries to pass this result to MP as a string, not the other way around. > > Alan > --00000000000063171d058334c753 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is quite counterintuitive... It also happens if I de= fine a string variable, use concatenate operator to set its value, and then= finally pass the string to textext macro.

Is there a way to get around this issue?

On Sun, Mar 3, 2= 019, 1:13 PM Alan Braslau <b= raslau.list@comcast.net> wrote:
On Sun, 3 Mar 2019 12:52:53 -0500
Mohammad Hossein Bateni <bateni@gmail.com> wrote:

> Hi,
>
> I can't understand why the following code does not work.=C2=A0 Cou= ld someone
> help me out here?
>
> \starttext
> \startMPpage
> draw textext("\convertnumber{r}{12}");
> draw textext("\convertnumber{r}{" & "12" &= "}");
> \stopMPpage
> \stoptext
>
> The first draw statement works perfectly.=C2=A0 But the second one thr= ows out
> errors and complains as follows:

Because luatex intercepts and processes \convertnumber{r}{
and tries to pass this result to MP as a string, not the other way around.<= br>
Alan
--00000000000063171d058334c753-- --===============3118950121603900407== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3118950121603900407==--