From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106797 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 20:53:59 +0100 Message-ID: References: <4887b928-7e7b-03ff-002a-7bc1f5978bc5@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8515947486607870218==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="39604"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 08 21:54:26 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 1jMGmH-000AAg-Pn for gctc-ntg-context-518@m.gmane-mx.org; Wed, 08 Apr 2020 21:54:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 258731831F8; Wed, 8 Apr 2020 21:54:15 +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 Pgslb_uvXvUf; Wed, 8 Apr 2020 21:54:14 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3AA2A1831EA; Wed, 8 Apr 2020 21:54:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DFA2C183112 for ; Wed, 8 Apr 2020 21:54:12 +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 7akWWwFqML5T for ; Wed, 8 Apr 2020 21:54:11 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.41; helo=mail-ed1-f41.google.com; envelope-from=reviczky@gmail.com; receiver= Original-Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 4946A183015 for ; Wed, 8 Apr 2020 21:54:11 +0200 (CEST) Original-Received: by mail-ed1-f41.google.com with SMTP id i16so10266377edy.11 for ; Wed, 08 Apr 2020 12:54:11 -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=Wq21dOVaMib9OyYqk+ult4Aghiz6KOqM4F7moEz6dS4=; b=JtgY7s/8OBX5u6veiKBgxiS9QQVevfp+xGsOkgiRYO01MeK0Qf5OO2etOwgJMQhHP4 TQqz/OiEmwyxkvpaLrmMJGQh9Tnia3D8iAsuXszD5gkrGegd/A/XZ/4OhZVrAmVNBX/y v0KEz1Z18A36xaxAzxZa9waMQapsKfF5q/gXFgLDcek5IKjuJqtxvmMqIpEWKzFyozMt IxlS864uOKpWWCo8YN6+DLignRyxTI/NivnfgRhlkE2RHXT37x3cBv3VQ/45jJZurI84 cU7Vd0t7WdmYx8we29FFQYKcRo8oGqCnn5OKfiV50fTvbxD0Hsigr3W/Jn4n6tN1aU8+ Ffkw== 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=Wq21dOVaMib9OyYqk+ult4Aghiz6KOqM4F7moEz6dS4=; b=HW+dDTpBRiNjWRXf3ywZDkA3Yivl4BhP95hIL+ICPCAxw2w8MiOHXjIYz8+MI6YJ4S SeiBuPhP1O3XHBNV4tGCQQEpmBfOvCvqFC1Bb0268Pblx7jJhm79VlCQUaUtTtlBWXm3 flj66WVXASRbmeVDTPBPGIdvE1xhOmQUrIgsX99fsbVB9dqr28EQqUUrKfhOl1bOm7ZY T+mADxklXCLwQk5ni3VZM9AyKJ7/GPl/RCNpmA4EMA6dRrId3PF/cudtCAwXq0dtjROi aHKQ31sYAgUiK+O/KTySmRMiy8odBZ8i7lCKwZEpjQwfcetq26qOkYr6P1krqGEYChHO nzTg== X-Gm-Message-State: AGi0PubD2ygI7ZaM5U8evpX1323TKnLm+Cd+tQwqU3Dmk3FUF/TLA90T SBonf1Yh74wSKhBpq8291JUGp6CVEOM3ts+GqjA= X-Google-Smtp-Source: APiQypLqg1k12RwRYXfHApUlLyLTlpRtNypQ9l92zWnEuZx0iIqCzgGbrVeLxpmCncg330BXcRvoOq37pCsM+qKSZzM= X-Received: by 2002:a17:906:53cb:: with SMTP id p11mr7979457ejo.145.1586375650771; Wed, 08 Apr 2020 12:54:10 -0700 (PDT) In-Reply-To: <4887b928-7e7b-03ff-002a-7bc1f5978bc5@xs4all.nl> 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:106797 Archived-At: --===============8515947486607870218== Content-Type: multipart/alternative; boundary="0000000000002508ab05a2ccdd68" --0000000000002508ab05a2ccdd68 Content-Type: text/plain; charset="UTF-8" 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? Still using luatex and not luametatex. ConTeXt ver: 2020.04.08 14:34 MKIV beta fmt: 2020.4.8 int: english/english mtx-context | current version: 2020.04.08 14:34 This is LuaTeX, Version 1.13.0 (TeX Live 2020/Debian) Compiled with libpng 1.6.37; using 1.6.37 Compiled with lua version 5.3.5 Compiled with mplib version 2.00 Compiled with zlib 1.2.11; using 1.2.11 Development id: 7330 Thanks, Adam On Sat, Apr 4, 2020 at 11:24 AM Hans Hagen wrote: > On 4/4/2020 11:47 AM, Adam Reviczky wrote: > > Hi, > > > > Is there a way to achieve a short weekday option with \date[] to get 3 > > letter equivalents (Mon, Tue, Wed, Thu, Fri, Sat, Sun) similar to the > > monthshort either through context or lua? > Not currently but I will add the basics (I have to double check with WS > to see where if conflicts as such an extension involves additional > commands it has to go into the setups too) but others have to add the > abbreviations. > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --0000000000002508ab05a2ccdd68 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you Hans and Wolfgang,

I have updated the wiki (https://wiki.contextgarden.net/Command/date) with the new daysho= rt/daylong options, but I seem to get an empty value for every day after da= y 7, see example:

\starttext
\date[d=3D7,m=3D4,= y=3D2008][{\dayshort\normalday},{,~},day,~,month,~,year] \par
\date[d=3D= 8,m=3D4,y=3D2008][{\dayshort\normalday},{,~},day,~,month,~,year]
\stopte= xt

This gives me (note "sun" is missing = in the second line):

sat, 7 April 2008
, 8 Apri= l 2008

Am I using the options correctly?
=
Still using luatex and not luametatex.

Co= nTeXt =C2=A0ver: 2020.04.08 14:34 MKIV beta =C2=A0fmt: 2020.4.8 =C2=A0int: = english/english
mtx-context =C2=A0 =C2=A0 | current version: 2020= .04.08 14:34

This is LuaTeX, Version 1.13.0 (TeX L= ive 2020/Debian)
Compiled with libpng 1.6.37; using 1.6.37
Com= piled with lua version 5.3.5
Compiled with mplib version 2.00
Compile= d with zlib 1.2.11; using 1.2.11
Development id: 7330

=
Thanks,
Adam

--0000000000002508ab05a2ccdd68-- --===============8515947486607870218== 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== --===============8515947486607870218==--