[XeTeX] XeLaTeX not using language-specific glyphs with Scheherazade 2.x

Lammert, Richard richard.lammert at ctsfw.edu
Sat Oct 5 22:25:52 CEST 2013


(Sorry about that empty message with one attachment--clicked the wrong
button.)

The following example attempts to use language-specific glyphs from
Scheherazade, but does not work with Scheherazade 2.0 or 2.01. The example
*does* work with Scheherazade 1.005 (see attachments arabic-test-1.005.pdf
and arabic-test-2.01.pdf)

However, when I use TypeTuner to produce language-specific fonts for each
of the three languages (last three lines of each test file), XeLaTeX
properly shows the correct contextual forms. Since XeLaTeX reads the glyphs
properly from the tuned fonts, it appears to me that the language
information is not being interpreted properly in the base font. I am using
XeLaTeX 0.9999.3, fontspec v. 2.3c, and bidi v14 on an iMac.

Minimal working example follows:

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

\documentclass{memoir}
\chapterstyle{bianchi}

\usepackage[no-math]{fontspec}
\usepackage{bidi}

\newfontfamily\arabic[Renderer=Graphite,Script=Arabic]{Scheherazade}
\newfontfamily\kurdish[Renderer=Graphite,Script=Arabic,Language=Kurdish]{Scheherazade}
\newfontfamily\sindhi[Renderer=Graphite,Script=Arabic,Language=Sindhi]{Scheherazade}
\newfontfamily\urdu[Renderer=Graphite,Script=Arabic,Language=Urdu]{Scheherazade}
\newfontfamily\kurdishsel[Renderer=Graphite,Script=Arabic]{Scheherazade
LngKur}
\newfontfamily\sindhisel[Renderer=Graphite,Script=Arabic]{Scheherazade
LngSin}
\newfontfamily\urdusel[Renderer=Graphite,Script=Arabic]{Scheherazade LngUrd}
\newcommand{\arabicfnt}{\arabic\fontsize{22}{26pt}\selectfont}
\newcommand{\kurdishfnt}{\kurdish\fontsize{22}{26pt}\selectfont}
\newcommand{\sindhifnt}{\sindhi\fontsize{22}{26pt}\selectfont}
\newcommand{\urdufnt}{\urdu\fontsize{22}{26pt}\selectfont}
\newcommand{\kurdishselfnt}{\kurdishsel\fontsize{22}{26pt}\selectfont}
\newcommand{\sindhiselfnt}{\sindhisel\fontsize{22}{26pt}\selectfont}
\newcommand{\urduselfnt}{\urdusel\fontsize{22}{26pt}\selectfont}

\newcommand\arabtext{م ممم - ه ههه  -   ◌ٍّ   ◌ِّ   }

\begin{document}

default: \par \RL{\arabicfnt\arabtext}

Kurdish: \par \RL{\kurdishfnt\arabtext}

Sindhi: \par \RL{\sindhifnt\arabtext}

Urdu: \par \RL{\urdufnt\arabtext}

Languages implemented with TypeTuner:

Kurdish: \par \RL{\kurdishselfnt\arabtext}

Sindhi: \par \RL{\sindhiselfnt\arabtext}

Urdu: \par \RL{\urduselfnt\arabtext}

\end{document}

*** end of example

Richard


-- 

Rev. Richard A. Lammert           e-mail: richard.lammert at ctsfw.edu
Technical Services Librarian       mail: 6600 N. Clinton St.
Systems Librarian                     Fort Wayne, IN 46825-4916
Walther Library                         phone: 260-452-3148
Concordia Theological Seminary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20131005/875217cb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arabic-test-1.005.pdf
Type: application/pdf
Size: 47903 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20131005/875217cb/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arabic-test-2.01.pdf
Type: application/pdf
Size: 47314 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20131005/875217cb/attachment-0003.pdf>


More information about the XeTeX mailing list