Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

I am frustrated trying to obtain a proper looking Turkish "İ" letter in small caps using lualatex. Previous answers on this particular subject either do not work or are too complicated for me.

As of today, is there a relatively simple solution so that I can get the dot over i properly aligned?

\documentclass[a4paper,12pt]{article}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont[Script=Latin,Language=Turkish]{TeX Gyre Termes}
\begin{document}
\textsc{\.{i} \.ı \.\i}
\end{document}

I can use a hacky solution since I need the letter in just a few (noticeable) places.

share|improve this question

marked as duplicate by egreg, Claudio Fiandrino, Werner, Thorsten, lockstep Apr 3 '13 at 16:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer

up vote 5 down vote accepted

This is a collective failure to support Turkish really I think, we should do better, however since you say hacks are acceptable:

enter image description here

\documentclass[a4paper,12pt]{article}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont[Script=Latin,Language=Turkish]{TeX Gyre Termes}
\begin{document}
\textsc{\.{i} \.ı \.\i (i) [ı] [ı̇] }

\textsc{\.{}\kern-.3emi}
\end{document}

To get \i to work you might also want to add the following to your preamble.

\let\oldtextsc\textsc
\def\textsc#1{\oldtextsc{\def\i{i}#1}}
share|improve this answer
    
Thanks very much. I have now defined \newcommand{\Ii}{\.{}\kern-.3emi} so that I can easily use your solution in the handful of places when I need. On the other hand, I see that this has been going on for a long time. Is this something with Turkish only? When can we expect to see that this is not a problem anymore? –  laissezfaire Apr 4 '13 at 5:56
    
...wait. I just noticed that, this time the dotless ı letter does not look right. I looks like l. (If I use i instead of ı, the look is OK in small caps but, of course, now the plain text has the wrong character.) How do I fix this? –  laissezfaire Apr 4 '13 at 14:07
    
@laissezfaire yes I noticed that (hence the various trials on the first line) I suppose you want the version in round brackets made with i I think that \i and ı ought to give that but I'm not sure where the fault is. The duplicate question that is linked indicates that there are some errors in the font so it might be best to check the \textsc macro first with a different font and then if that works look to see if there is a font update. If it helps I could supply another hack so that locally within \textsc \i was defined to be i so that you get the correct small caps form. –  David Carlisle Apr 4 '13 at 14:19
1  
@laissezfaire code added –  David Carlisle Apr 4 '13 at 16:44
1  
@laissezfaire oh I made \textsc fragile, use \protected\def\textsc#1{... then it will be robust again –  David Carlisle Apr 5 '13 at 8:37
show 3 more comments

Not the answer you're looking for? Browse other questions tagged or ask your own question.