<div dir="ltr"><div>Hi,<br><br></div>this is the problem of the first word of a paragraph which is too long and TeX never hyphenates the first word. I did not managed to persuade TeX to consider it as the second word but maybe somebody knows TeX better than me and can help.<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 17:53 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">Thanks for the workaround!<br>
I checked with other parts of my edition and there are still erratic problems. In the<br>
example below the first paragraph works, but the second does not.<br>
<br>
My installation is recent:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017/Arch Linux)<br>
</blockquote>
<br>
JH<span class=""><br>
<br>
\documentclass[11pt]{memoir}<br>
\usepackage[series={A,B},noend<wbr>,noeledsec,nofamiliar,noledgro<wbr>up]{reledmac}<br>
\Xarrangement[A]{paragraph}<br></span>
%\newcommand{\varc}[2]{\edtext<wbr>{}{\lemma{#1}\Afootnote{\<wbr>sanskritfont{#2}}}}<span class=""><br>
\newcommand{\varc}[2]{\nobreak<wbr>\hskip 0pt<br></span>
\edtext{}{\lemma{#1}\Afootnote<wbr>{\sanskritfont{#2}}}\hskip 0pt \relax}<span class=""><br>
<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 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>
<br></span>
\pstart<br>
śrīmacchrīsvasvatantrānāśritan<wbr>irbhāgaparamaprakāśavimarśamay<wbr>apāramaiśvaryānubhāvānubhāvuka<wbr>\varc{ānubhāvānubhāvuka}{ānubh<wbr>avānubhāvaka}prathitamahitanij<wbr>asahajaparamānandādvayasattāsā<wbr>mānyaspanda uditoditaparamaśaktisāmrājyo rājarājeśvaro jayasi paramaśivastvamayam//\varc{tva<wbr>mayam}{tvamaya}<span class=""><br>
\pend<br>
<br>
\endnumbering<br>
\end{sanskrit}<br>
\end{document}<br>
<br>
<br>
<br>
<br>
<br></span>
----- Nachricht von Zdenek Wagner <<a href="mailto:zdenek.wagner@gmail.com" target="_blank">zdenek.wagner@gmail.com</a>> ---------<br>
     Datum: Wed, 3 Jan 2018 16:33:35 +0100<br>
       Von: Zdenek Wagner <<a href="mailto:zdenek.wagner@gmail.com" target="_blank">zdenek.wagner@gmail.com</a>><br>
Antwort an: "XeTeX (Unicode-based TeX) discussion." <<a href="mailto:xetex@tug.org" target="_blank">xetex@tug.org</a>><br>
   Betreff: Re: [XeTeX] hyphenation cancelled through footnote<br>
        An: Ulrike Fischer <<a href="mailto:news3@nililand.de" target="_blank">news3@nililand.de</a>>, "XeTeX (Unicode-based TeX) discussion." <<a href="mailto:xetex@tug.org" target="_blank">xetex@tug.org</a>><div><div class="h5"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2018-01-03 16:16 GMT+01:00 Ulrike Fischer <<a href="mailto:news3@nililand.de" target="_blank">news3@nililand.de</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am Wed, 03 Jan 2018 14:35:56 +0100 schrieb<br>
<a href="mailto:hanneder@staff.uni-marburg.de" target="_blank">hanneder@staff.uni-marburg.de</a>:<br>
<br>
> When editing Sanskrit texts with very long compounds, avoiding manual<br>
> hyphenation is extremely time<br>
> saving. XeLaTeX fortunately takes care of this, but the mechanism is<br>
> cancelled by footnotes within<br>
> the compounded word. In the example below the \varc{}{} causes the<br>
> error. Any idea on how to enable<br>
> hyphenation under such conditions?<br>
<br>
I see no difference with and without \varc. In both cases I get an<br>
overful line.<br>
<br>
What texsystem are you using?<br>
<br>
</blockquote>
<br>
Yes, you get an overflow line but not so much, less than 1pt. The problem<br>
is that there is no expandable/shrinkable space, so with my redefinition<br>
the word is hyphenated at the first place with smallest possible overflow<br>
(in the part after \varc). \hskip 0pt says TeX to treat the parts before<br>
and after \varc as separate words. Text in Indic scripts can be hyphenated<br>
after each group started with a vyanjana and ending with a svara, so<br>
\patterns are not generated by patgen but made agorithmically. Thus the<br>
compound word can be broken by \hskip 0pt after any svara and both parts<br>
will certainly have a good match in \patterns. Jürgen's definition of \varc<br>
prevents finding a match in \patterns so that the whole word with \varc in<br>
its middle remain unhyphenated on the first line which is overflowed more<br>
than 69pt. In addition, I forgot to mention that TeX never hyphenates the<br>
first word of a paragraph which is another problem. Thus if \varc appeared<br>
too far then even my solution will not help. It will be necessary to force<br>
TeX to think that there is an invisible word with zero width at the<br>
beginning of a paragraph followe by a fixed zero-width space.<br>
<br>
Zdeněk Wagner<br>
<a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" rel="noreferrer" target="_blank">http://ttsm.icpf.cas.cz/team/w<wbr>agner.shtml</a><br>
<a href="http://icebearsoft.euweb.cz" rel="noreferrer" target="_blank">http://icebearsoft.euweb.cz</a><br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
Ulrike Fischer<br>
<a href="http://www.troubleshooting-tex.de/" rel="noreferrer" target="_blank">http://www.troubleshooting-tex<wbr>.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/listinf<wbr>o/xetex</a><br>
<br>
</blockquote></blockquote>
<br>
<br></div></div>
----- Ende der Nachricht von Zdenek Wagner <<a href="mailto:zdenek.wagner@gmail.com" target="_blank">zdenek.wagner@gmail.com</a>> -----<span class="im HOEnZb"><br>
<br>
<br>
<br>
---<br>
<br>
Prof. Dr. Juergen Hanneder<br>
Philipps-Universitaet Marburg<br>
FG Indologie u. Tibetologie<br>
Deutschhausstr.12<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></span><div class="HOEnZb"><div class="h5">
------------------------------<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>
</div></div></blockquote></div><br></div>