<div dir="ltr"><div>Hi,<br><br></div>the expansion of \varc becomes a part of the word which then cannot be founs in \patters. Since it is a compound word, both parts have a chance to be in \patterns, so you must inform TeX that these parts should be considered words. This definition works:<br><br>\newcommand{\varc}[2]{\nobreak\hskip 0pt \edtext{}{\lemma{#1}\Afootnote{\sanskritfont{#2}}}\hskip 0pt \relax}<br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Zdeněk Wagner<br><a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a></div></div>
<br><div class="gmail_quote">2018-01-03 14:35 GMT+01:00  <span dir="ltr"><<a href="mailto:hanneder@staff.uni-marburg.de" target="_blank">hanneder@staff.uni-marburg.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
When editing Sanskrit texts with very long compounds, avoiding manual hyphenation is extremely time<br>
saving. XeLaTeX fortunately takes care of this, but the mechanism is cancelled by footnotes within<br>
the compounded word. In the example below the \varc{}{} causes the error. Any idea on how to enable<br>
hyphenation under such conditions?<br>
<br>
Thanks<br>
Jürgen<br>
<br>
<br>
\documentclass[11pt]{memoir}<br>
\usepackage[series={A,B},noend<wbr>,noeledsec,nofamiliar,noledgro<wbr>up]{reledmac}<br>
\Xarrangement[A]{paragraph}<br>
\newcommand{\varc}[2]{\edtext{<wbr>}{\lemma{#1}\Afootnote{\sanskr<wbr>itfont{#2}}}}<br>
\usepackage{polyglossia,fontsp<wbr>ec,xunicode}<br>
 \setdefaultlanguage{english} \setotherlanguage{sanskrit}<br>
 \setmainfont{EB Garamond}<br>
\newfontfamily\sanskritfont[Sc<wbr>ript=Devanagari,Mapping=RomDev<wbr>,Scale=1.36,LetterSpace=1.35]{<wbr>Sanskrit2003}<br>
<br>
<br>
\begin{document}<br>
\begin{sanskrit}<br>
  \beginnumbering<br>
   \pstart<br>
kvāpi ca svātmanaivātmani<br>
  nikhilajalapatibhāvamāropyocit<wbr>avividhasattva\varc{sattva}{sa<wbr>ttve}gaṇavinayananayatayā<br>
  vikhyātaviṣadayaśovattvākṛśata<wbr>ravibhūtiviśeṣaḥ/<br>
\pend<br>
\endnumbering<br>
\end{sanskrit}<br>
\end{document}<br>
<br>
<br>
<br>
---<br>
<br>
Prof. Dr. Juergen Hanneder<br>
Philipps-Universitaet Marburg<br>
FG Indologie u. Tibetologie<br>
<a href="https://maps.google.com/?q=Deutschhausstr.12&entry=gmail&source=g">Deutschhausstr.12</a><br>
35032 Marburg<br>
Germany<br>
Tel. 0049-6421-28-24930<br>
<a href="mailto:hanneder@staff.uni-marburg.de" target="_blank">hanneder@staff.uni-marburg.de</a><br>
<br>
<br>
<br>
------------------------------<wbr>--------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
 <a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/listin<wbr>fo/xetex</a><br>
</blockquote></div><br></div>