我读过了以圆形排列方式排版直基线我希望能有一个针对我的情况的解决方案。
我想在环形文字上插入一些希伯来语文本。以下是我尝试这样做的:
\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}
正如您在上文中第一个希伯来语字符串中所看到的,可读序列是 א ב ג ד(从 Aleph 到 Dalet)——但是,在组合之后,我得到了 ד ג ב א(从 Dalet 到 Aleph),这意味着字符是从左到右而不是从右到左设置的。
我正在使用documentclass=memoir
和xelatex
作为排版引擎。
是否可以将希伯来语文本以正确的方向写为路径装饰?
答案1
这基本上是通过反复试验得出的,但至少它与 MWE 得出的结果相匹配,只是希伯来语是从右向左的。
\documentclass{article}
\usepackage{polyglossia}
\usepackage{tikz}
\usetikzlibrary{decorations.text}
\setmainlanguage{english}
\setotherlanguage{hebrew}
\newfontfamily\hebrewfont[Script=Hebrew]{SBL BibLit}
\newfontfamily\hebrewlarge[Scale=1.5,Script=Hebrew]{SBL BibLit}
\newfontfamily\hebrewsmall[Scale=0.8,Script=Hebrew]{SBL BibLit}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}
\draw[color=black] (0,0) circle (25pt);
\draw[color=black] (0,0) circle (40pt);
\path[
rotate=70,
postaction={
decorate,
decoration={
raise=-7pt,
text effects along path,
text effects/every character/.style={text along path},
reverse path=true,
text={ א ב ג ד },
text effects/font = {\hebrewlarge},
text align/align=right,
text effects/reverse text=true
}
}
] (0,0) circle (36pt);
\path[
postaction={
decorate,
decoration={
raise=-7pt,
text effects along path,
text effects/every character/.style={text along path},
reverse path=true,
text={ ה ו ז ח ט י },
text effects/font = {\hebrewsmall},
text align/align=right,
text effects/reverse text=true
}
}
] (0,0) circle (22pt);
\end{tikzpicture}
\end{document}