4

Hebrew uses maqaf as a hyphenation character, and I have to declare it if I want to use it instead of the usual hyphen. However, this declaration somehow makes certain words disappear in Hebrew when I use HarfTeX with LuaLaTeX. Please see my example below:

\documentclass{minimal}
\usepackage[nil,bidi=basic]{babel} 
\babelprovide[import]{hebrew}
\babelfont[hebrew]{rm}[RawFeature={mode=harf},Script=Hebrew,Language=Default]{SBL Hebrew}
\exhyphenchar=`\־ % If I comments this out, the words are displayed correctly.

\begin{document}
\selectlanguage{hebrew}

כׇּל־הַשֹּׁמֵ֖עַ

כִּֽי־שָׁמַ֧ע

כִּֽי־בָרֵ֣ךְ

\end{document}

Missing words

KLUDGE: If I put the maqaf in slanted (doesn't have visible effect), it seems to circumvent the problem, but I assume there is a bug somewhere.

4
  • What is the problem if you don't change \exhyphenchar? Commented Aug 23, 2020 at 19:07
  • @UlrikeFischer I need maqaf as a hyphen in my document, because otherwise I would get an ugly layout (and even more underfull hboxes). Commented Aug 23, 2020 at 19:13
  • 1
    Marcel just pushed a fix to the luaotfload github. So with the next version it will work. Btw: the name of the binary is now luahbtex (and it is used by default by lualatex in a current tex system). And with a current fontspec you can use Renderer=Harfbuzz instead of the Rawfeature. Commented Aug 23, 2020 at 19:31
  • @UlrikeFischer Thank you very much indeed your quick help, I really appreciate! Commented Aug 23, 2020 at 19:34

0

You must log in to answer this question.

Browse other questions tagged .