使用 lualatex 时出现梵语和印地语多语错误,但使用 xelatex 时没有出现此错误

使用 lualatex 时出现梵语和印地语多语错误,但使用 xelatex 时没有出现此错误

texlive在 Windows 上安装了与sanskrit和相关的所有软件包hindi。没有错误xelatex

当我用 编译lualatex简单文档时,出现错误gloss-sanskrit.ldf

Undefined control sequence. \newXeTeXintercharclass
Undefined control sequence. \newXeTeXintercharclass\sanskrit@punctthin

整个日志

Undefined control sequence. \newXeTeXintercharclass
Undefined control sequence. \newXeTeXintercharclass\sanskrit@punctthin
Undefined control sequence. \select@language {sanskrit}
Missing \begin{document}. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Missing $ inserted. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Undefined control sequence. \select@language {sanskrit}
Missing number, treated as zero. \select@language {sanskrit}
Illegal unit of measure (pt inserted). \select@language {sanskrit}
Undefined control sequence. \select@language {english}
Undefined control sequence. \select@language {english}
Undefined control sequence. \select@language {english}
Undefined control sequence. \select@language {english}
Undefined control sequence. \select@language {english}
Undefined control sequence. \select@language {english}
Undefined control sequence. \select@language {english}
Undefined control sequence. \select@language {english}
Command \rmfamily invalid in math mode. \select@language {english}
Missing $ inserted. \begin{document}
fontspec warning: "only-xetex-feature" Ignored XeTeX only feature: 'Renderer=AAT/OpenType/Graphite'.
fontspec warning: "no-mapping" Input mapping not (yet?) supported in LuaTeX.
fontspec warning: "no-mapping" Input mapping not (yet?) supported in LuaTeX.
Hindi is not supported with LuaTeX.
Overfull \hbox (5.5174pt too wide) in paragraph

我的文档

\documentclass[oneside,a4paper, 12pt]{article}
\tracinglostchars=2
\usepackage{polyglossia}
\usepackage{fontspec}
%\setmainfont[Numbers=Lining]{Brill}
\setmainfont{CharisSIL}
\setsansfont{Lato}
\newfontfamily\sanskritfont[Script=Devanagari]{Nakula}
\newfontfamily\devanagarifont[Script=Devanagari,Mapping=harvardkyoto]{Sanskrit 2003}
%\newfontfamily\sanskritfont[Script=Devanagari,Mapping=harvardkyoto]{Sanskrit 2003}

\setdefaultlanguage{english}
\setotherlanguage{hindi}
\setotherlanguage{sanskrit}

\begin{document}

Here's some text in the default font,
Charis, and {\sanskritfont
अत्र देवनागरीलिप्युदाहरणम् वर्तते| \par}



\begin{sanskrit}
गरीलिप्युदा हरणम् 
\end{sanskrit}


\begin{hindi}
गरीलिप्युदा हरणम् 
\end{hindi}













\end{document}

答案1

LuaTeX 不支持字符类,但梵语显然需要它们polyglossia

目前,使用 LuaLaTeX 似乎是不可能的。

相关内容