From: Praveen A <pravi.a@gmail.com>
To: Kenichi Handa <handa@m17n.org>
Cc: 5081@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org,
pnemade@redhat.com, psatpute@redhat.com, surumafonts@gmail.com
Subject: bug#5081: zwj should not be ignored in indic text
Date: Tue, 1 Dec 2009 16:54:14 +0530 [thread overview]
Message-ID: <3f2beab60912010324t60eed7e2ncd0eacf03a6c0f44@mail.gmail.com> (raw)
In-Reply-To: <tl7aay3zdes.fsf@m17n.org>
[-- Attachment #1: Type: text/plain, Size: 2294 bytes --]
2009/12/1 Kenichi Handa <handa@m17n.org>:
>> ZWJ is required to display some characters (like Malayalam chillu or
>> pure consonants) in many indic languages (Persian and Arabic also
>> needs these characters). These should not be ignored while displaying
>> indic text.
>
> Please try to evaluate this:
>
> (let ((script-regexp-alist
> `((devanagari . "[\x900-\x97F\x200C\x200D]+")
> (bengali . "[\x980-\x9FF\x200C\x200D]+")
> (gurmukhi . "[\xA00-\xA7F\x200C\x200D]+")
> (gujarati . "[\xA80-\xAFF\x200C\x200D]+")
> (oriya . "[\xB00-\xB7F\x200C\x200D]+")
> (tamil . "[\xB80-\xBFF\x200C\x200D]+")
> (telugu . "[\xC00-\xC7F\x200C\x200D]+")
> (kannada . "[\xC80-\xCFF\x200C\x200D]+")
> (malayalam . "[\xD00-\xD7F\x200C\x200D]+"))))
> (map-char-table
> #'(lambda (key val)
> (let ((slot (assq val script-regexp-alist)))
> (if slot
> (set-char-table-range
> composition-function-table key
> (list (vector (cdr slot) 0 'font-shape-gstring))))))
> char-script-table))
Now it is displayed as a separate glyph, but there is no substitution
happening. ണ + ് + ZWJ should be displayed as one glyph (gpos
substitution).
> If it still doesn't work, please tell me the version numbers
> of libotf and libm17n-flt, and also tell me which font is selected
> for Malayalam.
It started working after I changed the default font to Rachana. It
also worked with Meera, but there is another problem when using Meera
https://savannah.nongnu.org/bugs/?28129 ttf-freefont is coming as a
default. I confirmed the need for above code by setting Rachana as
default font without the above code and I can confirm, the above code
is required to display zwj.
>
> % pkg-config --modversion libotf
> % pkg-config --modversion m17n-flt
libotf 0.9.10
m17n-flt 1.5.4
- 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-zwj-after.png --]
[-- Type: image/png, Size: 68816 bytes --]
[-- Attachment #3: zwj-with-rachana.png --]
[-- Type: image/png, Size: 70100 bytes --]
next prev parent reply other threads:[~2009-12-01 11:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-30 14:54 bug#5081: zwj should not be ignored in indic text Praveen A
2009-12-01 1:33 ` Kenichi Handa
2009-12-01 11:24 ` Praveen A [this message]
2009-12-01 11:29 ` Praveen A
2011-09-18 9:36 ` Lars Magne Ingebrigtsen
2019-09-26 12:09 ` Stefan Kangas
2019-10-29 4:34 ` Stefan Kangas
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=3f2beab60912010324t60eed7e2ncd0eacf03a6c0f44@mail.gmail.com \
--to=pravi.a@gmail.com \
--cc=5081@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=handa@m17n.org \
--cc=pnemade@redhat.com \
--cc=psatpute@redhat.com \
--cc=surumafonts@gmail.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.