I was so pleased with the result of Taco's and Aditya's suggestions, I
have added them as examples to \date on texshow-web.
Richard___
If your question is of interest to others as well, please add an entry to the
Wik
> why not completely remove locatel then ... probably also faster
There would certainly be many reasons to do so ... if anything,
because ConTeXt has its own “localization” system.
> btw, nilling the locale is done in mkiv:
>
> os.setlocale(nil,nil) -- useless feature and even dangerous in
Taco Hoekwater wrote:
> Arthur Reutenauer wrote:
>>> Indeed, I've already seen that: when setting the locale to fr_FR.utf8,
>>> without resetting it to C just after the tex.print(), then I get this
>>> error:
>>> !luaTeX error (file
>>> /opt/TeX-live/texmf-dist/fonts/opentype/public/lm/lmroman12-r
Arthur Reutenauer wrote:
>> Indeed, I've already seen that: when setting the locale to fr_FR.utf8,
>> without resetting it to C just after the tex.print(), then I get this
>> error:
>> !luaTeX error (file
>> /opt/TeX-live/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf):
>> Parsing CFF
> Indeed, I've already seen that: when setting the locale to fr_FR.utf8,
> without resetting it to C just after the tex.print(), then I get this
> error:
> !luaTeX error (file
> /opt/TeX-live/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf):
> Parsing CFF DICT failed. (error=-1)
> ==>
On Thu, Apr 24 2008, Hans Hagen wrote:
> Peter Münster wrote:
>
> > % engine=luatex
> > \startluacode
> > function Monthshort(m)
> > -- os.setlocale("fr_FR.utf8") -- just for testing...
> > tex.print(os.date("%b", os.time({day = 10, month = m, year = 2000})))
> > os.setlocale("C")
> > end
Peter Münster wrote:
> % engine=luatex
> \startluacode
> function Monthshort(m)
> --os.setlocale("fr_FR.utf8") -- just for testing...
> tex.print(os.date("%b", os.time({day = 10, month = m, year = 2000})))
> os.setlocale("C")
> end
> \stopluacode
> \starttext
> \ctxlua{Monthshort(\
On Thu, Apr 24 2008, [EMAIL PROTECTED] wrote:
> Thanks Taco. This does the job. All I need now is a version (\Monthshort
> ??) which puts the first
> letter in uppercase, Jan , Feb, etc.
% engine=luatex
\startluacode
function Monthshort(m)
-- os.setlocale("fr_FR.utf8") -- just for testing
Aditya Mahajan wrote:
>See if this works (untested)
>
>\unprotect
>\setuplabeltext [\s!en] [\v!january :\s!mnem=Jan.]
>\setuplabeltext [\s!en] [\v!february :\s!mnem=Feb.]
>\setuplabeltext [\s!en] [\v!march:\s!mnem=Mar.]
>\setuplabeltext [\s!en] [\v!april:\s!mnem=Apr.]
>\setuplabeltext [\s!
On Thu, 24 Apr 2008, [EMAIL PROTECTED] wrote:
>>> I have consulted the manuals and even the source (core-con.tex) but I
>>> cannot find a way of getting a three-letter month using the \date
> command.
>>> For example, I would like to display today's date as 23-Apr-08. This
>>> gives a short displ
>> I have consulted the manuals and even the source (core-con.tex) but I
>> cannot find a way of getting a three-letter month using the \date
command.
>> For example, I would like to display today's date as 23-Apr-08. This
>> gives a short display suitable for use in a margin, but avoids the
>
[EMAIL PROTECTED] wrote:
> Hello All,
>
> I have consulted the manuals and even the source (core-con.tex) but I
> cannot find a way of getting a three-letter month using the \date command.
> For example, I would like to display today's date as 23-Apr-08. This
> gives a short display suitable
Hello All,
I have consulted the manuals and even the source (core-con.tex) but I
cannot find a way of getting a three-letter month using the \date command.
For example, I would like to display today's date as 23-Apr-08. This
gives a short display suitable for use in a margin, but avoids the
co
13 matches
Mail list logo