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.

I can't make uppercase of turkish characters like Giriş Tex converts it to GIRIş instead of GİRİŞ.. It's making me crazy.

%this is mwe i guess
\documentclass[12pt,a4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage{titlesec}

\usepackage[T1]{fontenc}
\usepackage[turkish]{babel}
\usepackage{pslatex}
\begin{document}
\uppercase{Giriş}
\end{document}
share|improve this question
    
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. –  egreg Apr 15 '12 at 16:25

1 Answer 1

up vote 9 down vote accepted

It's a deficiency in the setup by babel:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[turkish]{babel}

\addto\extrasturkish{%
  \uccode`i=\string"9D \uccode\string"19 = `I
  \lccode\string"9D=`i \lccode`I=\string"19 }
\addto\noextrasturkish{%
  \uccode`i=`I \lccode`I=`i }

\begin{document}
\MakeUppercase{Giriş}

\MakeLowercase{GİRİŞ}
\end{document}

It's better to do it this way instead of globally changing the tables.

In the T1 encoding the character "dotless i" is at position "19 and "dotted I" is at "9D.

share|improve this answer
    
my bad, sorry. great answer. even it would be great if someone put this some kind of faq. –  interlude Apr 15 '12 at 16:44
    
@interlude This should really be addressed by fixing babel. –  egreg Apr 15 '12 at 16:44
    
edited the comment. thank you very much –  interlude Apr 15 '12 at 16:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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