I want to write a letter in Hindi. I want to use LaTeX to create the PDF document in Hindi. I don't want to have transliteration from English to Hindi. How can I do this?
2 Answers
Use the polyglossia package. Type in Hindi words using input systems like that from Google (http://www.google.co.in/inputtools/). There is no transliteration in the LaTeX source itself. Compile with XeLaTeX.
Sample:
\documentclass{report}
\usepackage{polyglossia}
\setdefaultlanguage{hindi}
\setotherlanguage{english}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\newfontfamily\devanagarifont[Scale=MatchUppercase]{Nakula}
\newfontfamily\devtransl[Mapping=DevRom]{Times New Roman}
\setmainfont{Nakula}
\begin{document}
Bollywood बॉलीवुड
\end{document}
- 218,180
-
Hi, I tried whatever you mentioned. Still I am facing issue with display. The words are not getting displayed properly in the pdf even though they are getting displayed correctly in source file. And when I tried to copy words from the pdf file and paste them, they are pasted as what they should be (as they are in the source file) and not identical to pdf display. – Manish Jun 10 '14 at 18:00
-
-
With "Nakula" font, I am able to get the output fine. It can be downloaded from http://bombay.indology.info/software/fonts/devanagari/ – Yogesh Haribhau Kulkarni Jun 12 '14 at 03:01
I am assuming you are using the Devanagari script.
Below are some links to LaTeX's official documentation for Hindi. Unfortunately, much of the work done is LaTeX does involve transliteration:
Here is a general overview geared towards people just learning how to use Hindi for LaTeX.
Here is a link to an offical package supporting the Devanagari script.
Here is another link to the documentation for another package that supports the Devanagari script. It should be noted that this package (or the documentation) has not been updated in over 20 years. Here's a tutorial in utilizing this same package.
Here is a Tex.SE post that may help.
-
2XeLaTeX allows one to use OpenType fonts with Devanagari scripts directly. Posting links to really outdated information isn't terribly helpful, I'm afraid. – Alan Munn Jun 05 '14 at 05:44
-
polyglossiapackage. – Alan Munn Jun 05 '14 at 05:41link
for it.
– Manish Jun 11 '14 at 15:40