Fabrice Couvreur schrieb am 09.08.2021 um 14:16:
Hi Wolfgang,
Thank you for your suggestion.
I tested the code and the result is not what I expected from the
second item : "2 exemple" instead of "2^{e} exemple", "3 exemple"
instead of "3^{e} exemple" ...
core-con.lua (line 1155):
local ordinals = {
[...]
french = function(n)
if n == 1 then
return "er"
+ else
+ return "e"
end
end,
}
Then I tried to use the key alternative = serried but without success.
This works for me:
\defineenumeration
[test]
[text=,
alternative=serried,
width=fit,
distance=.5em,
numbercommand=\groupedcommand{}{~exemple},
numberconversion=ordinal]
\mainlanguage [fr]
\starttext
\starttest
\input knuth
\stoptest
\starttest
\input knuth
\stoptest
\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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________