[XeTeX] Quotes and dashes

Zdenek Wagner zdenek.wagner at gmail.com
Tue Apr 14 15:25:07 CEST 2015


Your main font is Rachana, your default language is Malayalam. You do not
use any language/script switching. Although you define Roman font, it will
never be used. You have to use \setotherlanguage{english} and put the
English text inside \textenglish{...}. In such a case these texts will be
typeset in the roman font. alternatively you can use the ucharclasses
package.

Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz

2015-04-14 15:16 GMT+02:00 Sasi Kumar <sasi.fsf at gmail.com>:

> Although I had written about this problem earlier and got some responses,
> I continue to be plagued by the absence of "curly" quotes and mdashes. I am
> giving a minimal working example below. It gives a pdf that has rectangles
> where I have placed quotes and dashes:
>
> \documentclass[a4paper,12pt]{article}
> \usepackage[margin=1in]{geometry}
> \usepackage{fontspec}
> \usepackage{polyglossia,xltxtra}
> \newfontfamily\malayalamfont[Script=Malayalam,Mapping=tex-text]{Rachana}
> \setmainfont[Script=Malayalam, HyphenChar="0000, Mapping=tex-text]{Rachana}
> \usepackage{xltxtra}
> \defaultfontfeatures{Mapping=tex-text}
> \setromanfont{FreeSerif}
>
> \usepackage{url}
> \headheight=15pt
> \usepackage{fancyhdr}
> \setdefaultlanguage{malayalam}
> \date{}
>
> \begin{document}
> (Sir Frederick William Herschel, 1738--1822)
>
> "ഗ്രഹം"
>
> ``planet''
> \end{document}
>
> Thanks in advance for any solution.
>
> Regards,
> Sasi
>
> --
> V. Sasi Kumar
> Free Software Foundation of India
> Please see: http://swatantryam.blogspot.com/
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20150414/2ff10561/attachment.html>


More information about the XeTeX mailing list