\date bug with french
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
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
On Mon, Jul 4, 2011 at 3:25 PM, Wolfgang Schuster
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
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
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
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
participants (3)
-
luigi scarso
-
Romain Diss
-
Wolfgang Schuster