[XeTeX] hyphenation cancelled through footnote

Zdenek Wagner zdenek.wagner at gmail.com
Wed Jan 3 14:45:15 CET 2018


Hi,

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:

\newcommand{\varc}[2]{\nobreak\hskip 0pt
\edtext{}{\lemma{#1}\Afootnote{\sanskritfont{#2}}}\hskip 0pt \relax}


Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz

2018-01-03 14:35 GMT+01:00 <hanneder at staff.uni-marburg.de>:

>
> When editing Sanskrit texts with very long compounds, avoiding manual
> hyphenation is extremely time
> saving. XeLaTeX fortunately takes care of this, but the mechanism is
> cancelled by footnotes within
> the compounded word. In the example below the \varc{}{} causes the error.
> Any idea on how to enable
> hyphenation under such conditions?
>
> Thanks
> Jürgen
>
>
> \documentclass[11pt]{memoir}
> \usepackage[series={A,B},noend,noeledsec,nofamiliar,noledgroup]{reledmac}
> \Xarrangement[A]{paragraph}
> \newcommand{\varc}[2]{\edtext{}{\lemma{#1}\Afootnote{\sanskritfont{#2}}}}
> \usepackage{polyglossia,fontspec,xunicode}
>  \setdefaultlanguage{english} \setotherlanguage{sanskrit}
>  \setmainfont{EB Garamond}
> \newfontfamily\sanskritfont[Script=Devanagari,Mapping=RomDev
> ,Scale=1.36,LetterSpace=1.35]{Sanskrit2003}
>
>
> \begin{document}
> \begin{sanskrit}
>   \beginnumbering
>    \pstart
> kvāpi ca svātmanaivātmani
>   nikhilajalapatibhāvamāropyocitavividhasattva\varc{sattva}{sa
> ttve}gaṇavinayananayatayā
>   vikhyātaviṣadayaśovattvākṛśataravibhūtiviśeṣaḥ/
> \pend
> \endnumbering
> \end{sanskrit}
> \end{document}
>
>
>
> ---
>
> Prof. Dr. Juergen Hanneder
> Philipps-Universitaet Marburg
> FG Indologie u. Tibetologie
> Deutschhausstr.12
> <https://maps.google.com/?q=Deutschhausstr.12&entry=gmail&source=g>
> 35032 Marburg
> Germany
> Tel. 0049-6421-28-24930
> hanneder at staff.uni-marburg.de
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20180103/d5da906a/attachment.html>


More information about the XeTeX mailing list