[XeTeX] [OT] OpenType Turkish language tag
Stephen Moye
stephenmoye at mac.com
Sat Jul 8 14:35:42 CEST 2006
I ran otfinfo -s on 'Palatino Linotype' and got this:
> 8:18 ~% otfinfo -s /Type_Collection/Palatino_OTF_TT/OTF/Palatino\
> Linotype\ Bold\ Ital.otf
> cyrl Cyrillic
> grek Greek
> latn Latin
> latn.DEU Latin/German (Standard)
> latn.ROM Latin/Romanian
> latn.TRK Latin/Turkish
> latn.VIT Latin/Vietnamese
I ran your test with 'Palatino Linotype':
%!%!%!%
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[10pt]{article}
\usepackage{euler}
\usepackage{fontspec,xunicode}
\setromanfont{Palatino Linotype}
\makeatletter
\define at key[zf at feat]{Lang}{Turkish}[]{%
\zf at check@ot at lang{TRK}%
\if at tempswa
\c at zf@language\@tempcnta\relax
\xdef\zf at language@name{Turkish}%
\xdef\zf at family@long{\zf at family@long+lang=Turkish}%
\xdef\zf at pre@ff{\zf at pre@ff language=TRK,}%
\else
\zf at check@ot at lang{TUR}%
\if at tempswa
\c at zf@language\@tempcnta\relax
\xdef\zf at language@name{Turkish}%
\xdef\zf at family@long{\zf at family@long+lang=Turkish}%
\xdef\zf at pre@ff{\zf at pre@ff language=TUR,}%
\else
\zf at PackageWarning{Font \fontname\zf at basefont does not contain
language 'Turkish' for script
'\zf at script@name'}%
\fi
\fi}
\makeatother
\title{Testing}
\author{Blabla}
\begin{document}
\maketitle
\fontspec[Language=Turkish]{Adobe Garamond Pro} fi
\fontspec[Language=Turkish]{Palatino Linotype} fi
\end{document}
%!%!%!%!%
I am attaching the resulting PDF.
SGM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: willtest.pdf
Type: application/pdf
Size: 62608 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20060708/1c9cbe66/attachment-0001.pdf
More information about the XeTeX
mailing list