BlogGalleryCalendarContactAbout me

LiveSearch

Links

  മലയാളം

  English

Archive

Buttons

  • Not f'd — you won't find me on Facebook
  • RSS 2.0 Feed
  • Latest comments
  • XHTML 1.0 compliant
  • Powered by Flux CMS
  • Powered by Popoon
  • Play Ogg
  • powered by feed2js @ Modevia Web Services
  • BlogScope
  • hacker emblem
  • Creative Commons License

XeTeX Malayalam

XeTeX is already capable of producing Malayalam documents by processing Unicode text using Opentype fonts. But there exist some issues when it comes to rendering Malayalam and more so with the traditional script. It uses an internal version of ICU library for CTL. So the changes in the ICU are not well reflected there in it. At least, not with the XeTex that comes with the texlive(I use Debian Lenny/testing), in my case.

But the svn version of XeTeX has 3.8.1, and optionally 4.0, releases of ICU. This solves most of the issues with Malayalam.(I also changed here the character classess for RA and LA, in the classtable for Malayalam, to _ct instead of _pb and _bb, respectively.This gave expected results when we write യ്ര, യ്ല etc. using tradional lipi fonts).

The development libraries needed for the build are:
libkpathsea-dev, libfreetype6-dev, libfontconfig1-dev, and libmagick9-dev.

So either get the svn by:
$ svn checkout http://scripts.sil.org/svn-public/xetex/TRUNK xetex

or get the tar ball from:
http://scripts.sil.org/svn-view/xetex/TRUNK.tar.gz?view=tar

Now from the XeTeX directory(the extracted tar directory) build it:
$ ./build-xetex
(You have make it executable or else call the shell)

It would be tricky if you go on to install it by running the install-xetex script. Because, you may have to face with a number of path searching issues unless you are able to fix those things. So the better option is to replace your xetex binary, installed as a part of texlive-xetex, by the one we have now built. It worked perfectly for me.

Now with this sample doc:
\documentclass{article}
\usepackage{fontspec}
\usepackage{xltxtra}

\def\meera{\fontspec[Script=Malayalam]{Meera}}
\def\rachana{\fontspec[Script=Malayalam]{Rachana}}
\def\suruma{\fontspec[Script=Malayalam]{suruma}}

\begin{document}

%\fontspec[Script=Malayalam]{Meera}
\title{\rachana മലയാളം സീടെക്‍ പരീക്ഷണം}
\author{\meera സുരേഷ്}
\date{}
\maketitle

\begin{center}
{\fontsize{14.4}{10}\meera
സീടെക്‍(\XeTeX) ഉപയോഗിച്ചു്
ഒരു മലയാളം ടെക്‍(\TeX) പരീക്ഷണം.
}
\vskip 2pt
{\fontsize{12}{10}\rachana
സീടെക്‍(\XeTeX) ഉപയോഗിച്ചു്
ഒരു മലയാളം ടെക്‍(\TeX) പരീക്ഷണം.
}
\vskip 2pt
{\fontsize{12}{10}\suruma
സീടെക്‍(\XeTeX) ഉപയോഗിച്ചു്
ഒരു മലയാളം ടെക്‍(\TeX) പരീക്ഷണം.
}

\end{center}

\end{document}

I got this result:


Update: A sample mlym.sty file for xelatex for Shyam Karanattu
Usage:
\usepackage[rachana]{mlym}
\begin{document}
.....
.....
.....
\end{document}

, , ,


Related Entries:
വിട്ടാലും വിടാത്ത വിധേയത്വം
New Suruma font
Use Malayalam with GNU Emacs
ഈമാക്സില്‍ മലയാളം
മലയാളം വിക്കിപീഡ്യക്കു് വണ്ണം മാത്രം മതിയോ?
 Permalink

Use Malayalam with GNU Emacs

This is how it is done

Check m17n and libotf versions:(don't use versions older than the returned one)
m17n-config --version
1.5.2
libotf-config --version
0.9.8
OK. Now get the CVS:
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs
Now configure with options:
cd emacs
./configure --without-carbon --with-x --with-toolkit-scroll-bars --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --enable-font-backend --with-freetype --with-xft --with-x-toolkit=gtk --without-hesiod --with-dbus --with-libotf --with-m17n-flt --no-create --no-recursion
Now make:
make bootstrap; make all
Test if the emacs built is OK:
./src/emacs -q
Then install emacs:
make install
Now define a function for setting up the font and code table for Malayalam by adding these lines in your .emacs file, the init file:
(defun setup-malayalam-rendering()
  "Setup Malayalam rendering"
  (interactive)
  (set-fontset-font "fontset-default"
            (cons (decode-char 'ucs ?\x0d02)
              (decode-char 'ucs ?\x0d6f))
            "Rachana")
 (set-char-table-range
   composition-function-table '(#x0d00 . #x0d7f)
   (list (vector "[\x0d00-\x0d7f\x200c\x200d]+" 0
'font-shape-gstring))))
Start emacs and use the function:
M-x setup-malayalam-rendering

And enjoy reading and writing neat Malayalam text in the Emacs buffer!

, , ,

Related Entries:
ഈമാക്സില്‍ മലയാളം
വിട്ടാലും വിടാത്ത വിധേയത്വം
New Suruma font
XeTeX Malayalam
മലയാളം വിക്കിപീഡ്യക്കു് വണ്ണം മാത്രം മതിയോ?
Comments (1)  Permalink

ഈമാക്സില്‍ മലയാളം

ഗ്നൂ ഈമാക്സ് (GNU Emacs) ഇപ്പോള്‍ Xft പിന്‍തുണയുള്ളതാക്കിയതുകൊണ്ടു് ഫോണ്ടുകള്‍ വ്യത്യസ്ത വലുപ്പത്തിലും(Scalable) മിനുസപ്പെടുത്തിയും(Antialiased) കാണിക്കാന്‍ ക്ഷമതയുള്ളതായിട്ടുണ്ടു്. ഇതില്‍ ബഹുഭാഷാസാഹിത്യം(Mutilingual text) കൈകാര്യം ചെയ്യാന്‍ m17n, libotf എന്നീ സംഗ്രഹങ്ങള്‍(Libraries) ആണു് ഉപയോഗിച്ചുവരുന്നതു്.

നിലവിലുള്ള m17n-db-യില്‍ മലയാളം അക്ഷരങ്ങള്‍ നിരത്താനും വിന്യസിക്കാനുമുള്ള സംവിധാനം (MLYM-OTF.flt), പരമ്പരാഗത ലിപിയെ സംബന്ധിച്ചിടത്തോളം, പിഴവുകള്‍ ഉള്ളതായിരുന്നു. അവ തിരുത്തുന്നതിനായി  m17n ടീമിലെ അംഗങ്ങളുമായി(Mr. Naoto and Mr. Handa) ബന്ധപ്പെടുകയും അഭിപ്രായങ്ങളും നിര്‍ദ്ദേശങ്ങളും അറിയിക്കുകയും  ചെയ്തു. അതിന്റെ ഫലമായി അവര്‍ തയ്യാറാക്കിയ പുതിയ  MLYM-OTF.flt, എതാണ്ടു് അന്യൂനമായ രിതിയില്‍ത്തന്നെ പരമ്പരാഗത ലിപി കാണിക്കുന്നുണ്ടു്.

ഗ്നൂ ഈമാക്സിന്റെ CVS പതിപ്പാണു് (GNU Emacs 23.0.60.1) ശരിയായി മലയാളം കാണിക്കുന്നതു്. ഇതിനെ ഒരുക്കിയെടുക്കാനും ഉപയോഗിക്കാനും m17n, libotf എന്നിവയുടെ എറ്റവും പുതിയ പതിപ്പുകള്‍ തന്നെ ഉപയോഗിക്കേണ്ടതുണ്ട്.

, , ,

Related Entries:
Use Malayalam with GNU Emacs
വിട്ടാലും വിടാത്ത വിധേയത്വം
New Suruma font
XeTeX Malayalam
മലയാളം വിക്കിപീഡ്യക്കു് വണ്ണം മാത്രം മതിയോ?
 Permalink
1-3/3
Best viewed with FLOSS browsers