From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106799 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Adam Reviczky Newsgroups: gmane.comp.tex.context Subject: Re: Short weekday option for date command Date: Wed, 8 Apr 2020 21:14:29 +0100 Message-ID: References: <4887b928-7e7b-03ff-002a-7bc1f5978bc5@xs4all.nl> <29896873-a7e8-664e-a574-377fd6952588@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1193533055454724416==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="5312"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 08 22:15:53 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jMH73-0001F7-FP for gctc-ntg-context-518@m.gmane-mx.org; Wed, 08 Apr 2020 22:15:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7EBFB1831CB; Wed, 8 Apr 2020 22:14:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uwd_C8mQbnb0; Wed, 8 Apr 2020 22:14:43 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 241481831FB; Wed, 8 Apr 2020 22:14:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7ED281831EA for ; Wed, 8 Apr 2020 22:14:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uIXAtCsI5MFO for ; Wed, 8 Apr 2020 22:14:41 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.54; helo=mail-ed1-f54.google.com; envelope-from=reviczky@gmail.com; receiver= Original-Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B39D21831CB for ; Wed, 8 Apr 2020 22:14:41 +0200 (CEST) Original-Received: by mail-ed1-f54.google.com with SMTP id bd14so10335390edb.10 for ; Wed, 08 Apr 2020 13:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=y7nj0gfOcEqJuecKamih01qRJMUYC8mELqrkMZtUsIg=; b=QQGbtZi7SI3gollU+WGr7ifHc1sltKhPtr6BuW4pUw0TBYLmk18E3Nfk53zUhNE5Xl uh2536RjPv9psGoht5jgiv2X0mpQro1Pv6NNr5BzZEA/SAoJjA1hhewrWOuicZiuGX0L tiVmAJM2dtjvDDJWbGBQubwJ02UNgdOJw8Z4+sdLR3kTPIxDJ5SXVmrql9ccbtAoEUCn l+/FOBOK0R4WY307AeeegJ9vcrOnZhGVVOs2YsX2sv5xxv8i6lzgOKNHxCnrnDSs2ATf HmA61eYY514naCt8lxtphFYtxY1ptwfARBhh+zhXLdnPTBkSzJrO+GG7+Q24KBNj6f5T zGMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y7nj0gfOcEqJuecKamih01qRJMUYC8mELqrkMZtUsIg=; b=n//Zghbh/0o7FHuNgn7GRwcnE659rRoLhaECr8KqRYRPkkj/ZVwO4MT2bI/wfWIPXQ f39RL18EM0ZujB31qo24Prmj4HHQhvk7iMBIMmvuzjYhd9uvetDZiByxYJ6ZySv7xT2c U7e6YqCf/rfOTng7A5v/Hh5v2uxdueLitg2Y0Hno7hcZkC+ll+l1LpsS5zzIA9Dm3O4w jJVAM3KVkfZ4sE345WPi0Dj8gw/FBlyMWDsgZRzf3KPSi9GEEpfQHzTR1YoL3HWKgTJz 8BofBTlvOklp2D6PjEpRWGWbzAMQLDT0dcu27NqcQLtTtpGZ2kSNUqfDx9DF7edohf/4 7RyA== X-Gm-Message-State: AGi0Pub2uspCWehjIHDr3LzJS0u/DYNsDev1yTE2Gb2K9u3GdwqhjpU3 HkJg0hOQ3+GS5Cep62aFWjt9bhTsyIgUkt6ah6M= X-Google-Smtp-Source: APiQypLBPU8tBoAyc0x1gRrt5PiYIA4+nET7c3HHUKQehT0Z2fe7hHtZemEG+KJhiKfiLCZV7cEMqT9SxP2+KW3MNWk= X-Received: by 2002:a17:906:30d7:: with SMTP id b23mr1433049ejb.108.1586376881441; Wed, 08 Apr 2020 13:14:41 -0700 (PDT) In-Reply-To: <29896873-a7e8-664e-a574-377fd6952588@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:106799 Archived-At: --===============1193533055454724416== Content-Type: multipart/alternative; boundary="0000000000007f943a05a2cd26b0" --0000000000007f943a05a2cd26b0 Content-Type: text/plain; charset="UTF-8" Thank you Wolfgang! Adam On Wed, Apr 8, 2020 at 9:11 PM Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote: > 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 > --0000000000007f943a05a2cd26b0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you Wolfgang!

Adam
=

On Wed, Apr 8, 2020 at 9:11 PM Wolfgang Schuster <wolfgang.schuster.lists@gmail.com&= gt; wrote:
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 valu= e
> for every day after day 7, see example:
>
> \starttext
> \date[d=3D7,m=3D4,y=3D2008][{\dayshort\normalday},{,~},day,~,month,~,y= ear] \par
> \date[d=3D8,m=3D4,y=3D2008][{\dayshort\normalday},{,~},day,~,month,~,y= ear]
> \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<= br> to be used in \currentdate.

> Still using luatex and not luametatex.

To get the short names with \currentdate you have to append ":mnem&quo= t; to
the weekday, w, WEEKDAY or W keywords.

\starttext

\startlines
\date[d=3D7,m=3D4,y=3D2008][weekday,{,~},day,~,month,~,year]
\date[d=3D7,m=3D4,y=3D2008][weekday:mnem,{,~},day,~,month,~,year]
\date[d=3D8,m=3D4,y=3D2008][weekday,{,~},day,~,month,~,year]
\date[d=3D8,m=3D4,y=3D2008][weekday:mnem,{,~},day,~,month,~,year]
\stoplines

\stoptext

Wolfgang
--0000000000007f943a05a2cd26b0-- --===============1193533055454724416== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1193533055454724416==--