Re: Malayalam on Mac OS
Radhakrishnan CV <[email protected]> Wed, 6 Nov 2013 14:51:12 +0530
| Newsgroups | gmane.comp.tex.tugindia |
|---|---|
| Message-ID | <CA+uu9n8kp9Esu7WQ8_E2invaoTw6PLoeiwncOvDQG4KvpXh8BA@mail.gmail.com> |
> > On Tue, Nov 5, 2013 at 8:11 PM, c puram <[email protected]> wrote: > > > I know that the Malayalam package developed by A.J. Alex is available on > > Linux OS. Is it available for Mac OS? > If you are in Mac OS (or for that matter any other OS), you can make use of XeLaTeX and fontspec package which works fine to typeset Malayalam, provided you have the right fonts installed. I have done a lot of books in this combination. Given below is a simple working example: %------------------------ beginning of test-ml.tex ----------------------------- \documentclass[a4paper,12pt]{article} \usepackage[margin=1.25in,ignoreall]{geometry} \usepackage{url} \usepackage[dvipsnames,svgnames]{xcolor} \usepackage[colorlinks]{hyperref} \date{} \usepackage{fontspec} \setmainfont[Ligatures=TeX,Mapping=tex-text]{FreeSerif} \setsansfont[Ligatures=TeX,Mapping=tex-text]{FreeSans} \setmonofont[Ligatures=TeX,Mapping=tex-text]{FreeMono} \newfontfamily\malayalamfont[Script=Malayalam,Mapping=tex-text]{FreeSerif} \newfontfamily\rachana[Script=Malayalam]{Rachana} \newfontfamily\meera[Script=Malayalam,Mapping=tex-text]{Meera} \usepackage{polyglossia} \setdefaultlanguage{malayalam} \setotherlanguages{english} \lefthyphenmin=3 \righthyphenmin=3 \begin{document} \title{സായാഹ്ന ഫൗണ്ടേഷന്} \author{രാധാകൃഷ്ണന്} \maketitle തെരഞ്ഞെടുത്ത ഏതാനും മലയാള പുസ്തകങ്ങളുടെ ഇലക്ട്രോണിക് പതിപ്പുകള് \href{ http://books.sayahna.org/ml/}{സായാഹ്ന \linebreak ഫൌണ്ടേഷനില്} നിന്നും ലഭ്യമാണ്. വായനക്കാര്ക്ക് യഥേഷ്ടം ഇവിടെനിന്നും ഇറക്കുവാനും അവ തങ്ങളുടെ കമ്പ്യൂട്ടറുകളിലേക്കോ ഇ-പുസ്തകങ്ങള് വായിക്കുവാനുതകുന്ന മറ്റ് ഉപകരണങ്ങളിലേയ്ക്കോ നിയമവിധേയമായിത്തന്നെ പകര്ത്തുവാനും അവകാശമുണ്ടായിരിക്കുന്നതാണ്. \href{http://www.creativecommons.org}{ക്രിയേറ്റിവ് കോമണ്സിന്റെ} പകര്പ്പവകാശ നിബന്ധനകള് പ്രകാരം വിതരണം ചെയ്യപ്പെടുന്ന ഈ പുസ്തകങ്ങള്ക്ക് യാതൊരു വിലയും നല്കേണ്ടതില്ല, നൂറ് ശതമാനം സൌജന്യമാണ്. \end{document} % ---------------------- end of test-ml.tex -------------------------- You can run xelatex test-ml and see the output. I have provided the output generated here at: http://books.sayahna.org/ml/pdf/test-ml.pdf You may kindly compare yours with this one. Best regards Radhakrishnan _______________________________________________ Home: http://www.tug.org.in/ TeX FAQ: http://www.tex.ac.uk/faq unsubscribe: http://tug.org/mailman/listinfo/tugindia