2

The problem should be clear from the title. I have been trying to type this special character for a while. So far, anything failed. The weird this is: I can find this sign in kile right at "Cyrillic Characters" as \cyrghk. It tells me, that I need [koi8-r]inputenc, [T2C]fontenc, mathtext and [russian]{babel}, which is all I need for the standard russian characters. Actually I can type most russian characters like \cyrb and so on. It also works with [utf8]inputenc and without mathtext. I don't know why. However, I keep getting the following error message:

\cyrghk unavailable in encoding T2A. ...\cyrghk

So far, I am using "5" as a work-around, which seems to be what Yakut people do as well, when they text on smartphones, etc. Any better ideas? Thanks!

  • Are you able to use the fontspec package on either LuaLaTeX or XeLaTeX? – Davislor Dec 28 '18 at 20:33
2

You can set the default encoding for the character as T2C:

\documentclass{article}
\usepackage[T2C,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}

\DeclareTextSymbolDefault{\cyrghk}{T2C}

\begin{document}

ҕ \cyrghk

\end{document}

enter image description here

Don't use KOI8-R, UTF-8 is much better.

  • Definitely want to second the recommendation to encode new documents in UTF-8. – Davislor Dec 28 '18 at 20:32
1

T2A is not T2C. If you load russian, T2A is the default encoding. You could change to T2C:

\documentclass{article}
\usepackage[T2C]{fontenc}
\def\cyrillicencoding{T2C}
\usepackage[russian]{babel}
\begin{document} 
\cyrghk
\end{document}

or you could locally switch only for the one symbol:

\documentclass{article}
\usepackage[russian]{babel}
\usepackage[T2C,T2A]{fontenc}
\begin{document}
{\fontencoding{T2C}\selectfont\cyrghk}
\end{document}

or use an unicode engine (lualatex, xelatex):

\documentclass{article}
\usepackage[russian]{babel}
\usepackage{fontspec}
\setmainfont{Arial}
\begin{document}
ҕ
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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