all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Praveen A <pravi.a@gmail.com>
To: Kenichi Handa <handa@m17n.org>
Cc: bug-gnu-emacs@gnu.org, pnemade@redhat.com,
	5080@emacsbugs.donarmstrong.com, psatpute@redhat.com
Subject: bug#5080: indic text is not displayed correctly in emacs shell
Date: Fri, 4 Dec 2009 14:19:18 +0530	[thread overview]
Message-ID: <3f2beab60912040049we5870bbk9991a3eb37111b21@mail.gmail.com> (raw)
In-Reply-To: <tl7d42vfpqa.fsf@m17n.org>

[-- Attachment #1: Type: text/plain, Size: 3040 bytes --]

2009/12/4 Kenichi Handa <handa@m17n.org>:
> In article <3f2beab60912030407o5609514bidc65538848064e4@mail.gmail.com>, Praveen A <pravi.a@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@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@savannah:~$ fc-match :lang=ml
Meera_04.ttf: "Meera" "Regular"
pravi@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

[-- Attachment #2: emacs-lohit-zwj.png --]
[-- Type: image/png, Size: 21050 bytes --]

[-- Attachment #3: gedit-lohit-zwj.png --]
[-- Type: image/png, Size: 36596 bytes --]

  reply	other threads:[~2009-12-04  8:49 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30 13:43 bug#5080: indic text is not displayed correctly in emacs shell Praveen A
2009-12-01  1:36 ` Kenichi Handa
2009-12-01  4:40   ` Parag Nemade
2009-12-01  5:25     ` Kenichi Handa
2009-12-01  5:39       ` Parag Nemade
2009-12-01  9:32         ` Praveen A
2009-12-01 11:18           ` Parag Nemade
2009-12-03  1:03             ` Kenichi Handa
2009-12-03  7:39               ` Parag Nemade
2009-12-03 11:24                 ` Kenichi Handa
2009-12-03 12:07                   ` Praveen A
2009-12-03 12:26                     ` Pravin Satpute
2009-12-04  2:16                     ` Kenichi Handa
2009-12-04  8:49                       ` Praveen A [this message]
2009-12-04 12:13                         ` Kenichi Handa
2009-12-04 12:52                           ` Kenichi Handa
2009-12-04 13:22                             ` Praveen A
     [not found]                           ` <3f2beab60912040510n9bc3257tdf310f0c5a10c69a@mail.gmail.com>
2009-12-07  1:13                             ` Kenichi Handa
2009-12-07  8:57                               ` Praveen A
2009-12-07 12:00                                 ` Kenichi Handa
2009-12-07 12:15                                   ` Praveen A
2009-12-07 12:29                                     ` Kenichi Handa
2009-12-07 13:03                                       ` Praveen A
2009-12-08  1:55                                         ` Kenichi Handa
2009-12-08  7:26                                           ` Praveen A
2009-12-07 12:56                                   ` Praveen A
2009-12-12 15:41                     ` Praveen A
2009-12-14  2:03                       ` Kenichi Handa
2011-09-18  9:32                       ` Lars Magne Ingebrigtsen
2011-09-20  3:26                         ` Kenichi Handa
2020-08-13  2:04                         ` Stefan Kangas
2020-11-19  2:52                           ` Stefan Kangas
2009-12-01  9:20   ` Praveen A

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3f2beab60912040049we5870bbk9991a3eb37111b21@mail.gmail.com \
    --to=pravi.a@gmail.com \
    --cc=5080@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=handa@m17n.org \
    --cc=pnemade@redhat.com \
    --cc=psatpute@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.