Fonts & Character SetsProblem with Turkish dotted I (U+0130) in headers

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Problem with Turkish dotted I (U+0130) in headers

Post by AleCes »

Hello everybody, on something like this:

Code: Select all

\documentclass[a4paper, 12pt]{book}
\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{Mukaddime}

    \section{Kemal Atatürk, cihanda eşi olmayan bir siyasi telakkinin mümessili midir?}

    \section{Türkiye'nin bazı zeviyelerden diğer İslam memaliğinden ileri oluşu, Atatürk inkilaplarının eseri midir?}


\end{document}
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?

Thank you very much
Last edited by AleCes on Mon May 27, 2013 11:19 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with Turkish dotted I (U+0130) in headers

Post by Johannes_B »

Would you please make your examples more clearer.

I do not see the described charackter in your example and you deleted the package blindtext.

If you don't supply us with usefull information, we cannot help you.

Sometimes I feel like wasting my time by telling people all the time to prepare a proper Minimal Working Example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Problem with Turkish dotted I (U+0130) in headers

Post by AleCes »

Johannes_B wrote:Would you please make your examples more clearer.

I do not see the described charackter in your example and you deleted the package blindtext.

If you don't supply us with usefull information, we cannot help you.

Sometimes I feel like wasting my time by telling people all the time to prepare a proper Minimal Working Example.
Sorry, Johannes, my sloppiness in unforgivable, please take a look at the example now, I've just updated it.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with Turkish dotted I (U+0130) in headers

Post by Johannes_B »

I am still not quite sure what you mean or want.
Please have a look at the following and comment it:

Code: Select all

\documentclass[a4paper, 12pt]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{fontspec}
\defaultfontfeatures{Language=Turkish,
Mapping=tex-text}
\setmainfont{Linux Libertine O}
\usepackage{polyglossia}
\setmainlanguage{turkish}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{bookmark}
\usepackage{epigraph}

\begin{document}

\chapter{İ i}

\section{İ i}
\newpage
test İ i
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with Turkish dotted I (U+0130) in headers

Post by Johannes_B »

I am still not quite sure what you mean or want.
Please have a look at the following and comment it:

Code: Select all

\documentclass[a4paper, 12pt]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{fontspec}
\defaultfontfeatures{Language=Turkish,
Mapping=tex-text}
\setmainfont{Linux Libertine O}
\usepackage{polyglossia}
\setmainlanguage{turkish}
\usepackage{xunicode}
\usepackage{xltxtra}

\begin{document}
\chapter{İ i}
\section{İ i}
\newpage
İ Latin capital letter I with dot above (0130)

i Latin small letter i (0069)
\end{document}


EDIT: I now know what you mean, but I am not able to give a solution. Nevertheless, Linux Libertine O does have the character.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Problem with Turkish dotted I (U+0130) in headers

Post by AleCes »

Johannes_B wrote:I am still not quite sure what you mean or want.
Please have a look at the following and comment it:

Code: Select all

\documentclass[a4paper, 12pt]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{fontspec}
\defaultfontfeatures{Language=Turkish,
Mapping=tex-text}
\setmainfont{Linux Libertine O}
\usepackage{polyglossia}
\setmainlanguage{turkish}
\usepackage{xunicode}
\usepackage{xltxtra}

\begin{document}
\chapter{İ i}
\section{İ i}
\newpage
İ Latin capital letter I with dot above (0130)

i Latin small letter i (0069)
\end{document}
The chapter and section headers should both appear as "İ İ", however, as you can check by yourself, the lower case i is wrongly capitalized as I, so that the result is "İ I", which is wrong, with regard to Turkish rules of capitalization.
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Problem with Turkish dotted I (U+0130) in headers

Post by AleCes »

AleCes wrote:
Johannes_B wrote:I am still not quite sure what you mean or want.
Please have a look at the following and comment it:

Code: Select all

\documentclass[a4paper, 12pt]{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{fontspec}
\defaultfontfeatures{Language=Turkish,
Mapping=tex-text}
\setmainfont{Linux Libertine O}
\usepackage{polyglossia}
\setmainlanguage{turkish}
\usepackage{xunicode}
\usepackage{xltxtra}

\begin{document}
\chapter{İ i}
\section{İ i}
\newpage
İ Latin capital letter I with dot above (0130)

i Latin small letter i (0069)
\end{document}


EDIT: I now know what you mean, but I am not able to give a solution. Nevertheless, Linux Libertine O does have the character.
Should I report it as a polyglossia bug? babel is affected too, I tried it. Somehow I sense the real matter is that headers aren't subject to language settings, is there a way to devise a workaround?
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

Problem with Turkish dotted I (U+0130) in headers

Post by AleCes »

Found workaround here.

Code: Select all

\uccode`\i=`\İ
Post Reply