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 you show log from such a test
> (\listfiles makes a list of package versions at the end of the log)

Thanks David.

This shows the problem.  It does not compile correctly and this is the
list of packages:

 *File List*
 article.cls2014/09/29 v1.4h Standard LaTeX document class
  size10.clo2014/09/29 v1.4h Standard LaTeX file (size option)
fontspec.sty2017/01/02 v2.5c Font selection for XeLaTeX and LuaLaTeX
   expl3.sty2016/11/21 v6760 L3 programming layer (loader) 
expl3-code.tex2016/11/21 v6760 L3 programming layer 
l3xdvipdfmx.def
  xparse.sty2016/11/21 v6760 L3 Experimental document command parser
fontspec-xetex.sty2017/01/02 v2.5c Font selection for XeLaTeX and LuaLaTeX
 fontenc.sty
   tuenc.def2016/12/11 v2.0a Standard LaTeX file
fontspec.cfg
 ***


However when I add

\setmainfont[Ligatures=TeX,Mapping=tex-text]{Linux Libertine O}

it compiles correctly.

My first problem was after Beamer gave me a problem.  In Beamer I cannot
add this - or can I do something similarly?

Regards
Johann
-- 
J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4699(w)  
 Posbus 4668, Tygervallei 7536

 "Surely he hath borne our griefs, and carried our sorrows:
  yet we did esteem him stricken, smitten of God, and
  afflicted. But he was wounded for our transgressions,
  he was bruised for our iniquities: the chastisement of
  our peace was upon him; and with his stripes we are
  healed."Isaiah 53:4,5 


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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 for the tex-text mapping to kick in.

David


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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
texmf-dist/fonts/misc/xetex/fontmapping/base/tex-text.map (*.map is
compiled to *.tec by teckit-compile).


Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz

2017-02-18 10:23 GMT+01:00 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 for the tex-text mapping to kick in.
>
> David
>
>
> --
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex
>


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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 added
> automaticaly. The mapping is defined in file
> texmf-dist/fonts/misc/xetex/fontmapping/base/tex-text.map (*.map is compiled
> to *.tec by teckit-compile).
>
>

As I said, it is handled by the mapping file (which is applied by
default if the font is loaded via fontspec)
but if classic fonts are being used then this is a feature of the tfm
(even in xetex, not just in traditional tex)
so it depends what fonts the OP is using in the document.

David


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit

2017-02-18 Thread Javier Bezos

\usebabelfont[*devanagari]{FontName}


Just a little explanation about its behavior. If we say

\selectlanguage{sanskrit}

then both the language and the script will be set. More precisely,
using the info in the new language files I'm writing (almost by hand!),
babel will do at this point something similar to:

\fontspec[Language=Sanskrit,Script=Devanagari]{FontName}

(Actually, things are a bit more complicated.) Note the selection
will be always with the language, not with the script. This means
the following makes sense

\usebabelfont[*arabic]{FontName}

\selectlanguage{arabic}
\selectlanguage{urdu}

which will do:

\fontspec[Language=Arabic,Script=Arabic]{FontName}
\fontspec[Language=Urdu,Script=Arabic]{FontName}

But if we want two different fonts, we could say

\usebabelfont[arabic]{ArabicFontName}
\usebabelfont[urdu]{UrduFontName}

Javier





--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


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}
>> 
>> 
>> makes an emdash for me with current texlive.
>> 
>> If you have an example that fails can you show log from such a test
>> (\listfiles makes a list of package versions at the end of the log)
> 
> Thanks David.
> 
> This shows the problem.  It does not compile correctly and this is the
> list of packages:
> 
> *File List*
> article.cls2014/09/29 v1.4h Standard LaTeX document class
>  size10.clo2014/09/29 v1.4h Standard LaTeX file (size option)
> fontspec.sty2017/01/02 v2.5c Font selection for XeLaTeX and LuaLaTeX
>   expl3.sty2016/11/21 v6760 L3 programming layer (loader) 
> expl3-code.tex2016/11/21 v6760 L3 programming layer 
> l3xdvipdfmx.def
>  xparse.sty2016/11/21 v6760 L3 Experimental document command parser
> fontspec-xetex.sty2017/01/02 v2.5c Font selection for XeLaTeX and LuaLaTeX
> fontenc.sty
>   tuenc.def2016/12/11 v2.0a Standard LaTeX file
> fontspec.cfg
> ***
> 
> 
> However when I add
> 
> \setmainfont[Ligatures=TeX,Mapping=tex-text]{Linux Libertine O}
> 
> it compiles correctly.
> 
> My first problem was after Beamer gave me a problem.  In Beamer I cannot
> add this - or can I do something similarly?
> 
> Regards
> Johann

Howdy,

Compiles correctly here with a fully updated TeX Live 2016:

 article.cls2014/09/29 v1.4h Standard LaTeX document class
  size10.clo2014/09/29 v1.4h Standard LaTeX file (size option)
fontspec.sty2017/02/12 v2.6 Font selection for XeLaTeX and LuaLaTeX
   expl3.sty2017/02/10 v6878 L3 programming layer (loader) 
expl3-code.tex2017/02/10 v6878 L3 programming layer 
l3xdvipdfmx.def
  xparse.sty2017/02/10 v6878 L3 Experimental document command parser
fontspec-xetex.sty2017/02/12 v2.6 Font selection for XeLaTeX and LuaLaTeX
 fontenc.sty
   tuenc.def2017/01/24 v2.0c Standard LaTeX file
fontspec.cfg

so I've got updated file versions. there were a few problems that cropped up 
with the 2.5x versions.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)




--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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 fails can you show log from such a test
>> (\listfiles makes a list of package versions at the end of the log)
> 
> Thanks David.
> 
> This shows the problem.  It does not compile correctly 

Does it fail with lualatex too? Can you update to get the newest
latex/fontspec versions? 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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
*2016.20170123-3* packages instead of *2016.20170123-2*.

After that everything seems to be back to normal again.  That is
probably a good example of running Debian "Testing"  in stead of
"Stable" :)

But a risk worth taking for me.

Regards
Johann

-- 
J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4699(w)  
 Posbus 4668, Tygervallei 7536

 "Surely he hath borne our griefs, and carried our sorrows:
  yet we did esteem him stricken, smitten of God, and
  afflicted. But he was wounded for our transgressions,
  he was bruised for our iniquities: the chastisement of
  our peace was upon him; and with his stripes we are
  healed."Isaiah 53:4,5 


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


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 7536

 "Surely he hath borne our griefs, and carried our sorrows:
  yet we did esteem him stricken, smitten of God, and
  afflicted. But he was wounded for our transgressions,
  he was bruised for our iniquities: the chastisement of
  our peace was upon him; and with his stripes we are
  healed."Isaiah 53:4,5 


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex