Troubling glyphs
arabluatex gets it more or less right. For braces you should according to the documentation use \abraces
, the ornamental parentheses are intentional not mirrored in Unicode:
\documentclass{article}
\usepackage{arabluatex}
\newfontfamily\arabicfont{Amiri}[Script = Arabic]
\begin{document}
\arb{﴾وَصِيَّةً﴿ مِّنَ ٱللّٰه} \\
\arb{(وَصِيَّةً) مِّنَ ٱللّٰه} \\
\arb{\{وَصِيَّةً\} مِّنَ ٱللّٰه} \\
\arb{\abraces{وَصِيَّة} مِّنَ ٱللّٰه} \\
\arb{[وَصِيَّةً] مِّنَ ٱللّٰه} \\
\arb{<وَصِيَّةً> مِّنَ ٱللٰه}
\end{document}
luahblatex with luaotfload 3.11 gets it right too (again with the exception of the ornamental parenthese, which are intentional not mirrored in Unicode):
\documentclass{article}
\usepackage{fontspec}
\newfontfamily\arabicfont{Amiri}[Script = Arabic,Renderer=Harfbuzz]
\newcommand{\textarabic}[1]{\bgroup\textdir TRT\arabicfont #1\egroup}
\begin{document}
\textarabic{﴾وَصِيَّةً﴿ مِّنَ ٱللّٰه} \\
\textarabic{(وَصِيَّةً) مِّنَ ٱللّٰه} \\
\textarabic{\{وَصِيَّةً\} مِّنَ ٱللّٰه} \\
\textarabic{[وَصِيَّةً] مِّنَ ٱللّٰه} \\
\textarabic{<وَصِيَّةً> مِّنَ ٱللٰه}
\end{document}
with standard luatex it fails, also as luaotfload/the fontloader ignores the bidi-mirrored feature, see https://github.com/u-fischer/luaotfload/issues/61
\documentclass{article}
\usepackage{fontspec}
\newfontfamily\arabicfont{Amiri}[Script = Arabic]
\newcommand{\textarabic}[1]{\bgroup\textdir TRT\arabicfont #1\egroup}
\begin{document}
\textarabic{﴾وَصِيَّةً﴿ مِّنَ ٱللّٰه} \\
\textarabic{(وَصِيَّةً) مِّنَ ٱللّٰه} \\
\textarabic{\{وَصِيَّةً\} مِّنَ ٱللّٰه} \\
\textarabic{[وَصِيَّةً] مِّنَ ٱللّٰه} \\
\textarabic{<وَصِيَّةً> مِّنَ ٱللٰه}
\end{document}