BlogGalleryAbout meContactAggregator

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
The Spiral Malayalam
Comments (0)  Permalink

Comments

add a comment

This blog is gravatar enabled.
Your email adress will never be published.
Comment spam will be deleted!

Select Input Method

Use CTRL+SPACE for stopping/resuming the Malayalam input method


Name*
E-Mail
For Spammers Only
URL
Comment*
Notify me via E-Mail when new comments are made to this entry
Remember me (needs cookies)

Best viewed with FLOSS browsers