* Short weekday option for date command @ 2020-04-04 9:47 Adam Reviczky 2020-04-04 10:24 ` Hans Hagen 0 siblings, 1 reply; 5+ messages in thread From: Adam Reviczky @ 2020-04-04 9:47 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 202 bytes --] 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? Thanks, Adam [-- Attachment #1.2: Type: text/html, Size: 297 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Short weekday option for date command 2020-04-04 9:47 Short weekday option for date command Adam Reviczky @ 2020-04-04 10:24 ` Hans Hagen 2020-04-08 19:53 ` Adam Reviczky 0 siblings, 1 reply; 5+ messages in thread From: Hans Hagen @ 2020-04-04 10:24 UTC (permalink / raw) To: mailing list for ConTeXt users, Adam Reviczky 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Short weekday option for date command 2020-04-04 10:24 ` Hans Hagen @ 2020-04-08 19:53 ` Adam Reviczky 2020-04-08 20:11 ` Wolfgang Schuster 0 siblings, 1 reply; 5+ messages in thread From: Adam Reviczky @ 2020-04-08 19:53 UTC (permalink / raw) To: Hans Hagen; +Cc: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1824 bytes --] 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 <j.hagen@xs4all.nl> 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 > ----------------------------------------------------------------- > [-- Attachment #1.2: Type: text/html, Size: 2714 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Short weekday option for date command 2020-04-08 19:53 ` Adam Reviczky @ 2020-04-08 20:11 ` Wolfgang Schuster 2020-04-08 20:14 ` Adam Reviczky 0 siblings, 1 reply; 5+ messages in thread From: Wolfgang Schuster @ 2020-04-08 20:11 UTC (permalink / raw) To: mailing list for ConTeXt users, Adam Reviczky 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Short weekday option for date command 2020-04-08 20:11 ` Wolfgang Schuster @ 2020-04-08 20:14 ` Adam Reviczky 0 siblings, 0 replies; 5+ messages in thread From: Adam Reviczky @ 2020-04-08 20:14 UTC (permalink / raw) To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1383 bytes --] 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 > [-- Attachment #1.2: Type: text/html, Size: 2017 bytes --] [-- Attachment #2: Type: text/plain, Size: 493 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-04-08 20:14 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-04-04 9:47 Short weekday option for date command Adam Reviczky 2020-04-04 10:24 ` Hans Hagen 2020-04-08 19:53 ` Adam Reviczky 2020-04-08 20:11 ` Wolfgang Schuster 2020-04-08 20:14 ` Adam Reviczky
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).