I´d like to have the day numbers in devanagari digits with polyglossia. The latter provides \devanagaridigits{}
to convert digits but simply doing \devanagaridigits{\tikzdaytext}
in \pgfkeys{/tikz/day code= {...}}
is not working.
here is my mwe:
\documentclass{beamer}
\mode<presentation>
{ \usetheme{metropolis} }
\geometry{verbose,papersize={160mm,90mm}}
\usepackage{fontsize,fix-cm}
\usepackage{polyglossia}
\newfontfamily\devanagarifontsf[Script=Devanagari]{NotoSansDevanagari}
\setmainlanguage{sanskrit}
\setmainfont[Script=Devanagari]{NotoSansDevanagari}
\usepackage{tikz}
\usetikzlibrary{calendar,fit}
\pgfkeys{/tikz/day code =
{
\node (lower right) at (0,0) [above left,font=\large] {
\tikzdaytext};
% here \devanagaridigits{\tikzdaytext} is not working
\node (upper left) at (-\cellwidth,\cellheight)
[below right,align=left,text width=\cellwidth-\pgflinewidth,
font=\tiny,black] {};
\node (lower left) at (-\cellwidth,0) {};
\node[rounded corners, draw,
fit=(lower right) (upper left) (lower left),
inner sep=1mm] {};
}
}
\pgfkeys{/tikz/inner sep = 0pt}
\pgfkeys{/tikz/day xshift=\cellwidth+2mm+2mm}
\pgfkeys{/tikz/day yshift=\cellheight+2mm+2mm}
\newlength{\cellheight}
\setlength{\cellheight}{5mm}
\newlength{\cellwidth}
\setlength{\cellwidth}{7mm}
\begin{document}
\begin{frame}{दिनदर्शिका}
\begin{tikzpicture}
\calendar (mycal) [dates=\year-10-29 to \year-11-2,
day list right];
\end{tikzpicture}
\end{frame}
\end{document}