Working off of this question, I see that XeLaTeX is inconsistently applying hyphenation to my text. As you can see in the MWE, in the paragraph before the \entry
, hyphenation is not applied, yet in the same text after the \entry
, it is. I can't understand what about the \entry
is changing this hyphenation. To be clear, I would like hyphenation to always be applied.
\documentclass[10pt]{book}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguages{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{Arial Unicode MS}
\newcommand{\h}[1]{\RL{\texthebrew{#1}\hfil}}
\newcommand{\hangparagentry}{\hangindent-0.5em \hangafter1 \leftskip 0.8em \parindent -0.5em}
\DeclareDocumentCommand{\entry}{ m o m }{%
\noindent\hangparagentry{\hspace{-.5em}\textbf{#1}\hspace{0.5cm} %\hfill
\h{\hspace{0pt}#3\IfNoValueF{#2}{ \textenglish{\scriptsize{#2}}}}}\par}
\begin{document}
\flushright
\h{דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס }
\entry{anything}{\textenglish{blah}}
\h{דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס דער ע֜רד-צי֜טערניש-מע֜סטער, -ס }
\end{document}
\flushright
is not a command to be used on its own; you probably mean\raggedleft