From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92431 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: superscripts "th" "nd" "rd" "st" on dates etc.. Date: Thu, 27 Aug 2015 01:21:39 +0200 Message-ID: <55DE4A03.9060409@gmail.com> References: <20150824171957.206bf854@localb.wexfordpress.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0132514098==" X-Trace: ger.gmane.org 1440631458 31828 80.91.229.3 (26 Aug 2015 23:24:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2015 23:24:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 27 01:24:04 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZUk30-0007oR-AZ for gctc-ntg-context-518@m.gmane.org; Thu, 27 Aug 2015 01:24:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 76BE51022F for ; Thu, 27 Aug 2015 01:24:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MFc8A_YN08wf for ; Thu, 27 Aug 2015 01:24:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C05891023B for ; Thu, 27 Aug 2015 01:23:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4885101FE for ; Thu, 27 Aug 2015 01:23:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MAAbr6AGBtFo for ; Thu, 27 Aug 2015 01:23:24 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 8817F1020E for ; Thu, 27 Aug 2015 01:21:43 +0200 (CEST) Original-Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) by filter3-til.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t7QNLga8029174 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 27 Aug 2015 01:21:42 +0200 Original-Received: by wicja10 with SMTP id ja10so28805858wic.1 for ; Wed, 26 Aug 2015 16:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=9MtUZMoNHSBdIUMrG0HGwU42+rRXMw0Oa2Z4kE9CWXU=; b=FSsJyIEK8k2VG5KoihBT+srU4cCSAokS2fZorPS9bVoziHD7cyBKuVOqjcxDC/OyyO S6zQFVlYAnxZ2DcWsX0Wo53+HEcQ4J8m3w57TDIL9tWL6TTPMs4SRnN6DYHiylsWbnIm ovoCxHFmm5q3hAxYvtbxCM07+ROhe7OCVR3H2IYrkt7hM44Qs0OYnyWjtLp3WyCFkvWE 3oOTQHzCN+fjBaIOmp5BVhIbcHxRukmhPATaGFHK2cQ3MjjPpFdtaDkLcQQYtFzvR5RC UkFL8KiDCJstlTmx1arfbk42RdGT1GYnz0fQ7R+byvLIeE4iZmDGDbN/kAJtl5qE+OC7 jSag== X-Received: by 10.194.86.161 with SMTP id q1mr1276776wjz.18.1440631302130; Wed, 26 Aug 2015 16:21:42 -0700 (PDT) Original-Received: from keima.localdomain (x2f312a4.dyn.telefonica.de. [2.243.18.164]) by smtp.googlemail.com with ESMTPSA id bu12sm275768wjb.44.2015.08.26.16.21.41 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Aug 2015 16:21:41 -0700 (PDT) User-Agent: Postbox 4.0.3 (Macintosh/20150805) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22f; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06P9zlGCF - fedc40393c8d - 20150827 (trained as not-spam) Received-SPF: pass (filter3-til.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::22f as permitted sender) receiver=filter3-til.mf.surf.net; client-ip=2a00:1450:400c:c05::22f; envelope-from=; helo=mail-wi0-x22f.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:92431 Archived-At: This is a multi-part message in MIME format. --===============0132514098== Content-Type: multipart/alternative; boundary="------------020103050507000309020006" This is a multi-part message in MIME format. --------------020103050507000309020006 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Mojca Miklavec > 26. August 2015 19:36 > > In case that you were looking for an automated way to print the date, > here's one option: > \setuplanguage[en][date=3D{weekday,{, },day:ord,{~},month,{,~},year}] > (And the documentation is somewhat wrong, I think it suggests to use > "day+" which doesn't work. But I should check the details again.) The keyword to create ordinal numbers in a date has changed in MkIV. > Unfortunately I didn't manage to figure out how to do the superscript > automatically. Yes, it's 1\highordinalstr{st} like Alan mentioned, but > that only works in "manual mode". You can=E2=80=99t show them as superscript when you use the \date command but in manual mode you can also use \ordinaldaynumber. \starttext \dorecurse{10}{\ordinaldaynumber{\recurselevel}\crlf} \stoptext Wolfgang --------------020103050507000309020006 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
26= .=20 August 2015 19:36

In case that you were looking for an automated way to print the date,
he= re's one option:
\setuplanguage[en][date=3D{weekday,{,=20 },day:ord,{~},month,{,~},year}]
(And the documentation is somewhat=20 wrong, I think it suggests to use
"day+" which doesn't work. But I=20 should check the details again.)
The keyword to create ordinal numbers in a date has changed in MkIV.
Unfortunately I didn't manage to figure out how to do the=20 superscript
automatically. Yes, it's 1\highordinalstr{st} like Alan=20 mentioned, but
that only works in "manual mode".
You can=E2=80=99t show them as superscript when you use the \date command=
but in manual mode you can also use \ordinaldaynumber.

\starttext
\dorecurse{10}{\ordinaldaynumber{\recurselevel}\crlf}
\stoptext

Wolfgang
--------------020103050507000309020006-- --===============0132514098== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0132514098==--