h***@staff.uni-marburg.de
2018-01-03 13:35:56 UTC
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}{sattve}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
35032 Marburg
Germany
Tel. 0049-6421-28-24930
***@staff.uni-marburg.de
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/li
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}{sattve}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
35032 Marburg
Germany
Tel. 0049-6421-28-24930
***@staff.uni-marburg.de
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/li