On 11/29/2023 7:56 AM, Yihan Song wrote:
Dears,
I am opening a PR https://github.com/contextgarden/context/pull/1 to improve the Chinese date conversion but it seems that repo is just a mirror site without development activities, can someone help to review this one?
sending patched files is faster (i need to check and diff anyway) can you test with this: if name == "date" then -- We could do some number juggling instead but this is fast enough. There is -- no error checking here so we assume a proper year. Maybe a better name is -- asis (so that it can be used for more than dates). local vector = vector.normal for s in gmatch(tostring(n),".") do r = r + 1 ; result[r] = vector[tonumber(s)] end return concat(result) end (btw, we also need to adapt the lmt file ... once mkiv is frozen we only add to lmtx) 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 -----------------------------------------------------------------