Thanks. I'll try it quickly

Le lun. 26 mai 2025, 04:06, Dohyun Kim <[email protected]> a écrit :

> 2025년 5월 26일 (월) 오전 6:12, Christophe Poulain <[email protected]>님이 작성:
> >
> > Hi,
> >
> > with the code
> >
> > \documentclass{article}
> > \usepackage{luamplib}
> > \usepackage{simplekv}
> >
> > \setKVdefault[Test]{Solution=false}
> > \defKV[Test]{CouleurSolution=\setKV[Test]{Solution}}
> >
> > \begin{document}
> > \begin{mplibcode}
> >   beginfig(1);
> >   boolean Solution;
> >   color CoulSol;
> >   Solution=\useKV[Test]{Solution};
> >   if Solution:
> >   CoulSol=\useKV[Test]{CouleurSolution};
> >   fi;
> >   draw (0,0)--(50,50) if Solution:withcolor CoulSol fi;
> >   endfig;
> > \end{mplibcode}
> > \end{document}
> >
> > the compilation is ok with simplekv 0.2c but not with simplekv 0.3. It's
> a problem with "accents". I join the log.
> >
>
> Error messages from simplekv 0.3 are now in French, but luamplib to
> this day cannot process raw utf-8 code.
>
> I'll upload a new version of luamplib which will use an undocumented
> feature of mplib library.
> For the time being, please add just one line (utf8_mode = true,) to
> the file luamplib.lua:
>
> diff --git
> a/usr/local/texlive/2025/texmf-dist/tex/luatex/luamplib/luamplib.lua
> b/Users/nomosnomos/Library/texmf/tex/luatex/luamplib/luamplib.lua
> index be6d5d1..fa3ed07 100644
> --- a/usr/local/texlive/2025/texmf-dist/tex/luatex/luamplib/luamplib.lua
> +++ b/Users/nomosnomos/Library/texmf/tex/luatex/luamplib/luamplib.lua
> @@ -303,6 +303,7 @@ local function luamplibload (name)
>      math_mode   = luamplib.numbersystem,
>      job_name    = tex.jobname,
>      random_seed = math.random(4095),
> +    utf8_mode   = true,
>      extensions  = 1,
>    }
>    local preamble = tableconcat{
>
>
> Best,
> --
> Dohyun Kim
> Seoul, Republic of Korea
>

Reply via email to