On 11/3/2021 7:49 PM, Pablo Rodriguez via ntg-context wrote:
Dear list,
I have the following sample:
\starttext
\startluacode
main_file = document.files[1]
if file.pathpart(main_file) == "" then
main_filename = file.nameonly(main_file)
main_filename_win = main_filename
Dear list,
I have the following sample:
\starttext
\startluacode
main_file = document.files[1]
if file.pathpart(main_file) == "" then
main_filename = file.nameonly(main_file)
main_filename_win = main_filename
else
main_filename =
Hi again. I've noticed \hyphenateddigits fails with alphabetical symbols,
e.g. with hexadecimal numbers. Maybe there's a better solution, but
something like
--From phys-dim.lua
actions = function(filler, digits)
digits = gsub(digits,"(%d)","%1\\digitsbreak ") --space added.
Would a