<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:small">Yes, this first-word problem is a nuisance. <br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:small">If I recall (and this is a really old memory) I think there's an issue affecting footnotes in normal LaTeX because they are set in restricted horizontal mode.  That can affect catcode expansion and also hyphenation, I think.  There are some packages out there that rewrite the LaTeX footnote code to use the same "unboxed" ideas as in plain.tex.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:small">Best,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:small">Dominik<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><div dir="ltr"><div dir="ltr" style="font-size:small"><div style="font-family:"trebuchet ms",sans-serif"><div><font size="1"><span style="font-family:arial,sans-serif"><div style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">​</div>--</span><br></font></div><div style="font-family:arial,sans-serif"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif"><font size="1">Professor <a href="http://ualberta.academia.edu/DominikWujastyk" style="color:rgb(17,85,204)" target="_blank">Dominik Wujastyk</a><div style="font-size:small;display:inline">​,​</div><br>Singhmar Chair in Classical Indian Society and Polity<div style="font-size:small;display:inline">​,​</div><br></font><div><font size="1"><a href="http://historyandclassics.ualberta.ca/" style="color:rgb(17,85,204)" target="_blank">Department of History and Classics</a><div style="font-size:small;display:inline">​,​</div></font></div><font size="1">University of Alberta, Canada<div style="font-size:small;display:inline">​.​</div><br></font></div><div><font size="1">South Asia at the U of A:</font><font size="1" style="font-family:"trebuchet ms",sans-serif"><div style="color:rgb(17,85,204);display:inline"> </div><a href="http://sas.ualberta.ca/" style="color:rgb(17,85,204)" target="_blank">​sas.ualberta.ca​</a><div style="display:inline">​​</div></font></div></div></div></div></div></div></div></div></div></div></div></div></div><span style="font-size:small"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"></div></div></div></div></div></div></div></div></span><div><span><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif;font-size:small"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><font size="1"><br></font></div></div></div></div>
</div></div>
</div></div>
</div></div></div></div><font size="1">
</font></div></div></span></div></div></span></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 4 January 2018 at 07:22, Avishai Goldman <span dir="ltr"><<a href="mailto:rabbiveesh@gmail.com" target="_blank">rabbiveesh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>To allow hyphenation of the first word of the paragraph, precede
      it with \hspace{0pt}.</p>
    <p>Cheers,</p>
    <p>Avishai Goldman<br>
    </p><div><div class="h5">
    <br>
    <div class="m_6034797225306591839moz-cite-prefix">On 01/03/2018 11:06 PM, Zdenek Wagner
      wrote:<br>
    </div>
    <blockquote type="cite">
      <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="m_6034797225306591839gmail_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/<wbr>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><wbr>></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><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{\sansk<wbr>ritfont{#2}}}}<span><br>
              \newcommand{\varc}[2]{\nobreak<wbr>\hskip 0pt<br>
            </span>
            \edtext{}{\lemma{#1}\Afootnote<wbr>{\sanskritfont{#2}}}\hskip
            0pt \relax}<span><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><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="m_6034797225306591839h5"><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="m_6034797225306591839im m_6034797225306591839HOEnZb"><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. <a href="tel:+49%206421%202824930" value="+4964212824930" target="_blank">0049-6421-28-24930</a><br>
              <a href="mailto:hanneder@staff.uni-marburg.de" target="_blank">hanneder@staff.uni-marburg.de</a><br>
              <br>
              <br>
              <br>
            </span>
            <div class="m_6034797225306591839HOEnZb">
              <div class="m_6034797225306591839h5">
                ------------------------------<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>
      <br>
      <fieldset class="m_6034797225306591839mimeAttachmentHeader"></fieldset>
      <br>
      <pre>
------------------------------<wbr>--------------------
Subscriptions, Archive, and List information, etc.:
  <a class="m_6034797225306591839moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/<wbr>listinfo/xetex</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<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/<wbr>listinfo/xetex</a><br>
<br></blockquote></div><br></div>