Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I sometimes edit text in telugu language. However, when I open the file (UTF-8 encoded) in GNU emacs (version 23.1.50.1 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 stackoverflow.com 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. superuser.com –  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

1 Answer 1

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
1  
(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] libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7a33000) [NL] libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7b5f000) [NL] libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.