I am editing a text that has a few articles in Devanagari and the rest in English. The opening and closing quotation marks are not displayed correctly. I have gone through most of the discussion on this site, but the problem persists.
\documentclass[paper=17cm:24cm,11pt,DIV=12,BCOR=10mm,headinclude=true,pagesize=false,headings=small,table]{scrbook}
\usepackage[frame,a4,center]{crop}
\usepackage{xspace}
\usepackage{hyperref}
\usepackage{csquotes}
\usepackage{newunicodechar}
\addtokomafont{disposition}{\rmfamily}
\renewcommand{\sffamily}{\rmfamily}
\usepackage{xunicode}
\usepackage{fontspec}
\usepackage[osf]{libertine}
\usepackage{polyglossia}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
\setdefaultlanguage[variant=uk]{english}
\setmainfont{Linux Libertine O}
\newfontfamily\ef{Linux Libertine O}
\setotherlanguage{sanskrit}
\newfontfamily\devanagarifont[Script=Devanagari,Mapping=devanagarinumerals]{Sanskrit2003}
\font\df="Sanskrit 2003:script=devanagari" at 12pt
\font\dfs="Sanskrit 2003:script=devanagari" at 10pt
\setotherlanguage{tibetan}
\newfontfamily\tf {Kailasa}
\newfontfamily\stsong{STSong}
\newcommand\chinese[1]{{\stsong #1}}
\begin{document}
\df {अधुना कवेः कुलनाम विमर्शितव्यम्~। अत्र विद्येते द्वौ पाठौ ``उदुम्बरनामान" इति ``डम्बरनामान" इति च~।}
\ef {In a way, we can say that ``Jain poetics" is not given proper attention in the entire history of Sanskrit poetics on which scholars of the rank of Mahāmahopādhyāya Kane }
\end{document}
csquotes
, but you do not use it. You still hard-code the quotation marks as``Jain poetics"
and do not usecsquotes
' features such as\enquote{Jain poetics}
. Secondly,csquotes
needs more than just font switching: it reacts to language switching. So\df
to switch the font is not enough, you need to switch the language as well. Lastly, I don't thinkcsquotes
actually supports any Indic language at the moment. So you'd have to configure it for Devanagari quotation marks first.