* \date bug with french
@ 2011-07-04 13:10 Romain Diss
2011-07-04 13:25 ` Wolfgang Schuster
2011-07-13 21:12 ` Romain Diss
0 siblings, 2 replies; 6+ messages in thread
From: Romain Diss @ 2011-07-04 13:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 483 bytes --]
Hi,
The date printed with the \date command is not correct in french (but ok in
english).
See this example :
\mainlanguage[fr]
\starttext
\date
\stoptext
It prints "44 juillet 2011" (today). Without " \mainlanguage[fr]", it’s prints
"July 4, 2011" (as expected).
I have "ConTeXt - 2011.06.29 09:57" and "LuaTeX-0.70.1".
I've never seen this bug before but I don't know if the problem is recent or
not.
--
Romain Diss
<romain.diss@yahoo.fr>
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 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] 6+ messages in thread
* Re: \date bug with french
2011-07-04 13:10 \date bug with french Romain Diss
@ 2011-07-04 13:25 ` Wolfgang Schuster
2011-07-04 13:29 ` luigi scarso
2011-07-13 21:12 ` Romain Diss
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2011-07-04 13:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 04.07.2011 um 15:10 schrieb Romain Diss:
> Hi,
>
> The date printed with the \date command is not correct in french (but ok in
> english).
> See this example :
>
> \mainlanguage[fr]
> \starttext
> \date
> \stoptext
>
> It prints "44 juillet 2011" (today). Without " \mainlanguage[fr]", it’s prints
> "July 4, 2011" (as expected).
>
> I have "ConTeXt - 2011.06.29 09:57" and "LuaTeX-0.70.1".
> I've never seen this bug before but I don't know if the problem is recent or
> not.
It’s not a bug but a language dependent format of the string, you can change it with
\setuplanguage[de][date={...}]
where the date key takes the same arguments as the \date command.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \date bug with french
2011-07-04 13:25 ` Wolfgang Schuster
@ 2011-07-04 13:29 ` luigi scarso
2011-07-04 13:41 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: luigi scarso @ 2011-07-04 13:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Jul 4, 2011 at 3:25 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> Am 04.07.2011 um 15:10 schrieb Romain Diss:
>
>> Hi,
>>
>> The date printed with the \date command is not correct in french (but ok in
>> english).
>> See this example :
>>
>> \mainlanguage[fr]
>> \starttext
>> \date
>> \stoptext
>>
>> It prints "44 juillet 2011" (today). Without " \mainlanguage[fr]", it’s prints
>> "July 4, 2011" (as expected).
>>
>> I have "ConTeXt - 2011.06.29 09:57" and "LuaTeX-0.70.1".
>> I've never seen this bug before but I don't know if the problem is recent or
>> not.
>
> It’s not a bug but a language dependent format of the string, you can change it with
>
> \setuplanguage[de][date={...}]
>
> where the date key takes the same arguments as the \date command.
ok, but there is no the 44th day in July as
"44 juillet 2011"
said
--
luigi
___________________________________________________________________________________
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] 6+ messages in thread
* Re: \date bug with french
2011-07-04 13:29 ` luigi scarso
@ 2011-07-04 13:41 ` Wolfgang Schuster
2011-07-04 20:20 ` Romain Diss
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2011-07-04 13:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 04.07.2011 um 15:29 schrieb luigi scarso:
> ok, but there is no the 44th day in July as
> "44 juillet 2011"
> said
It’s not 44th, it’s 4 + 4th :)
core-con.lua:
function commands.currentdate(str,currentlanguage) -- j and jj obsolete
...
if ordinal and whatordinal then
-- commands.ordinal(whatordinal,currentlanguage)
context("%s",converters.ordinal(whatordinal,currentlanguage))
end
end
end
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \date bug with french
2011-07-04 13:41 ` Wolfgang Schuster
@ 2011-07-04 20:20 ` Romain Diss
0 siblings, 0 replies; 6+ messages in thread
From: Romain Diss @ 2011-07-04 20:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: Text/Plain, Size: 1175 bytes --]
Le lundi 04 juillet 2011, Wolfgang Schuster a écrit :
> Am 04.07.2011 um 15:29 schrieb luigi scarso:
> > ok, but there is no the 44th day in July as
> > "44 juillet 2011"
> > said
>
> It’s not 44th, it’s 4 + 4th :)
I tried some different dates and the number is indeed typed twice every time in
french. I think this problem appears recently because it was not the case with
"ConTeXt - 2011.05.18 22:26" "LuaTeX-0.70.1".
I still think it’s a bug because it’s not expected to have the day number
typed twice when one call \date (in "lang-def.mkiv", the date format is
declared as "\c!date={\v!day+,\v!space,\v!month,\v!space,\v!year" for french).
> core-con.lua:
>
> function commands.currentdate(str,currentlanguage) -- j and jj obsolete
> ...
> if ordinal and whatordinal then
> -- commands.ordinal(whatordinal,currentlanguage)
> context("%s",converters.ordinal(whatordinal,currentlanguage))
> end
> end
> end
I checked my "core-con.lua" file and there is not the context("%s", ...)
command in the currentdate function.
Am I missing something ?
--
Romain Diss
<romain.diss@yahoo.fr>
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 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] 6+ messages in thread
* Re: \date bug with french
2011-07-04 13:10 \date bug with french Romain Diss
2011-07-04 13:25 ` Wolfgang Schuster
@ 2011-07-13 21:12 ` Romain Diss
1 sibling, 0 replies; 6+ messages in thread
From: Romain Diss @ 2011-07-13 21:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: Text/Plain, Size: 645 bytes --]
Le lundi 04 juillet 2011, Romain Diss a écrit :
> The date printed with the \date command is not correct in french (but ok in
> english).
> See this example :
>
> \mainlanguage[fr]
> \starttext
> \date
> \stoptext
>
> It prints "44 juillet 2011" (today). Without " \mainlanguage[fr]", it’s
> prints "July 4, 2011" (as expected).
>
> I have "ConTeXt - 2011.06.29 09:57" and "LuaTeX-0.70.1".
> I've never seen this bug before but I don't know if the problem is recent
> or not.
Corrected in the last beta (2011.07.13 20:14). It now works like expected.
Thank you.
--
Romain Diss
<romain.diss@yahoo.fr>
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 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] 6+ messages in thread
end of thread, other threads:[~2011-07-13 21:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-04 13:10 \date bug with french Romain Diss
2011-07-04 13:25 ` Wolfgang Schuster
2011-07-04 13:29 ` luigi scarso
2011-07-04 13:41 ` Wolfgang Schuster
2011-07-04 20:20 ` Romain Diss
2011-07-13 21:12 ` Romain Diss
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).