GNU bug report logs -
#5080
indic text is not displayed correctly in emacs shell
Previous Next
Reported by: Praveen A <pravi.a <at> gmail.com>
Date: Mon, 30 Nov 2009 13:50:03 UTC
Severity: normal
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
Message #145 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
2009/12/4 Kenichi Handa <handa <at> m17n.org>:
> In article <3f2beab60912030407o5609514bidc65538848064e4 <at> mail.gmail.com>, Praveen A <pravi.a <at> gmail.com> writes:
>
>> > (set-fontset-font t 'malayalam '("rachana" . "unicode-bmp"))
>> >
>> > I installed rachana font and confirmed that the above code
>> > worked.
>
>> Thanks. It works for me now. But how to make it default?
>
> Please put that in your .emacs.
Yes, I did that. I was thinking more on the lines of taking default
from system/fontconfig configuration.
>
>> I have my fontconfig preferences to prefer Meera, but emacs does not
>> respect that and takes Lohit Malayalam instead.
>
> Currently Emacs just uses the first font found to support
> Malayalam. What is returned when you do this?
> % fc-list :lang=ml
>
pravi <at> savannah:~$ fc-list :lang=ml
Meera:style=Regular
FreeSerif:style=Mittel,µεσαία,Medium,Normal,Gemiddeld,navadno
Rachana:style=Regular
suruma:style=Medium
AnjaliOldLipi:style=Regular
Lohit Malayalam:style=Regular
RaghuMalayalam:style=Sans
pravi <at> savannah:~$ fc-match :lang=ml
Meera_04.ttf: "Meera" "Regular"
pravi <at> savannah:~$
I think fc-match would be a better option, but even the the preference
in fc-list is not respected in this case.
> For fontconfig, we should modify the function ftfont_list in
> (src/ftfont.c) to respect user configuration, but currently
> I don't have a time to do that.
>
>> (4a) Why is it taking Lohit Malayalam by default
>> (4b) Why is the display cluttered/overlapped with some fonts like Meera
>
>> (1a) now with your patch, emacs handles ZWJ
>> (1b) There is a problem with Lohit Malayalam, I had a discussion with
>> Lohit developer (Pravin Satpute) and he says it is an issue with
>> m17n/redering engine.
>
>> Meera and Rachana uses substitution for complex glyphs, but Lohit uses
>> some fatures of OpenType specification and which needs to be
>> implemented in rendering engine used by emacs.
>
> For a rendering problem with a specific font, please send a
> set of the following info separately for each problem. You
> may have already sent some of them in the other mails, but,
> as I'm not a malayalam expert, I can't figure out easily
> which part is actually bad and how to reproduce the problem.
>
> (1) font file name (if possible, with the version number)
lohit_ml.ttf (ttf-malayalam-fonts 1:0.5.6)
http://ftp.de.debian.org/debian/pool/main/t/ttf-indic-fonts/ttf-indic-fonts_0.5.6.tar.gz
> (2) problematic character sequence
0x0D23 0x0D4D 0x200D
(ണ ് )
> (3) image of Emacs' rendering of that sequence
emacs-lohit-zwj.png
> (4) image of the correct rendering with the same font
gedit-lohit-zwj
Thanks
Praveen
--
പ്രവീണ് അരിമ്പ്രത്തൊടിയില്
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
Join The DRM Elimination Crew Now!
http://fci.wikia.com/wiki/Anti-DRM-Campaign
[emacs-lohit-zwj.png (image/png, attachment)]
[gedit-lohit-zwj.png (image/png, attachment)]
This bug report was last modified 4 years and 265 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.