[NTG-context] Non-shortened month name in \date

Hans Hagen pragma at wxs.nl
Fri Apr 3 19:07:37 CEST 2015


On 4/3/2015 1:44 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> Hello,
>
> ----
> \mainlanguage[cz]
>
> \starttext
>    \date[d=1,m=3,y=2000][d,~,m,~,y]\par
>    \date[d=1,m=3,y=2000][d,~,mm,~,y]\par
>    \date[d=1,m=3,y=2000][d,~,month,~,y]\par
> \stoptext
> ----
>
> gives:
>
> "
> 1 břez. 2000
> 1 03 2000
> 1 břez. 2000
> "
>
> Is there a way to get non-shortened month name, i.e. "března" instead
> "břez."?
>
> Kind regards,

\starttext
   \date[d=1,m=3,y=2000][d,~,m,~,y]\par
   \date[d=1,m=3,y=2000][d,~,mm,~,y]\par
   \date[d=1,m=3,y=2000][d,~,month,~,y]\par
   \date[d=1,m=3,y=2000][d,~,month:mnem,~,y]\par
\stoptext

buglet:

patch core-con.lua:

         elseif tag == v_month or tag == "m" then
             if currentlanguage == false then
                 context(months[month] or "unknown")
             elseif mnemonic then
                 context.labeltext(monthmnem(month))
             else
                 context.labeltext(monthname(month))
             end

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


More information about the ntg-context mailing list