ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Weird date output
@ 2025-01-11  5:08 autumnus 
  2025-01-11 17:17 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: autumnus  @ 2025-01-11  5:08 UTC (permalink / raw)
  To: ntg-context

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 二〇二五年一月 十一号

autumnus
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-01-14 12:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-11  5:08 [NTG-context] Weird date output autumnus 
2025-01-11 17:17 ` [NTG-context] " Wolfgang Schuster
2025-01-12  5:16   ` autumnus 
2025-01-12 11:11     ` Tomáš Hála
2025-01-12 13:27       ` autumnus 
2025-01-12 13:31         ` autumnus 
2025-01-13 16:43     ` Wolfgang Schuster
2025-01-13 18:02       ` Hans Hagen
2025-01-13 19:09         ` Wolfgang Schuster
2025-01-13 20:33           ` Hans Hagen
2025-01-14 12:08             ` autumnus 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).