ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* superscripts "th" "nd" "rd" "st" on dates etc..
@ 2015-08-24 21:19 John Culleton
  2015-08-25  7:19 ` Otared Kavian
  2015-08-26 17:36 ` Mojca Miklavec
  0 siblings, 2 replies; 9+ messages in thread
From: John Culleton @ 2015-08-24 21:19 UTC (permalink / raw)
  To: ntg-context

Forgot how to do these.

-- 
John Culleton
Wexford Press
Book layout, typesetting and Indexing
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: superscripts "th" "nd" "rd" "st" on dates etc..
  2015-08-24 21:19 superscripts "th" "nd" "rd" "st" on dates etc John Culleton
@ 2015-08-25  7:19 ` Otared Kavian
  2015-08-26 17:06   ` Alan BRASLAU
  2015-08-26 17:36 ` Mojca Miklavec
  1 sibling, 1 reply; 9+ messages in thread
From: Otared Kavian @ 2015-08-25  7:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

\high{th}

\high{nd}

\high{st}

> On 24 Aug 2015, at 23:19, John Culleton <John@wexfordpress.com> wrote:
> 
> Forgot how to do these.
> 
> -- 
> John Culleton
> Wexford Press
> Book layout, typesetting and Indexing
> Free list of books for self-publishers:
> http://wexfordpress.net/shortlist.html
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: superscripts "th" "nd" "rd" "st" on dates etc..
  2015-08-25  7:19 ` Otared Kavian
@ 2015-08-26 17:06   ` Alan BRASLAU
  2015-08-26 20:43     ` Otared Kavian
  0 siblings, 1 reply; 9+ messages in thread
From: Alan BRASLAU @ 2015-08-26 17:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

1\highordinalstr{st}

etc.

On Tue, 25 Aug 2015 09:19:21 +0200
Otared Kavian <otared@gmail.com> wrote:

> \high{th}
> 
> \high{nd}
> 
> \high{st}
> 
> > On 24 Aug 2015, at 23:19, John Culleton <John@wexfordpress.com>
> > wrote:
> > 
> > Forgot how to do these.
> > 
> > -- 
> > John Culleton


-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.braslau@cea.fr
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: superscripts "th" "nd" "rd" "st" on dates etc..
  2015-08-24 21:19 superscripts "th" "nd" "rd" "st" on dates etc John Culleton
  2015-08-25  7:19 ` Otared Kavian
@ 2015-08-26 17:36 ` Mojca Miklavec
  2015-08-26 23:21   ` Wolfgang Schuster
  1 sibling, 1 reply; 9+ messages in thread
From: Mojca Miklavec @ 2015-08-26 17:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Aug 24, 2015 at 11:19 PM, John Culleton wrote:
> Forgot how to do these.

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.)

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".

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: superscripts "th" "nd" "rd" "st" on dates etc..
  2015-08-26 17:06   ` Alan BRASLAU
@ 2015-08-26 20:43     ` Otared Kavian
  2015-08-26 23:17       ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Otared Kavian @ 2015-08-26 20:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I don’t see the difference between \high and \highordinalstr, as in the example below. Is there something hidden there?

\starttext

August 21\high{st} 

August 21\highordinalstr{st}

\stoptext

Best regards: OK

> On 26 Aug 2015, at 19:06, Alan BRASLAU <alan.braslau@cea.fr> wrote:
> 
> 1\highordinalstr{st}
> 
> etc.
> 
> On Tue, 25 Aug 2015 09:19:21 +0200
> Otared Kavian <otared@gmail.com> wrote:
> 
>> \high{th}
>> 
>> \high{nd}
>> 
>> \high{st}
>> 
>>> On 24 Aug 2015, at 23:19, John Culleton <John@wexfordpress.com>
>>> wrote:
>>> 
>>> Forgot how to do these.
>>> 
>>> -- 
>>> John Culleton
> 
> 
> -- 
> Alan Braslau
> CEA DSM-IRAMIS-SPEC
> CNRS UMR 3680
> Orme des Merisiers
> 91191 Gif-sur-Yvette cedex FRANCE
> tel: +33 1 69 08 73 15
> fax: +33 1 69 08 87 86
> mailto:alan.braslau@cea.fr
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: superscripts "th" "nd" "rd" "st" on dates etc..
  2015-08-26 20:43     ` Otared Kavian
@ 2015-08-26 23:17       ` Wolfgang Schuster
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2015-08-26 23:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Otared Kavian <mailto:otared@gmail.com>
> 26. August 2015 22:43
> Hi,
>
> I don’t see the difference between \high and \highordinalstr, as in 
> the example below. Is there something hidden there?
>
> \starttext
>
> August 21\high{st}
>
> August 21\highordinalstr{st}
>
> \stoptext
Try it with uppercase letters in the argument.

\starttext

August 21\high{ST}

August 21\highordinalstr{ST}

\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1475 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: superscripts "th" "nd" "rd" "st" on dates etc..
  2015-08-26 17:36 ` Mojca Miklavec
@ 2015-08-26 23:21   ` Wolfgang Schuster
  2015-08-27 20:10     ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2015-08-26 23:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> 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".
You can’t 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

[-- Attachment #1.2: Type: text/html, Size: 2236 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: superscripts "th" "nd" "rd" "st" on dates etc..
  2015-08-26 23:21   ` Wolfgang Schuster
@ 2015-08-27 20:10     ` Hans Hagen
  2015-09-05  9:48       ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2015-08-27 20:10 UTC (permalink / raw)
  To: ntg-context

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))


> You can’t 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
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: superscripts "th" "nd" "rd" "st" on dates etc..
  2015-08-27 20:10     ` Hans Hagen
@ 2015-09-05  9:48       ` Wolfgang Schuster
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2015-09-05  9:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-09-05  9:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-24 21:19 superscripts "th" "nd" "rd" "st" on dates etc 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 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).