Am 11.01.2025 um 06:08 schrieb autumnus:
hi,
When I try to output the Chinese date with the command below, I find that it doesn't process the month at all. No matter how I try any of the "month,month:cn-a,month:cn-c,month:cn-d" conversions Unless I pre-set the labeltext for the Chinese month.
%%%% \definedfont[name:adobesongstdlight] \currentdate[year:cn-d,年,month:cn-a,day:cn,号] %output : 二〇二五年January 十一号
\setuplabeltext [en][january={一月},] \currentdate[year:cn-d,年,month:cn-a,day:cn,号] %output : 二〇二五年一月 十一号 %%%%
If so, then when should I use those conversion method ? (At present, the output of "month:cn-d" is only suitable for the year, not the month and day. Its naming is somewhat misleading)
What's more, there seems to be a strange space here between the month and the day. It should output 二〇二五年一月十一号 instead 二〇二五年一月 十一号
1. You can't apply a number conversion for months. 2. You can switch languages to get label texts for chinese. \starttext \currentdate[month,day] \language[cn] \definedfont[name:adobesongstdlight] \currentdate[month,day:cn] \stoptext 3. The space after the month is inserted on purpose to get a space between the month and day as can be seen in the example above. To prevent this auto space for chinese a language check can be added to the date command. Wolfgang