I am typesetting a book in Kannada language and everything is working fine.
The book contains many chapters and a couple of front matter files. As is the practice, I have set the page numbering to roman for the front matter and arabic for the main matter. The arabic page numbering is rendered to Kannada digits and the output is as expected. But, the page numbering in toc for the front matter also comes out in Kannada digits rather than English.
The contentsname re-defining also is not working.
Here is the MWE:
\documentclass{book}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage{kannada}
\setmainfont{Noto Sans Kannada}
\newfontfamily{\english}{Noto Sans}
\newcommand{\kannadanumeral}[1]{%
\kannadadigits{\number\csname c@#1\endcsname}}
%
\renewcommand{\thechapter}{\kannadanumeral{chapter}}
\renewcommand{\thepage}{\kannadanumeral{page}}
\renewcommand{\contentsname}{ಪರಿವಿಡಿ} % this is not working
% We will define some fancy page styles here
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % Empty every style
\fancyhead[LO, LE]{\leftmark}
\begin{document}
\rfoot{\english\roman{page}}
\fancypagestyle{plain}{%
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.4pt}
\rfoot{\english\roman{page}}
}
\tableofcontents
\chapter*{ಮುನ್ನುಡಿ}
\addcontentsline{toc}{chapter}{ಮುನ್ನುಡಿ}
ಕರ್ನಾಟಕ ನಾಡು ಮತ್ತು ಆ ನಾಡಿನ ಜನ ಹಾಗೂ ಅವರಾಡುವ ಭಾಷೆ.
\chapter{ಇತಿಹಾಸ}
%\pagenumbering{arabic}
\setcounter{page}{1}
\rfoot{\kannadanumeral{page}}
\fancypagestyle{plain}{%
\fancyhead{} % clear all header fields
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.4pt}
\rfoot{{\kannadanumeral{page}}}
}
ಅಶೋಕನ ಬ್ರಾಹ್ಮೀ ಲಿಪಿ ಉತ್ತರಕ್ಕೆ ಕಾಲಸಿ ಮತ್ತು ಭಾರತ-ನೇಪಾಲ ಗಡಿಯಲ್ಲಿರುವ ರುಮ್ಮಿಂದೈಯಿಂದ ದಕ್ಷಿಣಕ್ಕೆ ಮೈಸೂರುವರೆಗೂ ಪೂರ್ವಕ್ಕೆ ಒರಿಸ್ಸದಿಂದ ಪಶ್ಚಿಮಕ್ಕೆ ಜುನಾಗಢ ಮತ್ತು ಮುಂಬಯಿವರೆಗೂ ದೊರೆತ ಅಶೋಕ ಸಾಮ್ರಾಟನ ಧರ್ಮಶಾಸನಗಳಲ್ಲಿ ಕಂಡುಬರುತ್ತದೆ. ಈ ಲಿಪಿಯು ಅಶೋಕನ ಕಾಲದಲ್ಲಿ ಪ್ರಚಲಿತವಿದ್ದ ಪಾಕೃತ ಬಾಷೆಯಾಗಿ ಉಪಯೋಗಿಸಲ್ಪಟ್ಟಿದೆ.
{\english This is some text in English.}
\chapter{ಪರಿಣಾಮ}
ಕನ್ನಡ ಲಿಪಿಯ ಒಂದು ವೈಶಿಷ್ಟ್ಯವೆಂದರೆ ಪ್ರಾಚೀನಕಾಲದಿಂದಲೂ ಕಾಗುಣಿತಾಕ್ಷರದ ಹೃಸ್ವ ಮತ್ತು ದೀರ್ಘ ಎ ಮತ್ತು ಏ ಕಾರಗಳನ್ನು ಹಾಗೂ ಒ ಮತ್ತು ಓ ಕಾರಗಳನ್ನು ಒಂದೇ ಸಂಜ್ಞೆಯಿಂದ ಸೂಚಿಸುತ್ತಿದ್ದು ಅವುಗಳಲ್ಲಿಯ ಹೃಸ್ವ ಮತ್ತು ದೀರ್ಘ ವರ್ಣಗಳ ಭೇದವನ್ನು ಸಂದರ್ಭಾನುಸಾರವಾಗಿ ತಿಳಿದುಕೊಳ್ಳಬೇಕಾಗಿತ್ತು.
\chapter{ಕನ್ನಡದ ಶುದ್ಧಾಕ್ಷರಗಳ ವಿಧಗಳು}
ಕೇಶಿರಾಜನ ಪ್ರಕಾರ ಕನ್ನಡ ಶುದ್ಧಗೆಯಲ್ಲಿ ಐದು ವಿಧಗಳು. ಅವುಗಳು ಕ್ರಮವಾಗಿ : ಸ್ವರ ಅಕ್ಷರಗಳು, ವರ್ಗೀಯ ವ್ಯಂಜನ ಅಕ್ಷರಗಳು, ಅವರ್ಗೀಯ ವ್ಯಂಜನ ಅಕ್ಷರಗಳು, ಯೋಗವಾಹ ಅಕ್ಷರಗಳು, ದೇಶಿಯ ಅಕ್ಷರಗಳು. ಆದರೆ ಕನ್ನಡ ಪಠ್ಯಾನುಸಾರ ಪ್ರಾಥಮಿಕ ಮತ್ತು ಮಾಧ್ಯಮಿಕ ತರಗತಿಯ ವಿದ್ಯಾರ್ಥಿಗಳು ಒಟ್ಟು ಕನ್ನಡ ಅಕ್ಷರಗಳನ್ನು ಈ ಕೆಳಗಿನಂತೆ ಗ್ರಹಿಸಿಕೊಂಡಿದ್ದಾರೆ.
\end{document}
I am attaching the screenshot of the problem.
How do I get the page numbers correctly in the toc? Also, how to change contentsname?



\frontmatterfor the front matter, then\mainmatterfor the main stuff and\endmatterif you have things like appendices or an index at the end. – cfr Oct 29 '23 at 02:11\renewcommand...for the TOC name after\begin{document}. – cfr Oct 29 '23 at 02:13contentsnamenow is set after moving it as you suggested. Using\fronmattermakes the page number intocappear asiiirather than೩. But, it renders as boxes because the font lacks those characters (i think). How to customise the numbering scheme? – mas Oct 29 '23 at 02:39