ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "autumnus " <ai2472206007@yeah.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Weird date output
Date: Sat, 11 Jan 2025 05:08:32 -0000	[thread overview]
Message-ID: <173657211217.1763.10893119771823225568@cgl.ntg.nl> (raw)

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
___________________________________________________________________________________

             reply	other threads:[~2025-01-11  5:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-11  5:08 autumnus  [this message]
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 

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=173657211217.1763.10893119771823225568@cgl.ntg.nl \
    --to=ai2472206007@yeah.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).