ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: superscripts "th" "nd" "rd" "st" on dates etc..
Date: Sat, 05 Sep 2015 11:48:12 +0200	[thread overview]
Message-ID: <55EABA5C.3040600@gmail.com> (raw)
In-Reply-To: <55DF6ECB.4@wxs.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1059 bytes --]

> Hans Hagen <mailto:pragma@wxs.nl>
> 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

[-- Attachment #1.2: Type: text/html, Size: 2252 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2015-09-05  9:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24 21:19 John Culleton
2015-08-25  7:19 ` Otared Kavian
2015-08-26 17:06   ` Alan BRASLAU
2015-08-26 20:43     ` Otared Kavian
2015-08-26 23:17       ` Wolfgang Schuster
2015-08-26 17:36 ` Mojca Miklavec
2015-08-26 23:21   ` Wolfgang Schuster
2015-08-27 20:10     ` Hans Hagen
2015-09-05  9:48       ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55EABA5C.3040600@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).