This question is an extension to this one. If I run the following code with LuaLaTeX
, I do not get Devanagari numerals in the example's counter. Whereas I do get them with XeLaTeX.
\documentclass{article}\usepackage{iftex}\ifXeTeX\usepackage{polyglossia}\setdefaultlanguage{marathi}\setmainfont[Script=Devanagari,Mapping=devanagarinumerals]{Shobhika}\else\ifLuaTeX\usepackage{babel}\usepackage{fontspec}\babelprovide[mapdigits,maparabic]{marathi}\defaultfontfeatures{Renderer=Harfbuzz,Script=Devanagari}\babelfont{rm}{Shobhika}\fi\fi\usepackage{expex}\definelabeltype{devanagari}{labelgen=list,labellist={अ, आ, इ, ई, उ, ऊ, ए, ऐ, ओ, औ, अं, अः}, labelformat=A.,fullrefformat=XA,labelalign=left,labelwidth=.92em}\begin{document} \lingset{labeltype=devanagari} \pex \a\begingl \gla रामःआम्रफलम्खादति// \glb रामआंबाखातो// \glft रामआंबाखातो.// \endgl \a\begingl \gla रामःआम्रफलम्खादति// \glb रामआंबाखातो// \glft रामआंबाखातो.// \endgl \xe\end{document}
XeLaTeX
changes the numbering but LuaLaTeX
doesn't. Why?
PS - Code can be run with both the compilers. When you change the compiler it requires a second run.