Just to clarify. The new \hyphenateddigits means that with
a couple of tightly packed columns of footnotes it is now
possible to break a textual reference such as this across
two lines.
({\it Ṛgveda}~\hyphenateddigits{1.114.10})
This is just great, and I can see it being used reasonably
often.
Best, Richard
--
Indica et Buddhica Littledene Bay Road Oxford NZ
-------- Forwarded Message --------
Subject: Re: [NTG-context] Hyphenation on digits
Date: Fri, 29 Jan 2021 04:52:34 +1300
Mailer: Cyrus-JMAP/3.5.0-alpha0-84-gfc141fe8b8-fm-20210125.001-gfc141fe8
X-Spam-Score: 0.0
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
--
Indica et Buddhica Littledene Bay Road Oxford NZ
----- Original message -----
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.
>
> I want to know if ConTeXt provides an option to automatically
> hyphenate/break digits as if they were alphabetic characters. Example,
> in a narrow page I expect something like that (I've used (-) for an
> optional hyphen):
>
> *π = *3.141592653(-)
> 58979323846264(-)
> 33832795028841(-)
> 97169399375105(-)
> ...
>
> I found myself unable to read a satisfactory solution in the mailing
> list archive nor other TeX related resources. Maybe LMTX has some magic
> for that?
I'll add support for:
\starttext
\hsize6cm
\pi\ =
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}
\blank
\pi\ =
\hyphenateddigits{3.141592653589793238462643383279502884197169399375105}
\blank
x $\pi =
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}$
\blank
x $\pi =
\hyphenateddigits{3.141592653589793238462643383279502884197169399375105}$
\blank
\stoptext
A quick and dirty hack as we don't need some full blown mechanism for
such a rare case.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
___________________________________________________________________________________