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] Re: Weird date output
Date: Sun, 12 Jan 2025 13:27:58 -0000	[thread overview]
Message-ID: <173668847812.1763.13846366685898342573@cgl.ntg.nl> (raw)
In-Reply-To: <20250112111108.GA27364@thala.cz>

hi, Tomáš

Thank you for your help.

The format that is currently more commonly used is the first one.
%%%%
\starttext
\language[cn]
\definedfont[name:adobesongstdlight]
modern and mostly used :      \currentdate[year,年,M,月,day,日]  : 2025年1月12日

traditional and special case:  \currentdate[year:cn-d,年,month,day:cn,日]  : 二〇二五年一月十二日

The addition of spaces should only be added between numbers and kanji. 
The addition of spaces should take effect not only in the date, but in all texts.
If you add a space it should be:

2025 年 1 月 12 日      (between numbers and kanji)
二〇二五年一月十二日  (no space added)
\stoptext
%%%%

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-12 13:28 UTC|newest]

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