From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109639 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: Re: Issue with tex.romannumeral output Date: Wed, 25 Nov 2020 14:47:26 -0500 Message-ID: References: <10fab5d4-6844-6c26-134c-f4676acfca4e@gmail.com> <99250A07-9223-4123-AF4C-60C4F37A9D28@hxcore.ol> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4768712459398163393==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19001"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users , josephcanedo@gmail.com Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 25 20:48:07 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ki0lr-0004pf-NN for gctc-ntg-context-518@m.gmane-mx.org; Wed, 25 Nov 2020 20:48:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F2601AA5C3; Wed, 25 Nov 2020 20:47:41 +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 MyD8RdbcZQU4; Wed, 25 Nov 2020 20:47:40 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2F4D31AA5CA; Wed, 25 Nov 2020 20:47:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 667461AA420 for ; Wed, 25 Nov 2020 20:47:39 +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 x4nQtNGSjTLK for ; Wed, 25 Nov 2020 20:47:38 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.52; helo=mail-wr1-f52.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 826001BA167 for ; Wed, 25 Nov 2020 20:47:38 +0100 (CET) Original-Received: by mail-wr1-f52.google.com with SMTP id r3so3105616wrt.2 for ; Wed, 25 Nov 2020 11:47:38 -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; bh=rVhbUFp7uijBmqmQa3lIT6MhVrcVrSM9cel+zKcnpA4=; b=QwXEJEbs43+6dWv0F9B8oSArQLFRI8iAUc20eURwfVHIIN+8QC6ueSn+J6Qlx48+xa pI8qSKs/U4HZ2Zm290VO4m43igxyJ3obVYTHmDPZnsE5X2SIKoQhc3F0QnFxAcs8dM1C m2s/iAs21lSEKRwixElz0UDgh4jZq90iORG/BpVXTXCQ4n5xb5peCbJYlvfGGaURgiKR 57VAxNqxSd0fwlNtfapmK5Soi5XaanWr+mW1S8OvoSQeHf9JAwXbV7ARobE8p7e2c2Jy zh1UBv2M+0xg+0sYf7qn56TmCKfrVBRg4WwQ18/NA9rO27FZIGwjEqIO1z9ks0uxogwF 4iwg== 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; bh=rVhbUFp7uijBmqmQa3lIT6MhVrcVrSM9cel+zKcnpA4=; b=MPNMhVSgr4MFkoZVDiAwKHgV4Tx417D1edk+IJhA9NKj6gn2cG6B+BXFMPXMAFzNV5 s5sArpAuRi2HaokJk7hCDksjf/tZrChcyJWVPFUZHT35TbeY7HUjU7+kqnUuWCOr+fnA gRLIzxMpj6NvdeleUH9Yj9PCabaw4wuQxqRAlNy6cNI+CnEjV0R3Wk+BXg9DVhJSFAIJ qeGDsbBxH4Bpo7ven5kG6tymBgwLRZgDw4YA1Gd9AK/S7VtV8HFfnMe6SXLQN7m72KHa SgG2+lC5gePo4LyQ0fKgL6rGLc0YbykMjWdm3ubrCg460D0Tclu0N/B0TcwT6rmRmtp2 LSAA== X-Gm-Message-State: AOAM530NfIfXZ9y1NZ3SxNmZ6Th3HCIL6TLcNPiWul+zoq0yL9Hh6S8D DE+ppQxlpXhledqjaqnU6CKTEEYXBtfh088G3a/4AQfNtBxeCA== X-Google-Smtp-Source: ABdhPJxnJppplgkuuUFEyP8uQv3iDIy+LQEkeYpCjW1/njUPhFAAuUhYYa5cxdejgVMjZmQoWDOqBphNKgEdrzlOKiY= X-Received: by 2002:a5d:6805:: with SMTP id w5mr5981865wru.266.1606333657556; Wed, 25 Nov 2020 11:47:37 -0800 (PST) In-Reply-To: <99250A07-9223-4123-AF4C-60C4F37A9D28@hxcore.ol> 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.io gmane.comp.tex.context:109639 Archived-At: --===============4768712459398163393== Content-Type: multipart/alternative; boundary="0000000000000ca9cd05b4f3b3a9" --0000000000000ca9cd05b4f3b3a9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Joseph. Something like this? \starttext \cldcontext{converters.convert("r",118):gsub("i$", "j") } \stoptext Jairo El mi=C3=A9, 25 de nov. de 2020 a la(s) 14:30, Joseph (josephcanedo@gmail.c= om) escribi=C3=B3: > Yes, I replace last =E2=80=98i=E2=80=99 with a =E2=80=98j=E2=80=99 in rom= an number, that=E2=80=99s to mimic old > typesetting (very specific case for sure :-). > > Ie 118 -> cxiij > > Is there a way to do this with convertnumber anyhow ? > > > > *De : *Wolfgang Schuster > *Envoy=C3=A9 le :*mercredi 25 novembre 2020 20:11 > *=C3=80 : *mailing list for ConTeXt users > *Cc : *Joseph > *Objet :*Re: [NTG-context] Issue with tex.romannumeral output > > > > Joseph schrieb am 25.11.2020 um 19:51: > > > Dear list, > > > > > > Following MWE outputs only =E2=80=98m=E2=80=99 characters (with latest = upload). > > > > Is there a reason why you don't use the conversion mechanism? > > > > \starttext > > > > \convertnumber{r}{7} > > > > \cldcontext{converters.convert("r",7)} > > > > \stoptext > > > > Wolfgang > > > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --0000000000000ca9cd05b4f3b3a9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Joseph.

Something like this?
\starttext
\cldcontext{converters.convert("r",118):gsub(&= quot;i$", "j") }
\stoptext

Jairo


El mi=C3=A9, 25 de nov. de 2020 a la(s) 14:30, Joseph (josephcanedo@gmail.com) escribi= =C3=B3:

Yes, I replace last =E2=80=98i=E2=80=99 with a =E2=80=98j=E2= =80=99 in roman number, that=E2=80=99s to mimic old typesetting (very speci= fic case for sure=C2=A0:-).

Ie 118 -> cxiij

Is there a way to do this with convertnumber anyhow= =C2=A0?

=C2=A0

De=C2=A0: Wolfgang Schus= ter
Envoy=C3=A9 le=C2=A0:mercredi 25 novembre 2020 20:11
<= b>=C3=80=C2=A0: mailing list for ConTeXt users
Cc=C2=A0: Joseph
Objet=C2=A0:R= e: [NTG-context] Issue with tex.romannumeral output

=C2=A0

Joseph schrieb am 2= 5.11.2020 um 19:51:

> Dear list,

>

> Following MWE outputs o= nly =E2=80=98m=E2=80=99 characters (with latest upload).

=C2=A0

Is there a reason wh= y you don't use the conversion mechanism?

= =C2=A0

\starttext

=C2=A0

\convertnumber{r}{7}

=C2=A0

\cl= dcontext{converters.convert("r",7)}

= =C2=A0

\stoptext

=C2=A0

Wolfgang

=C2=A0

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000000ca9cd05b4f3b3a9-- --===============4768712459398163393== 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== --===============4768712459398163393==--