Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using XeLaTeX (XeTeX, Version 3.1415926-2.4-0.9998 on TeX Live 2012/W32TeX). There are some special Indic unicode characters which XeLaTeX does not seem to support. I am trying to produce character र्ऋ - which is character no. 1011 on this page - http://ccat.sas.upenn.edu/plc/tamilweb/trans/unicodehindi.html - it is combination of three unicode symbols hexadecimal codes are 0930, 094d, 090b. In Word, I can type using 0930 Alt-X 094d Alt-X 090b Alt-X which produces र्ऋ correctly. Then I can copy paste and all applications like notepad, Firefox, get it right. But in XeLaTeX it does not work. The following compiles successfully, but renders र्ऋ as "र् ऋ" (without a space in between). The hex chars also do not work.

\documentclass[14pt]{article}
\usepackage{polyglossia}
\usepackage{fontspec}
\setmainfont[Script=Devanagari]{Arial Unicode MS}
\begin{document}
र्ऋ \char"0930\char"094d\char"090b
\end{document}

Thanks in advance.

Update on 2012-12-15: This works fine with Sanskrit 2003 font. I am yet to find a solution for Arial Unicode MS though.

\documentclass[14pt]{article}
\usepackage{polyglossia}
\usepackage{fontspec}
\setmainfont[Script=Devanagari]{Sanskrit 2003}
\begin{document}
रृ  
\end{document}
share|improve this question
    
The hexadecimal digits must be uppercase; try \char"0930\char"094D\char"090B. However, by copying and pasting र्ऋ I get the expected result (with the FreeSerif font). –  egreg Nov 17 '12 at 17:55
    
TexLive 2012 on Windows with Sanskrit 2003 font has a problem with the Unicode sequence 0930-094d-090b (automatically rendered as र्ऋ in Word or Notepad). I tried the Unicode sequence 0930 0943 (रृ) instead. TexLive 2012 using Sanskrit 2003 font cannot typeset the triple Unicode sequence correctly. But the double Unicode sequence works fine and is rendered ultimately as र्ऋ. –  user22209 Dec 15 '12 at 10:35
add comment

1 Answer 1

up vote 0 down vote accepted

Using this currently - works with my font. The question may be considered solved for now.

\documentclass[14pt]{article}
\usepackage{polyglossia}
\usepackage{fontspec}
\setmainfont[Script=Devanagari]{Sanskrit 2003}
\begin{document}
रृ  
\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.