Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-09 Thread Jonathan Kew
On 7/10/15 16:18, Peter Mukunda Pasedach wrote: Dear XeTeX list, in the following example, \documentclass[a4paper]{article} \usepackage{fontspec} \usepackage[para]{footmisc} \begin{document} \footnote{XX just a few normal words to fill up the line up to my word hy\-phe\-na\-te\-m

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Dominik Wujastyk
Oh, my bad. I was working from dim memory of the past. I wonder if LaTeX changed its footnote handling somewhere along the line, or whether I'm just wrong full stop. Not interesting in the present context. Best, Dominik On 8 October 2015 at 12:12, David Carlisle wrote: > On 8 October 2015 at

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Bruno Le Floch
On 10/8/15, David Carlisle wrote: > On 8 October 2015 at 17:53, Dominik Wujastyk wrote: >> The original questioner said he was doing a critical edition. If he's >> using >> EDMAC or LEDMAC then perhaps I can note that EDMAC does some work to >> avoid >> setting footnote text in "restricted horiz

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread David Carlisle
On 8 October 2015 at 17:53, Dominik Wujastyk wrote: > The original questioner said he was doing a critical edition. If he's using > EDMAC or LEDMAC then perhaps I can note that EDMAC does some work to avoid > setting footnote text in "restricted horizontal mode". Restricted > horizontal mode doe

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Dominik Wujastyk
The original questioner said he was doing a critical edition. If he's using EDMAC or LEDMAC then perhaps I can note that EDMAC does some work to avoid setting footnote text in "restricted horizontal mode". Restricted horizontal mode does a number of annoying things to text, including (I think) th

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Jonathan Kew
On 8/10/15 16:29, Bruno Le Floch wrote: Here's a shorter example which hyphenates with cmr12 (in pdfTeX/XeTeX) but not with the font copied from David's example: hyphenation is lost when closing the hbox, as can be seen by adding the appropriate \tracingonline=1\showboxbreadth=99 and \showlists j

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Bruno Le Floch
Here's a shorter example which hyphenates with cmr12 (in pdfTeX/XeTeX) but not with the font copied from David's example: hyphenation is lost when closing the hbox, as can be seen by adding the appropriate \tracingonline=1\showboxbreadth=99 and \showlists just before the closing brace. I have no i

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Arthur Reutenauer
On Thu, Oct 08, 2015 at 01:01:37PM +0100, David Carlisle wrote: > Here is a plain tex example, not quite as minimal as I'd like but out > of time for now. > > This hyphenates with pdftex but not xetex Many thanks David, that's really helpful. Best, Arthur ---

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Philip Taylor
David Carlisle wrote: > Here is a plain tex example, not quite as minimal as I'd like but out > of time for now. > > This hyphenates with pdftex but not xetex But the following hyphenates identically in both. I do wonder whether being the last word of the para. is implicated ... \nopagenumbe

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread David Carlisle
Here is a plain tex example, not quite as minimal as I'd like but out of time for now. This hyphenates with pdftex but not xetex \nopagenumbers \catcode`\@=11 \ifx\Umathchar\@undefined \font\x=cmr12 \else \font\x="[lmroman12-regular]:mapping=tex-text" \fi \x \newbox\FN@tempboxa \newbox\FN@t

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Philip Taylor
Jonathan Kew wrote: > Yes, it's very possible this is an engine bug. What would be most useful > here, I think, would be a reduced (non-LaTeX!) test case demonstrating > the underlying incorrect behaviour at the (Xe)TeX primitive level. Any > takers? Way beyond my abilities but I can demonstrat

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread David Carlisle
> Yes, it's very possible this is an engine bug. What would be most useful > here, I think, would be a reduced (non-LaTeX!) > testcase demonstrating the > underlying incorrect behavior at the (Xe)TeX primitive level. Any takers? I'll see what I can do David ---

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Jonathan Kew
On 8/10/15 09:52, David Carlisle wrote: On 8 October 2015 at 09:50, Philip Taylor wrote: Hmmm, completely stymied : not even this works ... It wouldn't be expected to really, this was asked on stackexchange initially and it looks almost certainly due to the interface between tex's hyphenatio

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread David Carlisle
On 8 October 2015 at 09:50, Philip Taylor wrote: > Hmmm, completely stymied : not even this works ... It wouldn't be expected to really, this was asked on stackexchange initially and it looks almost certainly due to the interface between tex's hyphenation and the font libraries, that is, an issu

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Philip Taylor
Hmmm, completely stymied : not even this works ... % !TeX Program=XeLaTeX \documentclass[a4paper]{article} \usepackage{fontspec} \usepackage[para]{footmisc} \begin{document} \message {\meaning \discretionary} \footnote{XX just a few normal words to fill up the line up to my x x x hy

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Philip Taylor
David Carlisle wrote: > It seems to be there just that the \nobreak is making the first part > not be th elast word in the paragraph. Oops, I had forgotten that I had added a \nobreak when investigating this odd behaviour earlier; sorry, Peter ! Back to the drawing board ... ** Phil. ---

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread David Carlisle
On 8 October 2015 at 09:25, Philip Taylor wrote: > > > Zdenek Wagner wrote: > >> I have no time to look deep into it but does anybody know what is the >> definition of \- if these packages is used? Isn't is possible that it is >> a fragile macro? I remember one thing from Phil Taylor's tutorial he

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-08 Thread Philip Taylor
Zdenek Wagner wrote: > I have no time to look deep into it but does anybody know what is the > definition of \- if these packages is used? Isn't is possible that it is > a fragile macro? I remember one thing from Phil Taylor's tutorial held > on EuroTeX'92 in Prague. He said that the most freque

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-07 Thread Zdenek Wagner
I have no time to look deep into it but does anybody know what is the definition of \- if these packages is used? Isn't is possible that it is a fragile macro? I remember one thing from Phil Taylor's tutorial held on EuroTeX'92 in Prague. He said that the most frequent error is wrong timing of expa

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-07 Thread Philip Taylor
Peter Mukunda Pasedach wrote: > You then get "hyphen-ateme", which is not among the list of possible > hyphenation points I've specified. Yes, I realised that after I had posted, which confused me enormously. The presence of explicit discretionaries within a word is supposed to inhibit normal w

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-07 Thread Peter Mukunda Pasedach
You then get "hyphen-ateme", which is not among the list of possible hyphenation points I've specified. On Wed, Oct 7, 2015 at 8:06 PM, Philip Taylor wrote: > A trailing space will help : > > \footnote{XX just a few normal words to fill up the line > up to my x x x hy\-phe\-na

Re: [XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-07 Thread Philip Taylor
A trailing space will help : \footnote{XX just a few normal words to fill up the line up to my x x x hy\-phe\-na\-te\-me } Philip Taylor -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/x

[XeTeX] Discretionary hyphens don't work in paragraphed footnotes

2015-10-07 Thread Peter Mukunda Pasedach
Dear XeTeX list, in the following example, \documentclass[a4paper]{article} \usepackage{fontspec} \usepackage[para]{footmisc} \begin{document} \footnote{XX just a few normal words to fill up the line up to my word hy\-phe\-na\-te\-me} \end{document} the discretionary hyphens don't