如何修复路径上损坏的孟加拉语和阿拉伯语文本 TikZ

如何修复路径上损坏的孟加拉语和阿拉伯语文本 TikZ

我希望孟加拉语和阿拉伯语沿着连接节点的曲线运行。当我使用孟加拉语时,tex文档编译没有任何问题,但路径上的文本被破坏了!对于阿拉伯语,tex文档甚至无法编译!

对于孟加拉语,我使用了以下代码:

\documentclass[12pt]{report}
\usepackage{tikz, fontspec}
\usetikzlibrary{shapes, decorations.text}
\setmainfont{[Kalpurush]}

\begin{document}
 ভাঙ্গা টেক্সট
\begin{center}
    \tikz{
         \node (n1) at (0,0) [draw, shape=circle] {নোড};
         \node (n2) [below left of = n1, xshift=-2ex, yshift=-3cm] [draw, shape=circle] {নোড ২};
         \node (n3) [below right of = n1, xshift=2ex, yshift=-3cm] [draw, shape=circle] {নোড ৩};
         \draw [->>, dashed, thick, postaction={decorate, decoration={text along path, text align=center, text=ভাঙ্গা টেক্সট, reverse path, raise=.5ex}}] (n1) to [bend right=60] (n2);
         \draw [->>, dashed, thick, postaction={decorate, decoration={text along path, text align=center, text=ভাঙ্গা টেক্সট, raise=.5ex}}] (n1) to [bend left=60] (n3);
      }
\end{center}
\end{document}

上面的代码给了我这个:

在此处输入图片描述

对于阿拉伯语,我使用了:

\documentclass[12pt]{report}
\usepackage{tikz, fontspec, polyglossia}
\usetikzlibrary{shapes, decorations.text}
\setmainfont{[Kalpurush]}
\setotherlanguage{arabic}
\newfontfamily\arabicfont[Script = Arabic, Scale=1.5]{Traditional Arabic} 

\begin{document}
\textarabic{وَصِيَّةً مِّنَ ٱللَّهِ}
\begin{center}
\tikz{
      \node (n1) at (0,0) [draw, shape=circle] {নোড};
      \node (n2) [below left of = n1, xshift=-2ex, yshift=-3cm] [draw, shape=circle] {নোড ২};
      \node (n3) [below right of = n1, xshift=2ex, yshift=-3cm] [draw, shape=circle] {নোড ৩};
      \draw [->>, dashed, thick, postaction={decorate, decoration={text along path, text align=center, text={\textarabic{وَصِيَّةً مِّنَ ٱللَّهِ}}, reverse path, raise=.5ex}}] (n1) to [bend right=60] (n2);
      \draw [->>, dashed, thick, postaction={decorate, decoration={text along path, text align=center, text={\textarabic{وَصِيَّةً مِّنَ ٱللَّهِ}}, raise=.5ex}}] (n1) to [bend left=60] (n3);
    }
\end{center}
\end{document}

上面的代码甚至无法编译!

如何解决这些问题?

相关内容