Re: [XeTeX] emdash and endash

2017-02-18 Thread Johann Spies
On Fri, Feb 17, 2017 at 09:41:10PM +, David Carlisle wrote: > It should work > > \documentclass{article} > \listfiles > \usepackage{fontspec} > \begin{document} > > > a---b > > \end{document} > > > makes an emdash for me with current texlive. > > If you have an example that fails can

Re: [XeTeX] emdash and endash

2017-02-18 Thread David Carlisle
You could try updating (tuenc is 2017/01/24 v2.0c in the current release) but I don't think it's likely to be a macro issue --- ligatures are handled by tfm metrics or the tex-text mapping depending on the font type. Others on this list would be better able to suggest ways of debugging a failure

Re: [XeTeX] emdash and endash

2017-02-18 Thread David Carlisle
On 18 February 2017 at 09:45, Zdenek Wagner wrote: > No, -- and --- are handled by tfm in traditional TeX, in XeTeX it is handled > by the teckit mapping. The keywords are either Mapping=tex-text or > Ligatures=TeX. I have not examined the packages in depth but it may be

Re: [XeTeX] emdash and endash

2017-02-18 Thread Philip Taylor
David Carlisle wrote: > it depends what fonts the OP is using in the document. I think p >> 0.999 that native (platform/TTF/OTF/whatever>) fonts are being used. There is no reason why the behaviour of -- or --- should suddenly change if TFM-based fonts (shudder) are used. Philip Taylor

Re: [XeTeX] emdash and endash

2017-02-18 Thread Zdenek Wagner
No, -- and --- are handled by tfm in traditional TeX, in XeTeX it is handled by the teckit mapping. The keywords are either Mapping=tex-text or Ligatures=TeX. I have not examined the packages in depth but it may be added automaticaly. The mapping is defined in file

Re: [XeTeX] emdash and endash

2017-02-18 Thread Herbert Schulz
> On Feb 18, 2017, at 2:53 AM, Johann Spies wrote: > > On Fri, Feb 17, 2017 at 09:41:10PM +, David Carlisle wrote: >> It should work >> >> \documentclass{article} >> \listfiles >> \usepackage{fontspec} >> \begin{document} >> >> >> a---b >> >> \end{document}

Re: [XeTeX] emdash and endash

2017-02-18 Thread Ulrike Fischer
Am Sat, 18 Feb 2017 10:53:29 +0200 schrieb Johann Spies: >> It should work >> >> \documentclass{article} >> \listfiles >> \usepackage{fontspec} >> \begin{document} >> >> >> a---b >> >> \end{document} >> >> >> makes an emdash for me with current texlive. >> >> If you have an example that

Re: [XeTeX] emdash and endash

2017-02-18 Thread Johann Spies
On Sat, Feb 18, 2017 at 02:32:54PM +0100, Ulrike Fischer wrote: > Does it fail with lualatex too? Can you update to get the newest > latex/fontspec versions? Unfortunately I saw your email only after building and installing texlive packages from Debian Sid sources which provided

Re: [XeTeX] emdash and endash(solved)

2017-02-18 Thread Johann Spies
Thanks for everyone looking into this problem. As I said in another email, the problem was solved by building packages from Debian Unstable which provided a newer version. Regards Johann -- J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4699(w) Posbus 4668, Tygervallei