I'm trying to decorate tikz path with cyrillic symbols without any success. I can use ASCII symbols but not cyrillic.
\documentclass{standalone}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usepackage[T2A,T1]{fontenc}
\usepackage[english,russian]{babel}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}
\draw (0,0) circle (1cm);
\path[
postaction={
decorate,
decoration={
text along path,
reverse path=false,
text={very long long text}
}
}
] (0,0) circle (1cm);
\end{tikzpicture}
\end{document}
If I put cyrillic symbols in text={} this cause many errors.
UPDATE: I have processed my tex file with XeLaTex and it works partially. It shows only first symbol.
Also I need to pass the text as parameter as follow:
\newcommand\PathWithText[1]{
\draw (0,0) circle (1cm);
\path[
postaction={
decorate,
decoration={
text along path,
reverse path=false,
text={#1}
}
}
] (0,0) circle (1cm);
}
\PathWithText{очень длинный текст}

äöü(just in case someone doesn't have cyrillic symbols). Also very funny result with$a$as text ;) – someonr Dec 20 '13 at 16:05text={{ä}{ö}{ü}}. – Qrrbrbirlbel Dec 20 '13 at 16:19äis used in Latin script. The trick by @Qrrbrbirlbel works. – egreg Dec 20 '13 at 16:33text={{{о}}{{ч}}{{е}}{{н}}{{ь}}}works, but I also had cases where I needed one additional layer around some chars. – Ulrike Fischer Aug 05 '14 at 10:00