Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I sometimes edit text in telugu language. However, when I open the file (UTF-8 encoded) in GNU emacs (version on Ubuntu Jaunty) the text rendering is incorrect. The same text file opened in gedit is rendered correctly.

Here's a snippet: ప్రకృతికి ఉదయం అంటే ఇష్టమేమో rendred in gedit:

telugu text rendering in gedit

And, the emacs rendering of the same text:

telugu text rendering in emacs

Wherever glyphs need to be composited (not sure if it's the right word), emacs (or whatever library it uses) is not doing it right.

Is there anyway to fix this? Perhaps tuning some setting in my configuration? Any ideas, please?

share|improve this question

migrated from May 12 '10 at 13:20

This question came from our site for professional and enthusiast programmers.

Superuser stuff – aviraldg May 11 '10 at 17:52
@aviraldg: Are you suggesting this isn't the place to ask this question? – Prakash K May 12 '10 at 0:10
@prakash Yeah. – aviraldg May 12 '10 at 2:24
Looks like I don't have enough reputation to migrate this question over to superuser. And, I don't have any reputation on superuser to post images or (more than one) hyperlinks :( I'll have to re-post the question without images and one backlink to this. – Prakash K May 12 '10 at 3:41
@Prakash: this will be migrated automatically; you don't have to do anything but wait. please don't crosspost. – quack quixote May 12 '10 at 3:49

gedit uses Pango, which gives it access to advanced text layout functionality for Indic languages. There is no version of emacs that supports Pango, so there is no way to fix this.

share|improve this answer
(Please read [NL] below as line breaks, as new-lines are being collapsed here.) The emacs I am using does seem to be linked to libpango: >> ldd /usr/bin/emacs23-x | grep pango | sort [NL] => /usr/lib/ (0xb7a33000) [NL] => /usr/lib/ (0xb7b5f000) [NL] => /usr/lib/ (0xb7bab000) [NL] FWIW, examining /usr/bin/gedit shows the same info. I am sure I am missing something, but does this mean emacs is linking in pango, but not using it, or is not using it as it was intended to be? – Prakash K May 16 '10 at 1:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .