I am facing problem using bangla letters as label in the nested list, posted a question, After hours of surfing into the problem myself, I came up with a solution stated to that question.
New problem is that I have seen some gaps between letters shown in the following figure (highlighted). The gaps are unexpected. How to solve it?
Here is my working example:
\documentclass[10pt,a4paper,showtrims]{memoir}
\usepackage{babel}
\babelprovide[main,onchar = fonts ids]{bengali}
\babelfont[bengali]{rm}[
Renderer=Harfbuzz,
AutoFakeBold,
AutoFakeSlant=0.3,
NFSSFamily=kalpurush,
]{fontkalpurush.ttf}
\babelcharproperty{`।}{locale}{bengali}
\babelprovide[maparabic,alph=alphabetic]{bengali}
% fix `matra` in bangla text
\makeatletter
\AtBeginDocument{%
\def\bbl@mapdir#1{%
{\def\languagename{#1}%
\let\bbl@ifrestoring\@firstoftwo % To avoid font warning
\bbl@switchfont
\ifnum\fontid\font>\z@
\directlua{
Babel.locale_props[\the\csname bbl@id@@#1\endcsname]%
['/\bbl@prefontid'] = \fontid\font\space}%
\fi}}}%
\makeatother
\begin{document}
\section{প্রথম}
\begin{enumerate}
\item আইটেম ১
\begin{enumerate}
\item নেস্টেড আইটেম ১
\item নেস্টেড আইটেম ২
\end{enumerate}
\item আইটেম ২
\end{enumerate}
\section{প্রথম অধ্যায়}
\begin{enumerate}
\item ফু
\begin{enumerate}
\item বার আইটেম ১
\item ফু
\end{enumerate}
\item বার
\end{enumerate}
\end{document}
Note that: I had to face this problem previously and a solution is provided by @Javier Bezos. Link is given here: Answer is here. But the solution is not working now.
\babelprovide[main,onchar = fonts ids,hyphenrules=+]{bengali}
. The last option creates an empty set of rules for Bengali. If this works for you, I’ll convert this comment into an answer.hyphenrules=+
options solved the problem for now. You can post your answer here with your explanation (if any) and I will accept it. Thanks again.