
正如您在圖片中看到的,使用 Polyglossia 插入希伯來語片段在希伯來語插入之前給了我一個不需要的空格。正如您所看到的,阿拉伯語不會出現這種情況,因此這不是 RTL 問題。這似乎是 Polyglossia 和希伯來文特有的。
這是代碼:
\documentclass{report}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\newfontfamily\hebrewfont[Language=Hebrew]{Linux Libertine O}
\newfontfamily\arabicfont[Script=Arabic]{Scheherazade}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{hebrew}
\setotherlanguage{arabic}
\begin{document}
with Polyglossia (\texthebrew{זצ״ל})
no problem with Arabic (\textarabic{سلام})
or without Poly ({\addfontfeature{Language=Hebrew} {זצ״ל}})
\end{document}
我已經嘗試添加Script=Hebrew
到\hebrewfont
定義中,但結果是相同的。
我有一個充滿希伯來語引文的大文件,我的印像是這只是幾個月或幾週前才開始發生的——也許是一個錯誤悄悄出現了?任何建議的修復將受到高度讚賞,或者我錯過了什麼?
答案1
希望它有用,這解決了它:在檢查我的安裝並擺弄fontspec
選項無濟於事後,我在黑暗中進行了嘗試並從 Github 下載了最新的gloss-hebrew.ldf
(我還避免升級到 TL2020) - 嘿,快點,問題解決了。
我仍然不知道我的本機資料夾中是否存在一些不愉快的版本組合,但是不需要的額外空間已經消失了。