![为什么 LuaLaTex 中的希伯来语 dageshes 不一致?](https://linux22.com/image/436704/%E4%B8%BA%E4%BB%80%E4%B9%88%20LuaLaTex%20%E4%B8%AD%E7%9A%84%E5%B8%8C%E4%BC%AF%E6%9D%A5%E8%AF%AD%20dageshes%20%E4%B8%8D%E4%B8%80%E8%87%B4%EF%BC%9F.png)
我正在尝试排版一行圣经希伯来语,其中有些字母有达格什变音符号,这在我的文本编辑器中用我选择的字体(为圣经希伯来语设计)没有问题,但出于某种原因,LuaLaTeX 拒绝将达格什在适当的位置。MWE 如下,以及应该生成的内容的示例:
\documentclass{standalone}
\usepackage[nil,bidi=default]{babel}
\babelprovide[import=he]{hebrew}
\usepackage{fontspec}
\setmainfont{KeterYG-Medium}
\begin{document}
כָּל-עֲמַל הָאָדָם, לְפִיהוּ; וְגַם-הַנֶּפֶשׁ, לֹא תִמָּלֵא.
\end{document}
答案1
将评论建议(语言选择,加上字体渲染)结合在一起得到:
具有各种字体。
平均能量损失
\documentclass{article}%[border=6pt]{standalone}
\usepackage{xcolor}
\usepackage[nil,bidi=default]{babel}
\babelprovide[import=he]{hebrew}
\babelfont{rm}{CMU Serif}
\babelfont[hebrew]{rm}[Path=C:/Users/Public/fonts/1/,
Extension=.ttf,
UprightFont=*-Medium,
Renderer=HarfBuzz,
]{KeterYG}
%
\babelfont[hebrew]{ivrtshfr}[Path=C:/Users/Public/fonts/1/,
Extension=.ttf,
UprightFont=*Regular,
Renderer=HarfBuzz,
]{Shofar}
%
\babelfont[hebrew]{ivrtdvd}[Path=C:/Users/Public/fonts/1/,
Extension=.ttf,
UprightFont=*-Medium,
Renderer=HarfBuzz,
]{TaameyDavidCLM}
%
\babelfont[hebrew]{ivrtash}[Path=C:/Users/Public/fonts/1/,
Extension=.ttf,
UprightFont=*-Medium,
Renderer=HarfBuzz,
]{TaameyAshkenaz}
%
\babelfont[hebrew]{ivrttfc}[Path=C:/Users/Public/fonts/1/,
Extension=.ttf,
UprightFont=*-Medium,
Renderer=HarfBuzz,
]{TaameyFrankCLM}
%
\babeltags{hebrew=hebrew}
%
\begin{document}
{
\selectlanguage{hebrew}
\colorbox{blue!8}{\texthebrew{כָּל-עֲמַל הָאָדָם, לְפִיהוּ; וְגַם-הַנֶּפֶשׁ, לֹא תִמָּלֵא.}}
}
{
\selectlanguage{hebrew}
\textivrtshfr{כָּל-עֲמַל הָאָדָם, לְפִיהוּ; וְגַם-הַנֶּפֶשׁ, לֹא תִמָּלֵא.}
}
{
\selectlanguage{hebrew}
\textivrtash{כָּל-עֲמַל הָאָדָם, לְפִיהוּ; וְגַם-הַנֶּפֶשׁ, לֹא תִמָּלֵא.}
}
{
\selectlanguage{hebrew}
\textivrtdvd{כָּל-עֲמַל הָאָדָם, לְפִיהוּ; וְגַם-הַנֶּפֶשׁ, לֹא תִמָּלֵא.}
}
\end{document}