Thank you for this report.
I have to confess that list environments have slipped my mind so far! Very sorry about that. The next release of arabluatex
, which I hope to publish soon, will support such environments.
Meanwhile, the two environments asparaenum
and asparaitem
that are provided by the paralist
package will get us out of trouble.
The following mwe works with arabluatex
1.4.5:
\documentclass{article}
\usepackage{fontspec}
\usepackage{paralist}
% 'RawFeature={+anum}' is added below to have 'Indian numbers'
\newfontfamily\arabicfont{Amiri}[Script=Arabic, RawFeature={+anum}]
\usepackage{arabluatex}
\begin{document}
\begin{asparaenum}[.1] % '.1' for the dot to appear after the number
% in RTL mode.
\begin{arab}
\item{} الأصل الأول منها في التوحيد % '\item{}' mind the braces
\item{} الأصل الثّاني في القدر
\item{} الأصل الثّالث في العدل
\item{} الأصل الرابع في الوعد والوعيد
\end{arab}
\end{asparaenum}
\begin{asparaitem}
\begin{arab}
\item{} الأصل الأول منها في التوحيد
\item{} الأصل الثّاني في القدر
\item{} الأصل الثّالث في العدل
\item{} الأصل الرابع في الوعد والوعيد
\end{arab}
\end{asparaitem}
\end{document}

Edit:
arabluatex
1.5 is out and should become available on the mirrors within the next 24 hours. Among the new features, environments and list environments are now processed in Arabic mode; unicode Arabic input for short insertions and running paragraphs as well is facilitated by the \txarb
command and a new txarab
environment.
To take one example, the following code will work:
\documentclass{article}
\usepackage{fontspec}
% 'RawFeature={+anum}' is added below to have 'Indian numbers'
\newfontfamily\arabicfont{Amiri}[Script=Arabic, RawFeature={+anum}]
\usepackage{arabluatex}
\begin{document}
\begin{txarab}
\begin{enumerate}
\item الأصل الأول منها في التوحيد
\item الأصل الثّاني في القدر
\item الأصل الثّالث في العدل
\item الأصل الرابع في الوعد والوعيد
\end{enumerate}
\end{txarab}
\begin{txarab}
\begin{itemize}
\item الأصل الأول منها في التوحيد
\item الأصل الثّاني في القدر
\item الأصل الثّالث في العدل
\item الأصل الرابع في الوعد والوعيد
\end{itemize}
\end{txarab}
\end{document}

\documentclass
command, have a minimal preamble and then\begin{document}...\end{document}
. The code should compile and be as small as possible to demonstrate your problem. Cutting your code down to a MWE may well reveal what your problem actually is. In any case, it is really difficult to help you without more information.\begin{enumerate}
causes LuaTeX to process\begin {\txarb{eنُمeرَتe}}
arabluatex
than an actual bug. I'll look into this tomorrow and will post a new release as quickly as possible.