[XeTeX] Problem with Turkish dotted I (U+0130) in headers
In a document like this:* *** |\documentclass*[*|*|a4paper, 12p|*|t]{boo|*|k} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{fontspec} \defaultfontfeatures{Language=Turkish, Mapping=tex-text} \setmainfont{Linux Libertine G} \usepackage{polyglossia} \setmainlanguage{turkish} \usepackage{xunicode} \usepackage{xltxtra} \usepackage{bookmark} \usepackage{epigraph} \begin{document} \chapter{Birinci} \section{İkinci} \end{documen|*|t||}| * * **Now, what's in the header is small caps, right? So, it gets capitalized, but the problem is that i gets capitalized in Turkish as dotted I, that is: İ (U+0130) and this, XeLaTeX doesn't do. Is there a way to enjoin it to do so? ** -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Problem with Turkish dotted I (U+0130) in headers
Capitalization (\uppercase{...}) is controlled via \uccode so that this should help: \uccode`\i=`\İ There is a Turkish module in polyglossia, so most probably the following should solve all Turkish typographical features: \usepackage{polyglossia} \setdefaultlanguage{turkish} 2013/5/30 Alessandro Ceschini alessandroceschini...@gmail.com: In a document like this:* *** |\documentclass*[*|*|a4paper, 12p|*|t]{boo|*|k} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{fontspec} \defaultfontfeatures{Language=Turkish, Mapping=tex-text} \setmainfont{Linux Libertine G} \usepackage{polyglossia} \setmainlanguage{turkish} \usepackage{xunicode} \usepackage{xltxtra} \usepackage{bookmark} \usepackage{epigraph} \begin{document} \chapter{Birinci} \section{İkinci} \end{documen|*|t||}| * * **Now, what's in the header is small caps, right? So, it gets capitalized, but the problem is that i gets capitalized in Turkish as dotted I, that is: İ (U+0130) and this, XeLaTeX doesn't do. Is there a way to enjoin it to do so? ** -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Zdeněk Wagner http://hroch486.icpf.cas.cz/wagner/ http://icebearsoft.euweb.cz -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Problem with Turkish dotted I (U+0130) in headers
On Thu, May 30, 2013 at 02:45:26PM +0200, Alessandro Ceschini wrote: the problem is that i gets capitalized in Turkish as dotted I, that is: İ (U+0130) and this, XeLaTeX doesn't do. Is there a way to enjoin it to do so? Changing \lccode and \uccode values might to the trick: \lccode`İ=`i \uccode`i=`İ \lccode`I=`ı \uccode`ı=`I For testing: \uppercase{İiIı} \lowercase{İiIı} But it might has other side effects I’m not aware about (hyphenation?), and certainly should not be done globally for multilingual documents, may be it is something for Polyglossia to do? Regards, Khaled -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Problem with Turkish dotted I (U+0130) in headers
2013/5/30 Khaled Hosny khaledho...@eglug.org: On Thu, May 30, 2013 at 02:45:26PM +0200, Alessandro Ceschini wrote: the problem is that i gets capitalized in Turkish as dotted I, that is: İ (U+0130) and this, XeLaTeX doesn't do. Is there a way to enjoin it to do so? Changing \lccode and \uccode values might to the trick: \lccode`İ=`i \uccode`i=`İ \lccode`I=`ı \uccode`ı=`I For testing: \uppercase{İiIı} \lowercase{İiIı} But it might has other side effects I’m not aware about (hyphenation?), Hyphenation should not be a problem. A word is defined as a sequence of characters with category 11 and nonzero \lccode (see The TeXbook). \lccode is used to convert characters to lowercase so that they could be found in \patterns and \hyphenation. and certainly should not be done globally for multilingual documents, may be it is something for Polyglossia to do? Regards, Khaled -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Zdeněk Wagner http://hroch486.icpf.cas.cz/wagner/ http://icebearsoft.euweb.cz -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Problem with Turkish dotted I (U+0130) in headers
Hi Zdenek, \setdefaultlanguage{turkish} is the same as \setmainlanguage{turkish} which is in my example and I tried, it doesn't have any noticeable effects. However, \uccode`\i=`\I. gives the intended result but doesn't create problems only because I'm working in a monolingual document, such type of capitalization should be restricted to Turkish. Thanks anyway, as far as my needs are concerned, this workaround satisfies me. -- /Alessandro Ceschini/ -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Problem with Turkish dotted I (U+0130) in headers
2013/5/30 Alessandro Ceschini alessandroceschini...@gmail.com: Hi Zdenek, \setdefaultlanguage{turkish} is the same as \setmainlanguage{turkish} which is in my example and I tried, it doesn't have any noticeable effects. Oh, I did not notice. However, \uccode`\i=`\İ gives the intended result but doesn't create problems only because I'm working in a monolingual document, such type of capitalization should be restricted to Turkish. Yes, it should be done in polyglossia. I am sending Cc to Arthur Reutenauer. Thanks anyway, as far as my needs are concerned, this workaround satisfies me. -- Alessandro Ceschini -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Zdeněk Wagner http://hroch486.icpf.cas.cz/wagner/ http://icebearsoft.euweb.cz -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex