Discussion:
[XeTeX] hyphenation cancelled through footnote
h***@staff.uni-marburg.de
2018-01-03 13:35:56 UTC
Permalink
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
Zdenek Wagner
2018-01-03 13:45:15 UTC
Permalink
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
Post by h***@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
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
Ulrike Fischer
2018-01-03 15:16:38 UTC
Permalink
Am Wed, 03 Jan 2018 14:35:56 +0100 schrieb
Post by h***@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?
I see no difference with and without \varc. In both cases I get an
overful line.

What texsystem are you using?
--
Ulrike Fischer
http://www.troubleshooting-tex.de/



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Zdenek Wagner
2018-01-03 15:33:35 UTC
Permalink
Post by Ulrike Fischer
Am Wed, 03 Jan 2018 14:35:56 +0100 schrieb
Post by h***@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?
I see no difference with and without \varc. In both cases I get an
overful line.
What texsystem are you using?
Yes, you get an overflow line but not so much, less than 1pt. The problem
is that there is no expandable/shrinkable space, so with my redefinition
the word is hyphenated at the first place with smallest possible overflow
(in the part after \varc). \hskip 0pt says TeX to treat the parts before
and after \varc as separate words. Text in Indic scripts can be hyphenated
after each group started with a vyanjana and ending with a svara, so
\patterns are not generated by patgen but made agorithmically. Thus the
compound word can be broken by \hskip 0pt after any svara and both parts
will certainly have a good match in \patterns. JÃŒrgen's definition of \varc
prevents finding a match in \patterns so that the whole word with \varc in
its middle remain unhyphenated on the first line which is overflowed more
than 69pt. In addition, I forgot to mention that TeX never hyphenates the
first word of a paragraph which is another problem. Thus if \varc appeared
too far then even my solution will not help. It will be necessary to force
TeX to think that there is an invisible word with zero width at the
beginning of a paragraph followe by a fixed zero-width space.

Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Post by Ulrike Fischer
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
h***@staff.uni-marburg.de
2018-01-03 16:53:48 UTC
Permalink
Thanks for the workaround!
I checked with other parts of my edition and there are still erratic
problems. In the
example below the first paragraph works, but the second does not.
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017/Arch Linux)
JH

\documentclass[11pt]{memoir}
\usepackage[series={A,B},noend,noeledsec,nofamiliar,noledgroup]{reledmac}
\Xarrangement[A]{paragraph}
%\newcommand{\varc}[2]{\edtext{}{\lemma{#1}\Afootnote{\sanskritfont{#2}}}}
\newcommand{\varc}[2]{\nobreak\hskip 0pt
\edtext{}{\lemma{#1}\Afootnote{\sanskritfont{#2}}}\hskip 0pt \relax}

\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

\pstart
śrīmacchrīsvasvatantrānāśritanirbhāgaparamaprakāśavimarśamayapāramaiśvaryānubhāvānubhāvuka\varc{ānubhāvānubhāvuka}{ānubhavānubhāvaka}prathitamahitanijasahajaparamānandādvayasattāsāmānyaspanda uditoditaparamaśaktisāmrājyo rājarājeśvaro jayasi
paramaśivastvamayam//\varc{tvamayam}{tvamaya}
\pend

\endnumbering
\end{sanskrit}
\end{document}





----- Nachricht von Zdenek Wagner <***@gmail.com> ---------
Datum: Wed, 3 Jan 2018 16:33:35 +0100
Von: Zdenek Wagner <***@gmail.com>
Antwort an: "XeTeX (Unicode-based TeX) discussion." <***@tug.org>
Betreff: Re: [XeTeX] hyphenation cancelled through footnote
Post by Ulrike Fischer
Am Wed, 03 Jan 2018 14:35:56 +0100 schrieb
Post by h***@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?
I see no difference with and without \varc. In both cases I get an
overful line.
What texsystem are you using?
Yes, you get an overflow line but not so much, less than 1pt. The problem
is that there is no expandable/shrinkable space, so with my redefinition
the word is hyphenated at the first place with smallest possible overflow
(in the part after \varc). \hskip 0pt says TeX to treat the parts before
and after \varc as separate words. Text in Indic scripts can be hyphenated
after each group started with a vyanjana and ending with a svara, so
\patterns are not generated by patgen but made agorithmically. Thus the
compound word can be broken by \hskip 0pt after any svara and both parts
will certainly have a good match in \patterns. Jürgen's definition of \varc
prevents finding a match in \patterns so that the whole word with \varc in
its middle remain unhyphenated on the first line which is overflowed more
than 69pt. In addition, I forgot to mention that TeX never hyphenates the
first word of a paragraph which is another problem. Thus if \varc appeared
too far then even my solution will not help. It will be necessary to force
TeX to think that there is an invisible word with zero width at the
beginning of a paragraph followe by a fixed zero-width space.
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Post by Ulrike Fischer
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
----- Ende der Nachricht von Zdenek Wagner <***@gmail.com> -----



---

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
Zdenek Wagner
2018-01-03 21:06:41 UTC
Permalink
Hi,

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.


Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Post by h***@staff.uni-marburg.de
Thanks for the workaround!
I checked with other parts of my edition and there are still erratic
problems. In the
example below the first paragraph works, but the second does not.
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017/Arch Linux)
JH
\documentclass[11pt]{memoir}
\usepackage[series={A,B},noend,noeledsec,nofamiliar,noledgroup]{reledmac}
\Xarrangement[A]{paragraph}
%\newcommand{\varc}[2]{\edtext{}{\lemma{#1}\Afootnote{\sanskritfont{#2}}}}
\newcommand{\varc}[2]{\nobreak\hskip 0pt
\edtext{}{\lemma{#1}\Afootnote{\sanskritfont{#2}}}\hskip 0pt \relax}
\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
\pstart
śrīmacchrīsvasvatantrānāśritanirbhāgaparamaprakāśavimarśamay
apāramaiśvaryānubhāvānubhāvuka\varc{ānubhāvānubhāvuka}{ānubh
avānubhāvaka}prathitamahitanijasahajaparamānandādvayasattāsāmānyaspanda
uditoditaparamaśaktisāmrājyo rājarājeśvaro jayasi
paramaśivastvamayam//\varc{tvamayam}{tvamaya}
\pend
\endnumbering
\end{sanskrit}
\end{document}
Datum: Wed, 3 Jan 2018 16:33:35 +0100
Betreff: Re: [XeTeX] hyphenation cancelled through footnote
Am Wed, 03 Jan 2018 14:35:56 +0100 schrieb
Post by Ulrike Fischer
Post by h***@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?
I see no difference with and without \varc. In both cases I get an
overful line.
What texsystem are you using?
Yes, you get an overflow line but not so much, less than 1pt. The problem
is that there is no expandable/shrinkable space, so with my redefinition
the word is hyphenated at the first place with smallest possible overflow
(in the part after \varc). \hskip 0pt says TeX to treat the parts before
and after \varc as separate words. Text in Indic scripts can be hyphenated
after each group started with a vyanjana and ending with a svara, so
\patterns are not generated by patgen but made agorithmically. Thus the
compound word can be broken by \hskip 0pt after any svara and both parts
will certainly have a good match in \patterns. JÃŒrgen's definition of \varc
prevents finding a match in \patterns so that the whole word with \varc in
its middle remain unhyphenated on the first line which is overflowed more
than 69pt. In addition, I forgot to mention that TeX never hyphenates the
first word of a paragraph which is another problem. Thus if \varc appeared
too far then even my solution will not help. It will be necessary to force
TeX to think that there is an invisible word with zero width at the
beginning of a paragraph followe by a fixed zero-width space.
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Post by Ulrike Fischer
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
---
Prof. Dr. Juergen Hanneder
Philipps-Universitaet Marburg
FG Indologie u. Tibetologie
Deutschhausstr.12
35032 Marburg
Germany
Tel. 0049-6421-28-24930
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
Avishai Goldman
2018-01-04 14:22:11 UTC
Permalink
To allow hyphenation of the first word of the paragraph, precede it with
\hspace{0pt}.

Cheers,

Avishai Goldman
Post by Zdenek Wagner
Hi,
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.
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Thanks for the workaround!
I checked with other parts of my edition and there are still
erratic problems. In the
example below the first paragraph works, but the second does not.
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017/Arch Linux)
JH
\documentclass[11pt]{memoir}
\usepackage[series={A,B},noend,noeledsec,nofamiliar,noledgroup]{reledmac}
\Xarrangement[A]{paragraph}
%\newcommand{\varc}[2]{\edtext{}{\lemma{#1}\Afootnote{\sanskritfont{#2}}}}
\newcommand{\varc}[2]{\nobreak\hskip 0pt
\edtext{}{\lemma{#1}\Afootnote{\sanskritfont{#2}}}\hskip 0pt \relax}
\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
\pstart
śrīmacchrīsvasvatantrānāśritanirbhāgaparamaprakāśavimarśamayapāramaiśvaryānubhāvānubhāvuka\varc{ānubhāvānubhāvuka}{ānubhavānubhāvaka}prathitamahitanijasahajaparamānandādvayasattāsāmānyaspanda
uditoditaparamaśaktisāmrājyo rājarājeśvaro jayasi
paramaśivastvamayam//\varc{tvamayam}{tvamaya}
\pend
\endnumbering
\end{sanskrit}
\end{document}
     Datum: Wed, 3 Jan 2018 16:33:35 +0100
   Betreff: Re: [XeTeX] hyphenation cancelled through footnote
Am Wed, 03 Jan 2018 14:35:56 +0100 schrieb
Post by h***@staff.uni-marburg.de
When editing Sanskrit texts with very long compounds,
avoiding manual
Post by h***@staff.uni-marburg.de
hyphenation is extremely time
saving. XeLaTeX fortunately takes care of this, but the
mechanism is
Post by h***@staff.uni-marburg.de
cancelled by footnotes within
the compounded word. In the example below the \varc{}{}
causes the
Post by h***@staff.uni-marburg.de
error. Any idea on how to enable
hyphenation under such conditions?
I see no difference with and without \varc. In both cases I get an
overful line.
What texsystem are you using?
Yes, you get an overflow line but not so much, less than 1pt. The problem
is that there is no expandable/shrinkable space, so with my redefinition
the word is hyphenated at the first place with smallest possible overflow
(in the part after \varc). \hskip 0pt says TeX to treat the parts before
and after \varc as separate words. Text in Indic scripts can be hyphenated
after each group started with a vyanjana and ending with a svara, so
\patterns are not generated by patgen but made agorithmically. Thus the
compound word can be broken by \hskip 0pt after any svara and both parts
will certainly have a good match in \patterns. JÃŒrgen's
definition of \varc
prevents finding a match in \patterns so that the whole word with \varc in
its middle remain unhyphenated on the first line which is overflowed more
than 69pt. In addition, I forgot to mention that TeX never hyphenates the
first word of a paragraph which is another problem. Thus if \varc appeared
too far then even my solution will not help. It will be necessary to force
TeX to think that there is an invisible word with zero width at the
beginning of a paragraph followe by a fixed zero-width space.
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
<http://ttsm.icpf.cas.cz/team/wagner.shtml>
http://icebearsoft.euweb.cz
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
<http://www.troubleshooting-tex.de/>
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
<http://tug.org/mailman/listinfo/xetex>
----- Ende der Nachricht von Zdenek Wagner
---
Prof. Dr. Juergen Hanneder
Philipps-Universitaet Marburg
FG Indologie u. Tibetologie
Deutschhausstr.12
35032 Marburg
Germany
Tel. 0049-6421-28-24930
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
<http://tug.org/mailman/listinfo/xetex>
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
Dominik Wujastyk
2018-01-09 23:11:09 UTC
Permalink
Yes, this first-word problem is a nuisance.

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.

Best,
Dominik

​
--
Professor Dominik Wujastyk <http://ualberta.academia.edu/DominikWujastyk>
​,​

Singhmar Chair in Classical Indian Society and Polity
​,​

Department of History and Classics <http://historyandclassics.ualberta.ca/>
​,​
University of Alberta, Canada
​.​

South Asia at the U of A:

​sas.ualberta.ca​
​​
Post by Avishai Goldman
To allow hyphenation of the first word of the paragraph, precede it with
\hspace{0pt}.
Cheers,
Avishai Goldman
Hi,
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.
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Post by h***@staff.uni-marburg.de
Thanks for the workaround!
I checked with other parts of my edition and there are still erratic
problems. In the
example below the first paragraph works, but the second does not.
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017/Arch Linux)
JH
\documentclass[11pt]{memoir}
\usepackage[series={A,B},noend,noeledsec,nofamiliar,noledgroup]{reledmac}
\Xarrangement[A]{paragraph}
%\newcommand{\varc}[2]{\edtext{}{\lemma{#1}\Afootnote{\sansk
ritfont{#2}}}}
\newcommand{\varc}[2]{\nobreak\hskip 0pt
\edtext{}{\lemma{#1}\Afootnote{\sanskritfont{#2}}}\hskip 0pt \relax}
\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
\pstart
śrīmacchrīsvasvatantrānāśritanirbhāgaparamaprakāśavimarśamay
apāramaiśvaryānubhāvānubhāvuka\varc{ānubhāvānubhāvuka}{ānubh
avānubhāvaka}prathitamahitanijasahajaparamānandādvayasattāsāmānyaspanda
uditoditaparamaśaktisāmrājyo rājarājeśvaro jayasi
paramaśivastvamayam//\varc{tvamayam}{tvamaya}
\pend
\endnumbering
\end{sanskrit}
\end{document}
Datum: Wed, 3 Jan 2018 16:33:35 +0100
Betreff: Re: [XeTeX] hyphenation cancelled through footnote
Am Wed, 03 Jan 2018 14:35:56 +0100 schrieb
Post by Ulrike Fischer
Post by h***@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?
I see no difference with and without \varc. In both cases I get an
overful line.
What texsystem are you using?
Yes, you get an overflow line but not so much, less than 1pt. The problem
is that there is no expandable/shrinkable space, so with my redefinition
the word is hyphenated at the first place with smallest possible overflow
(in the part after \varc). \hskip 0pt says TeX to treat the parts before
and after \varc as separate words. Text in Indic scripts can be hyphenated
after each group started with a vyanjana and ending with a svara, so
\patterns are not generated by patgen but made agorithmically. Thus the
compound word can be broken by \hskip 0pt after any svara and both parts
will certainly have a good match in \patterns. JÃŒrgen's definition of \varc
prevents finding a match in \patterns so that the whole word with \varc in
its middle remain unhyphenated on the first line which is overflowed more
than 69pt. In addition, I forgot to mention that TeX never hyphenates the
first word of a paragraph which is another problem. Thus if \varc appeared
too far then even my solution will not help. It will be necessary to force
TeX to think that there is an invisible word with zero width at the
beginning of a paragraph followe by a fixed zero-width space.
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Post by Ulrike Fischer
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
---
Prof. Dr. Juergen Hanneder
Philipps-Universitaet Marburg
FG Indologie u. Tibetologie
Deutschhausstr.12
35032 Marburg
Germany
Tel. 0049-6421-28-24930 <+49%206421%202824930>
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
Ulrike Fischer
2018-01-03 17:06:11 UTC
Permalink
Post by Ulrike Fischer
I see no difference with and without \varc. In both cases I get an
overful line.
Ah. I think I know why I didn't get any hyphenation:

Font mapping `RomDev.tec' for font `Sanskrit 2003' not found.

Where is the .tec?
--
Ulrike Fischer
http://www.troubleshooting-tex.de/



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
h***@staff.uni-marburg.de
2018-01-03 17:24:48 UTC
Permalink
When some installations I used had problems to find it, I started keeping it
in the directory where the files are.


----- Nachricht von Ulrike Fischer <***@nililand.de> ---------
Datum: Wed, 3 Jan 2018 18:06:11 +0100
Von: Ulrike Fischer <***@nililand.de>
Antwort an: ***@nililand.de, "XeTeX (Unicode-based TeX) discussion."
<***@tug.org>
Betreff: Re: [XeTeX] hyphenation cancelled through footnote
Post by Ulrike Fischer
Post by Ulrike Fischer
I see no difference with and without \varc. In both cases I get an
overful line.
Font mapping `RomDev.tec' for font `Sanskrit 2003' not found.
Where is the .tec?
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
----- Ende der Nachricht von Ulrike Fischer <***@nililand.de> -----



---

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/listinfo/xetex
Loading...