# Incorrect Cyrillic (Macedonian) glyphs in Computer Modern

Does anyone have any idea why the glyphs for Ѓѓ and Ќќ that come with Computer Modern are wrong, i.e. they have a grave accent instead of an acute one? Is there a way to fix this?

\documentclass[varwidth]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage{xcolor}

\begin{document}
Аа Бб Вв Гг Дд \textcolor{red}{Ѓѓ} Ее Жж Зз Ѕѕ Ии Јј Кк Лл Љљ\\
Мм Нн Њњ Оо Пп Рр Сс Тт \textcolor{red}{Ќќ} Уу Фф Хх Цц Чч\\
Џџ Шш
\end{document}


(I am using TeX Live 2015 as my distribution, but the situation has been this way since I began using TeX)

• Bugs get fixed quicker if you report them:-) Sorry about that, I've checked a fix in to the latex sources so it should be fixed at the next latex update (not sure when that will be yet) – David Carlisle Jun 27 '15 at 14:10
• Note that those Macedonian letters are not really supported by any of the Cyrillic encodings T2A, T2B and T2C, and they will always realized with a superimposed accent, so making hyphenation impossible past them. This might be a problem or not, depending on their frequency; as they seem to appear only in loanwords, the problem may be minor. – egreg Jun 28 '15 at 19:43
• @egreg: Thanks; I never realized that was the case. This is only true for LaTeX, right? (i.e. not true for XeLaTeX) – d125q Jun 28 '15 at 20:11
• @d125q No, because there are independent slots for those characters. However this is academic, as there are no hyphenation patterns for Macedonian, as far as I know, nor it is supported by babel or polyglossia. Can it share patterns with Bulgarian? – egreg Jun 28 '15 at 20:16
• @d125q sorry it took so long! – David Carlisle Jul 5 '15 at 14:51

Fixed in the inputenc shipped with LaTeX2e 2015/01/01 patch level 1.

This isn't directly related to cm but looks like a bug in the core latex utf8 mapping, this fixes it for now

\documentclass[varwidth]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage{xcolor}

\makeatletter
\AtBeginDocument{%
\DeclareUnicodeCharacter{0403}{\@tabacckludge'\CYRG}%
\DeclareUnicodeCharacter{0453}{\@tabacckludge'\cyrg}%
\DeclareUnicodeCharacter{040C}{\@tabacckludge'\CYRK}%
\DeclareUnicodeCharacter{045C}{\@tabacckludge'\cyrk}%
}
\makeatother

\begin{document}

Аа Бб Вв Гг Дд \textcolor{red}{Ѓѓ} Ее Жж Зз Ѕѕ Ии Јј Кк Лл Љљ\\
Мм Нн Њњ Оо Пп Рр Сс Тт \textcolor{red}{Ќќ} Уу Фф Хх Цц Чч\\
Џџ Шш
\end{document}

• Thank you, David. Could you please point me to some references so that I can read some more about this? – d125q Jun 27 '15 at 13:57
• @d125q \DeclareUnicodeCharacter comes from inputenc see texdoc inputenc – David Carlisle Jun 27 '15 at 14:14

If you compile with Xe/LuaLaTeX, you can use Computer Modern Unicode, which doesn't have this problem:

\documentclass[varwidth]{standalone}
\usepackage{fontspec}
\setmainfont{CMU Serif}
\usepackage{xcolor}

\begin{document}
Аа Бб Вв Гг Дд \textcolor{red}{Ѓѓ} Ее Жж Зз Ѕѕ Ии Јј Кк Лл Љљ\\
Мм Нн Њњ Оо Пп Рр Сс Тт \textcolor{red}{Ќќ} Уу Фф Хх Цц Чч\\
Џџ Шш
\end{document}


• Thanks; I was aware of this, but found CM Unicode to have some subtle differences as compared to the "classic" one (or it might have just been microtype issues; I don't know). – d125q Jun 27 '15 at 13:57