I want to use Roman numbers and Arabic numbers in my thesis. the total language of the document is Arabic and I use command \pagenumbering to change page number's style. I tried most of the solutions that add command \clearpage or \cleardoublepage but it doesn't work. this is MWC :
\documentclass[a4paper,12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[LAE, T1]{fontenc}
\usepackage[arabic, english]{babel}
\renewcommand{\I}[1] {\if@farsi\FarsiEncoding\else\ArabicEncoding\fi\textLR{#1}}%
\renewcommand{\EI}[1]{\textLR{\FarsiEncoding \textLR{#1}}}%
\renewcommand \thechapter {\textLR{\arabic{chapter}}}
\TOCLanguage{arabic} % arabic is the main language
\newcommand\lr[1]{\textLR{#1}}
\newcommand\rl[1]{\textRL{#1}}
\begin{document}
\selectlanguage{arabic}
\pagenumbering{roman}
\chapter*{الملخص}
الملخص العربي
\chapter*{\lr{Abstract}}
\textLR{ English abstract\ldots}
\chapter*{كلمة الشكر}
نص باللغة العربية
\tableofcontents
\listoffigures
\listoftables
\cleardoublepage
\pagenumbering{arabic}
\chapter{تجريب}
نص باللغة العربية\\
\end{document}
using the method suggested by @egreg the problem of page numbering has been solved but it changes the style of the table of contents, where the numbers changes into arabi-indi coding ?So is there any way to fix this problem? this is the method suggested by @egreg :
\makeatletter
\def\ps@plain{\ps@empty\SAV@ps@plain}
\makeatletter
\pagestyle{plain}
and this is the result of this change:

By redefining command \pagenumbering as @egreg the problem of toc arabi-inidi coding has been solved and this is the suggested redefinition :
\pagenumbering{roman}
\renewcommand{\thepage}{\protect\textLR{\roman{page}}}
then when arabic numbers is needed
\pagenumbering{arabic}
\renewcommand{\thepage}{\protect\textLR{\arabic{page}}}


\cleardoublepagebefor\pagenumbering{roman}but it doesn't work. – Ahmad Hafez Nov 07 '18 at 10:58TOClanguage{arabic}dosen't solve the problem – Ahmad Hafez Nov 07 '18 at 10:58thepageand then change it's style but also it doesn't work. – Ahmad Hafez Nov 07 '18 at 11:32plainpage style the problem of page numbering has been solved but the suggested method changes the style of the table of contents? is there any way to solve this problem?@egreg – Ahmad Hafez Nov 07 '18 at 11:59\pagenumberingas @egreg suggested – Ahmad Hafez Nov 07 '18 at 13:26