summaryrefslogtreecommitdiff
path: root/language/bengali/bangla/bangla.sty
diff options
context:
space:
mode:
Diffstat (limited to 'language/bengali/bangla/bangla.sty')
-rw-r--r--language/bengali/bangla/bangla.sty24
1 files changed, 6 insertions, 18 deletions
diff --git a/language/bengali/bangla/bangla.sty b/language/bengali/bangla/bangla.sty
index 2f9dd257fe..a3a8cf1d80 100644
--- a/language/bengali/bangla/bangla.sty
+++ b/language/bengali/bangla/bangla.sty
@@ -1,18 +1,16 @@
% Copyright at Nahid Hossain , Asst. Professor, UIU
% nahid@cse.uiu.ac.bd / mailbox.nahid@gmail.com
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
-\ProvidesPackage{bangla}[2021/06/20]
+\ProvidesPackage{bangla}[2021/07/01]
\RequirePackage{fontspec}
\RequirePackage{etoolbox}
\RequirePackage{polyglossia}
-\RequirePackage{charissil}
-
+\RequirePackage{CharisSIL}
\setmainlanguage{english}
\setotherlanguage{bengali}
\newfontface\translitfont{CharisSIL-R.ttf}
\newfontface\banglaipafont{CharisSIL-R.ttf}
-%Doulos_SIL_Regular.ttf
\makeatletter
\def\zztable#1{#1}
\def\zzrow#1#2{\expandafter\gdef\csname B-#2\endcsname{#1}}
@@ -31,7 +29,6 @@
\expandafter\def\csname B-@\endcsname#1{}
\input{banglamap}
\makeatother
-
\makeatletter
\long\def\@gobbletorelax#1\relax{}
\newcommand\bengalinum[1]{\expandafter\@bengalinum\csname c@#1\endcsname}
@@ -59,14 +56,12 @@
\def\@bengalinum@end#1\@bengalinum@digit#2{}
\makeatother
\newcommand{\banglapage}{\renewcommand\thepage{\bengalinum{page}}}
-\newcommand{\banglasection}{\renewcommand*\thesection{\bengalinum{section}}
-\renewcommand*\thesubsection{\thesection.\bengalinum{subsection}}}
-
+\newcommand{\banglasection}{\renewcommand\thesection{\bengalinum{section}}
+\renewcommand\thesubsection{\thesection.\bengalinum{subsection}}
+\renewcommand\thesubsubsection{\thesubsection.\bengalinum{subsubsection}}}
\newcommand{\banglaequation}{\renewcommand\theequation{\bengalinum{equation}}}
-
\newcommand{\banglatable}{\renewcommand\thetable{\bengalinum{table}}}
\newcommand{\banglafigure}{\renewcommand\thefigure{\bengalinum{figure}}}
-
\makeatletter
\long\def\@gobbletorelax#1\relax{}
\newcommand\bengalialpha[1]{\expandafter\@bengalialpha\csname c@#1\endcsname}
@@ -94,13 +89,7 @@
}
\def\@bengalialpha@end#1\@bengalialpha@digit#2{}
\makeatother
-
\newcommand{\banglaenumerate}{\renewcommand\theenumi{\bengalinum{enumi}}\renewcommand\theenumii{\bengalialpha{enumii}}}
-
-
-%\newcommand{\banglasubsectionnum}{\renewcommand\thesection{\bengalinumeral{section}}}
-
-
\ExplSyntaxOn
\tl_new:N \l_mytrans_tl
@@ -278,6 +267,5 @@
}
}
-
-
+\newcommand{\banglaallcounters}{\banglapage \banglasection \banglaenumerate \banglaequation \banglatable \banglafigure}