I have read Typesetting straight baselines in a circular arrangement and I would like to have a solution for my situation.
I would like to insert some text in Hebrew on an annulus. Here is my attempt at doing so:
\begin{figure}
\begin{centering}
\begin{tikzpicture}
\draw[color=black] (0,0) circle (25pt);
\draw[color=black] (0,0) circle (40pt);
\newfontfamily\hebrewfont[Scale=1.5,Script=Hebrew]{Adobe Hebrew}
\path
[
postaction={
decorate,
decoration={
raise=-7pt,
text along path,
text align/fit to path stretching spaces=false,
reverse path=true,
text align/align=right,
text align/left indent={40pt},
text align/right indent={45pt},
text={|\hebrewfont | א ב ג ד }
}
}
] (0,0) circle (36pt);
\newfontfamily\hebrewfont[Scale=.8,Script=Hebrew]{Adobe Hebrew}
\path
[
postaction={
decorate,
decoration={
raise=-7pt,
text along path,
text align/fit to path stretching spaces=false,
reverse path=true,
text align/align=right,
text align/left indent={0pt},
text align/right indent={0pt},
text={|\hebrewfont | ה ו ז ח ט י}
}
}
] (0,0) circle (22pt);
\end{tikzpicture}
\end{centering}
\end{figure}
As you can see in the first string of Hebrew characters in the above, the readable sequence is א ב ג ד (from Aleph to Dalet) - but, after the composition, I get ד ג ב א (from Dalet to Aleph) and it means that the characters are set from left to right instead from right to left.
I'm using documentclass=memoir
and xelatex
as typesetting engine.
Is it possible to write Hebrew text as path decoration in the proper direction?
text={|\hebrewfont | {א ב ג ד} }
), it works, but of course, the characters aren't aligned properly anymore, so I guess, you have to tell tikz to align the characters in a rtl manner.