From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92483 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: Sat, 05 Sep 2015 11:48:12 +0200 Message-ID: <55EABA5C.3040600@gmail.com> References: <20150824171957.206bf854@localb.wexfordpress.net> <55DE4A03.9060409@gmail.com> <55DF6ECB.4@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1806647432==" X-Trace: ger.gmane.org 1441446546 20080 80.91.229.3 (5 Sep 2015 09:49:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Sep 2015 09:49:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 05 11:48:47 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 1ZYA5W-0005z8-CA for gctc-ntg-context-518@m.gmane.org; Sat, 05 Sep 2015 11:48:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CCFCE1022D for ; Sat, 5 Sep 2015 11:48:45 +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 YWjEXa27b3Kh for ; Sat, 5 Sep 2015 11:48:44 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 25A0810232 for ; Sat, 5 Sep 2015 11:48:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9484101FA for ; Sat, 5 Sep 2015 11:48:17 +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 eFSjqj50Sr7l for ; Sat, 5 Sep 2015 11:48:16 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id E1FB3101F7 for ; Sat, 5 Sep 2015 11:48:16 +0200 (CEST) Original-Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) by filter3-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t859mFaO012136 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 5 Sep 2015 11:48:16 +0200 Original-Received: by wicfx3 with SMTP id fx3so43493445wic.1 for ; Sat, 05 Sep 2015 02:48:15 -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=CknKyE996dPA5jHZLUoipoZJ/8yqCen9TSxOyMK6HsM=; b=Dhu+IY8xnr7ALeQs44JdhgyiKKCk9NL8HUeeAyz0gXFj02sS2Kf8pZLn5rEuz3Gotp 0UTwXYcFpSs/OJyNQyjoHWaoHYlSSUGcvkgSfwniXF+j8KjOdrJ1zTiD3FPwIiCR00RD NDWnDzzwWSTmXwJsWLfqYYJYXtSgaVBuYckSAUosrVe0k2QXQLrvoJQrRSEnSdaf6Exg QWrnhERaSujwM+W4FCEQXXAczc5c0UyseqHnWSdzvsapNNT8fn8sg3qGhGCfHj0b6XGM n0KVmVYWmXh/hKQsVjePD5QYHgUyxyFccG2vRIRBW8+LZ5aR7pxuzhIgt2vjO005zU/5 pWwQ== X-Received: by 10.194.122.97 with SMTP id lr1mr16004639wjb.26.1441446495746; Sat, 05 Sep 2015 02:48:15 -0700 (PDT) Original-Received: from keima.localdomain (x2f28d35.dyn.telefonica.de. [2.242.141.53]) by smtp.googlemail.com with ESMTPSA id mz12sm9330685wic.4.2015.09.05.02.48.14 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Sep 2015 02:48:15 -0700 (PDT) User-Agent: Postbox 4.0.4 (Macintosh/20150825) In-Reply-To: <55DF6ECB.4@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::232; 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: 03PdlMgyi - 753a28d8a568 - 20150905 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::232 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::232; envelope-from=; helo=mail-wi0-x232.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:92483 Archived-At: This is a multi-part message in MIME format. --===============1806647432== Content-Type: multipart/alternative; boundary="------------010209030408040305060103" This is a multi-part message in MIME format. --------------010209030408040305060103 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Hans Hagen > 27. August 2015 22:10 > On 8/27/2015 1:21 AM, Wolfgang Schuster wrote: >>> 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={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". > > core-con.lua : 1275 : > > context.highordinalstr(converters.ordinal(whatordinal,currentlanguage)) Please revert this change and let the user choose between a ordinal in text size and raised small size. \starttext \currentdate[day:ord] \currentdate[day:highord] \stoptext Wolfgang --------------010209030408040305060103 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
27. August 2015 22:10
On 8/27/2015 1:21 AM, Wolfgang Schuster wrote:
Mojca Miklavec <mailto:mojca.miklavec.lists@gmail.com>
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={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".

core-con.lua : 1275 :

context.highordinalstr(converters.ordinal(whatordinal,currentlanguage))
Please revert this change and let the user choose between a ordinal in text size and raised small size.

\starttext

\currentdate[day:ord]

\currentdate[day:highord]

\stoptext

Wolfgang
--------------010209030408040305060103-- --===============1806647432== 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= --===============1806647432==--