From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110411 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Richard Mahoney" Newsgroups: gmane.comp.tex.context Subject: Re: Hyphenation on digits Date: Fri, 29 Jan 2021 04:52:34 +1300 Message-ID: References: Reply-To: Richard Mahoney , mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3673016717638844155==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12382"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-84-gfc141fe8b8-fm-20210125.001-gfc141fe8 To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 28 16:55:39 2021 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 1l59dz-000334-5i for gctc-ntg-context-518@m.gmane-mx.org; Thu, 28 Jan 2021 16:55:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2E7231C1E2D; Thu, 28 Jan 2021 16:55:06 +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 opjc1uL90ttH; Thu, 28 Jan 2021 16:55:04 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3BAFE1C1E44; Thu, 28 Jan 2021 16:55:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 41AFA1C1E2C for ; Thu, 28 Jan 2021 16:55:03 +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 6clGTreF847T for ; Thu, 28 Jan 2021 16:55:01 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=103.2.142.21; helo=e2i533.smtp2go.com; envelope-from=bt.ddxb7llp30=jol9j7qx6csr=h58kn1ihf8@em110947.indica-et-buddhica.org; receiver= X-Greylist: delayed 122 seconds by postgrey-1.36 at zapf.ntg.nl; Thu, 28 Jan 2021 16:55:00 CET Original-Received: from e2i533.smtp2go.com (e2i533.smtp2go.com [103.2.142.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0081C1C18A0 for ; Thu, 28 Jan 2021 16:55:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a1-4; h=Feedback-ID:X-Smtpcorp-Track:Subject:To:Reply-To: From:Date:Message-Id:Sender:List-Unsubscribe; bh=r4eWJDYkd0xws6jY47uLNEbia73/20GwMLISL6MAa80=; b=rPFYoyovmGg4zR2hoAEq2Pp86V qsrNebZoqdUCxtOGhbm5MzNCYyoUc3QNc4uYsfPaDZR6nYPNmp1BakepQAYSzVHheeo+jEtUaltvt GLI6BBfO0VwJceXzCvw3Z7m3xDR3lgTy2AD+6or0/8daMRU3/+hgYroFzYNR8MdowBrtF18gxx0ry R0y3HUgDxVybIFdDZJJPw1Y8tLyy3iHUyIW84dFPlS8V27kWr7z8RSnu0ivLa3M7QCnppRyJtcoGr ZHla3oxleAfeEyC5C/PD0wL4ln6XmA1kOtGKv0ISnIBNF0eh8HrFFvt1BqCzwMtaI1NmKTaTpe0xD 8oiPL6kw==; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=indica-et-buddhica.org; i=@indica-et-buddhica.org; q=dns/txt; s=s110947; t=1611849301; h=from : subject : to : message-id : date; bh=r4eWJDYkd0xws6jY47uLNEbia73/20GwMLISL6MAa80=; b=AXYp/RLDMMNSgRDIIxGGj8K4Pn98brMbbCwaAiYFks513YBojZlLBbcgvyfWDhgq9aEFY gFdscLqZlzxS6fdqtqtN2ytXouF+NRZfNpiAieHryC/LdkSriH0cVlZU52e4DdJGrn9bGDD 9hhrYWCKxVLRbIe3NdyiACVkoktlojg1e+q5mZ81HdJqulVc7gFZFRZ6olWJO/iPb+h+bJB ZTGwvj2X8hzFN/OoL6zT3H/ingdSUMzf/ssq1MKXff/6eXum1Bt7gFzfreSv2pD1olSs/Zy xoVYTiRsjj6Pspqu110mZf3IuIQ9wiF1G+ydPr5Vo66nIhb4sP3wAie979/g== Original-Received: from [10.45.33.53] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92-S2G) (envelope-from ) id 1l59bH-qt4Fa3-7r; Thu, 28 Jan 2021 15:52:51 +0000 Original-Received: from [10.66.111.4] (helo=auth1-smtp.messagingengine.com) by smtpcorp.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92-S2G) (envelope-from ) id 1l59bF-rlZAry-Iz; Thu, 28 Jan 2021 15:52:49 +0000 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id D5B6827C0054; Thu, 28 Jan 2021 10:52:47 -0500 (EST) Original-Received: from imap8 ([10.202.2.58]) by compute2.internal (MEProxy); Thu, 28 Jan 2021 10:52:47 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedtgdejlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhfhrvffutgesrgdtreerreerjeenucfhrhhomhepfdftihgt hhgrrhguucforghhohhnvgihfdcuoehrmhgrhhhonhgvhiesihhnughitggrqdgvthdqsg huugguhhhitggrrdhorhhgqeenucggtffrrghtthgvrhhnpeeijeejteffhfffvddtudef gfefveeiffekhedvfeehfeektdfguddvhfevveeileenucffohhmrghinhepthdrmhgvpd hinhguihgtrgdqvghtqdgsuhguughhihgtrgdrohhrghdpphhrrghgmhgrqdgruggvrdhn lhdpphhrrghgmhgrqdhpohgurdhnlhdpnhhtghdrnhhlpdgrrghnhhgvthdrnhgvthdpsg hithgsuhgtkhgvthdrohhrghdptghonhhtvgigthhgrghruggvnhdrnhgvthenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrmhgrhhhonhgvhi domhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddtkeejgeehieehiedquddv tdeguddvieduqdhrmh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 79DDB3A0064; Thu, 28 Jan 2021 10:52:47 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: X-Smtpcorp-Track: 1_59PFr_Zjrymz.EX3SE2yyFJmPV Feedback-ID: 110947m:110947aBbyAFj:110947sB0oLlKEln X-Report-Abuse: Please forward a copy of this message, including all headers, to 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:110411 Archived-At: --===============3673016717638844155== Content-Type: multipart/alternative; boundary=6b0d5655a08e4796ad7b6a868d83c4d8 --6b0d5655a08e4796ad7b6a868d83c4d8 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you for this Hans, its going to be very useful for breaking bibliographic refs including manuscript or inscription codes in two column mode. Best, Richard -- *T* +6433121699 *M* +64210640216 *E* rmahoney@indica-et-buddhica.org *IM* https://t.me/rmahoney *W *https://indica-et-buddhica.org/** *Indica et Buddhica *Littledene Bay Road Oxford NZ ----- Original message ----- From: Hans Hagen To: mailing list for ConTeXt users , "Jairo A. del R= io" Subject: Re: [NTG-context] Hyphenation on digits Date: Friday, 29 January 2021 03:00 On 1/28/2021 12:50 PM, Jairo A. del Rio wrote: > Hi, list. >=20 > I want to know if ConTeXt provides an option to automatically=20 > hyphenate/break digits as if they were alphabetic characters. Example,= =20 > in a narrow page I expect something like that (I've used (-) for an=20= > optional hyphen): >=20 > *=CF=80 =3D *3.141592653(-) > 58979323846264(-) > 33832795028841(-) > 97169399375105(-) > ... >=20 > I found myself unable to read a satisfactory solution in the mailing=20= > list archive nor other TeX related resources. Maybe LMTX has some magi= c=20 > for that? I'll add support for: \starttext \hsize6cm \pi\ =3D=20 \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169= 399375105}=20 \blank \pi\ =3D=20 \hyphenateddigits{3.141592653589793238462643383279502884197169399375105}= =20 \blank x $\pi =3D=20 \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169= 399375105}$=20 \blank x $\pi =3D=20 \hyphenateddigits{3.141592653589793238462643383279502884197169399375105}= $=20 \blank \stoptext A quick and dirty hack as we don't need some full blown mechanism for=20= such a rare case. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ________________________________________________________________________= ___________ If your question is of interest to others as well, please add an entry t= o the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-c= ontext webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ________________________________________________________________________= ___________ --6b0d5655a08e4796ad7b6a868d83c4d8 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable p.Ms= oNormal,p.MsoNoSpacing{margin:0}
Thank=20you=20for= =20this=20Hans,=20its=20going=20to=20be=20very=20useful=20for
breaking=20bibliographic=20refs=20including manuscript=20or
inscription=20codes=20in=20two=20column=20mode.
Best,=20Richard


--
T=20+6433121699 =20M=20+64210640216 =20<= b>E=20rmahoney@ind= ica-et-buddhica.org
IM= =20https://t.me/rmahoney =20W=20https://indica-et-bu= ddhica.org/

Indica=20et=20Buddhica=20 Littledene =20Bay=20Road&nb= sp;=20Oxford =20NZ


=
-----=20Original=20message=20-----
From:=20Hans=20= Hagen=20<j.hagen@xs4all.nl>= ;
To:=20mailing=20list=20for=20ConTeXt=20users=20<ntg-context@ntg.nl>,=20"Jairo=20A.= =20del=20Rio"=20<jairoadelr= io6@gmail.com>
Subject:=20Re:=20[NTG-context]=20Hyphen= ation=20on=20digits
Date:=20Friday,=2029=20January=202021=200= 3:00

=
On=201/28/2021=2012:50=20PM,=20Jairo=20A.=20del=20Rio=20wrote:
>=20Hi,=20list.

>=20I= =20want=20to=20know=20if=20ConTeXt=20provides=20an=20option=20to=20automati= cally 
>=20hyphenate/break=20digits=20as=20if=20they= =20were=20alphabetic=20characters.=20Example, 
>=20in= =20a=20narrow=20page=20I=20expect=20something=20like=20that=20(I've=20used= =20(-)=20for=20an 
>=20optional=20hyphen):
<= div>> 
>=20*=CF=80=20=3D=20*3.141592653(-)
>=2058979323846264(-)
>=2033832795028841(-)
<= /div>
>=2097169399375105(-)
>=20...
&= gt; 
>=20I=20found=20myself=20unable=20to=20read=20a= =20satisfactory=20solution=20in=20the=20mailing 
>=20= list=20archive=20nor=20other=20TeX=20related=20resources.=20Maybe=20LMTX=20= has=20some=20magic 
>=20for=20that?
I'll=20add=20support=20for:

\start= text

\hsize6cm

&n= bsp;  =20\pi\=20=3D 
\hyphenateddigits[\unknow= n]{3.141592653589793238462643383279502884197169399375105} 
 =20\blank
   =20\pi\=20=3D 
<= /div>
\hyphenateddigits{3.141592653589793238462643383279502884197169399= 375105} 
        = ;   =20\blank
x=20$\pi =20=3D 
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884= 197169399375105}$ 
\blank
x=20$\pi = =20=3D 
\hyphenateddigits{3.1415926535897932384626433832= 79502884197169399375105}$ 
     = ;    =20\blank

\stoptext

A=20quick=20and=20dirty=20hack=20as=20we=20don'= t=20need=20some=20full=20blown=20mechanism=20for 
such= =20a=20rare=20case.

Hans


----------------------------------------------------= -------------
        = ;            &n= bsp;            = ;         =20Hans=20Hagen=20|= =20PRAGMA=20ADE
       &nb= sp;      =20Ridderstraat=2027=20|=208061=20GH= =20Hasselt=20|=20The=20Netherlands
    &n= bsp;  =20tel:=20038=20477=2053=2069=20| www.pragma-ade.nl=20| www.pragma-pod.nl
-------------------------= ----------------------------------------
____________________= _______________________________________________________________
If=20your=20question=20is=20of=20interest=20to=20others=20as=20well,=20p= lease=20add=20an=20entry=20to=20the=20Wiki!

ma= illist=20: ntg-context@ntg.nl<= /a>=20/ h= ttp://www.ntg.nl/mailman/listinfo/ntg-context
webpage&nbs= p;=20: http://www.pragma-ade.nl= =20/ http://context.aanhet= .net
archive =20: https://bitbucket.org/phg/context-mirror= /commits/
wiki    =20: http://contextgarden.net
__= ___________________________________________________________________________= ______


--6b0d5655a08e4796ad7b6a868d83c4d8-- --===============3673016717638844155== 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== --===============3673016717638844155==--