From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Adam Reviczky <reviczky@gmail.com>
Subject: Re: Short weekday option for date command
Date: Wed, 8 Apr 2020 22:11:33 +0200 [thread overview]
Message-ID: <29896873-a7e8-664e-a574-377fd6952588@gmail.com> (raw)
In-Reply-To: <CABaoHuu9B8qzHJ_Dco75Lnu3YwkZyizQhSMnh38iXgvT87SZwA@mail.gmail.com>
Adam Reviczky schrieb am 08.04.2020 um 21:53:
> Thank you Hans and Wolfgang,
>
> I have updated the wiki (https://wiki.contextgarden.net/Command/date)
> with the new dayshort/daylong options, but I seem to get an empty value
> for every day after day 7, see example:
>
> \starttext
> \date[d=7,m=4,y=2008][{\dayshort\normalday},{,~},day,~,month,~,year] \par
> \date[d=8,m=4,y=2008][{\dayshort\normalday},{,~},day,~,month,~,year]
> \stoptext
>
> This gives me (note "sun" is missing in the second line):
>
> sat, 7 April 2008
> , 8 April 2008
>
> Am I using the options correctly?
No, the \daylong and \dayshort expect a number between 1 and 7 and
result in a label for the requested day of the week but it's not meant
to be used in \currentdate.
> Still using luatex and not luametatex.
To get the short names with \currentdate you have to append ":mnem" to
the weekday, w, WEEKDAY or W keywords.
\starttext
\startlines
\date[d=7,m=4,y=2008][weekday,{,~},day,~,month,~,year]
\date[d=7,m=4,y=2008][weekday:mnem,{,~},day,~,month,~,year]
\date[d=8,m=4,y=2008][weekday,{,~},day,~,month,~,year]
\date[d=8,m=4,y=2008][weekday:mnem,{,~},day,~,month,~,year]
\stoplines
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-04-08 20:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-04 9:47 Adam Reviczky
2020-04-04 10:24 ` Hans Hagen
2020-04-08 19:53 ` Adam Reviczky
2020-04-08 20:11 ` Wolfgang Schuster [this message]
2020-04-08 20:14 ` Adam Reviczky
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=29896873-a7e8-664e-a574-377fd6952588@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=reviczky@gmail.com \
/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).