我正在尝试排版一行圣经希伯来语,其中有些字母有达格什变音符号,这在我的文本编辑器中用我选择的字体(为圣经希伯来语设计)没有问题,但出于某种原因,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}