unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Making the malayalam rendering proper
       [not found] <57f75d610805270350p41018624v59022a20f6c84f40@mail.gmail.com>
@ 2008-05-27 11:31 ` Kenichi Handa
  2008-10-19 18:14 ` Rendering Fix progresses, Now Input-Method (Was:Re: Making the malayalam rendering proper) Shyam | ശ്യാം കാരനാട്ട്  | Karanattu
  1 sibling, 0 replies; 3+ messages in thread
From: Kenichi Handa @ 2008-05-27 11:31 UTC (permalink / raw)
  Cc: emacs-devel

In article <57f75d610805270350p41018624v59022a20f6c84f40@mail.gmail.com>,  writes:

> In all unicode enabled gnu emacs that i tried, malayalam is rendered as a
> stream of unicode letters. Malayalam like other devanagari scripts, often
> requires to combine two characters(with two different glyphs) to display
> another glyph which represent the combination(complex script?)
> The picture attached,shows the difference in rendering of the same string in
> emacs and in gedit.The first one is made in emacs and the second bigger one
> in gedit.after developing some patches, Pango renders malayalam perfectly
> from version 1.20 onwards..
> How could this be made right.Where can i find more information about the
> rendering details of emacs?
> gpled fonts like the ones available from
> http://download.savannah.gnu.org/releases/smc/fonts/malayalam-fonts-04/
> are having sufficient glyphs to render malayalam perfectly..But this bug
> requires some work regarding rendering right?

Does your src/config.h contains these lines?

#define HAVE_LIBOTF 1
#define HAVE_M17N_FLT 1

If not, you must install libotf and libm17n-flt (see INSTALL
how to get them), and run configure again.

BTW, please send me the UTF-8 text you used in
emacs-rendering-difference.png.

---
Kenichi Handa
handa@ni.aist.go.jp




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Rendering Fix progresses, Now Input-Method  (Was:Re: Making the malayalam rendering proper)
       [not found] <57f75d610805270350p41018624v59022a20f6c84f40@mail.gmail.com>
  2008-05-27 11:31 ` Making the malayalam rendering proper Kenichi Handa
@ 2008-10-19 18:14 ` Shyam | ശ്യാം കാരനാട്ട്  | Karanattu
  2008-10-20  7:47   ` Kenichi Handa
  1 sibling, 1 reply; 3+ messages in thread
From: Shyam | ശ്യാം കാരനാട്ട്  | Karanattu @ 2008-10-19 18:14 UTC (permalink / raw)
  To: emacs-devel, Kenichi Handa

Hi sir,
   Its A REALLY GREAT PLEASURE! to read  this blog from suresh ji
   http://suruma.freeflux.net/blog/archive/2008/10/15/emacs-malayalam.html 
   which says about the malayalam rendering in emacs became perfect!
   GREAT THANKS for the work!
   I have tried the same and it seems working perfect so far.
   Now comes  the next wish ;-) to make the malayalam-inscript input method
   perfect. It cant enter zwj and zwnj at the moment. I could
   correct it with a simple (quail-defrule "]" "‍") and (quail-defrule "\\"
   "‌")
   . But i dont know how to specify that in leim/quail/indian.el to
   include it to the default setting. Also the input method contradicts
   with the xkb input layout, as it  swaps the place of two
   characters. i.e emacs' malayalam-inscript layout has z for േ and s
   for െ and Z for  ഏ  and S for എ while its z:െ s:േ Z:എ S:ഏ for xkb
   layout which i cleared by creating another inscript-ml-keytable by
   copying inscript-dev-keytable in the leim/quail/indian.el and swapping the place of (?Z ?z) and
   (?S ?s) 
   Its a great joy to get the emacs' own input method than xkb's as the
   control characters work without changing the input method. Otherwise,
   I have to change the input method to do every C-a or C-e ;-) 

   Moreover  I got emacs crashing for various key combinations which
   happens for  both type of input methods(xkb's and emacs').

  (gdb) run
  Starting program: /home/shyam/emacs/src/emacs 
  [Thread debugging using libthread_db enabled]
  [New Thread 0xb7062720 (LWP 17362)]
  
  Program received signal SIGABRT, Aborted.
  [Switching to Thread 0xb7062720 (LWP 17362)]
  0xb7efa410 in __kernel_vsyscall ()
  (gdb) 
 
Thats the message i get as i try to display all the characters by
passing finger over my qwerty keyboard (ACER aspire 5570z laptop) one after the other, starting
from the one having `/~ (ൊ/ഒ) and works fine till =/+(ൃ/ഋ) but the next
character q/Q(ൌ/ഔ) makes it break. with the message FATAL Error:(6)
Aborted
but just entering =/+ and q/Q didn't caused crashing. I could also find
some similar keysequence causing the emacs to crash.


btw ldd /usr/local/bin/emacs-23.0.60 gives me the following
	linux-gate.so.1 =>  (0xb7f74000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7beb000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7b67000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7b4c000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7b34000)
	libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7b0f000)
	libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7b06000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7ac9000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7a67000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7a2a000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7a26000)
	libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7a22000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7971000)
	libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7959000)
	libSM.so.6 => /usr/lib/libSM.so.6 (0xb7950000)
	libICE.so.6 => /usr/lib/libICE.so.6 (0xb7938000)
	libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb78e5000)
	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb78c5000)
	libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb78a2000)
	libz.so.1 => /usr/lib/libz.so.1 (0xb788d000)
	libgif.so.4 => /usr/lib/libgif.so.4 (0xb7885000)
	libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7874000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0xb778d000)
	libXft.so.2 => /usr/lib/libXft.so.2 (0xb777b000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7751000)
	librsvg-2.so.2 => /usr/lib/librsvg-2.so.2 (0xb7720000)
	libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xb76ea000)
	libgpm.so.1 => /usr/lib/libgpm.so.1 (0xb76e3000)
	libotf.so.0 => /usr/local/lib/libotf.so.0 (0xb76d2000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7665000)
	libm17n-flt.so.0 => /usr/local/lib/libm17n-flt.so.0 (0xb765c000)
	libm17n-core.so.0 => /usr/local/lib/libm17n-core.so.0 (0xb7639000)
	libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb74ea000)
	libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb74e6000)
	libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb74e3000)
	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb74de000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0xb74d0000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb74c8000)
	libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb74c4000)
	libXi.so.6 => /usr/lib/libXi.so.6 (0xb74bc000)
	libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb74b6000)
	libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb74ad000)
	/lib/ld-linux.so.2 (0xb7f75000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb7486000)
	libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb745c000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7369000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb735e000)
	libselinux.so.1 => /lib/libselinux.so.1 (0xb7345000)
	libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb731e000)
	libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb731b000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7303000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb72e2000)
	libgsf-1.so.114 => /usr/lib/libgsf-1.so.114 (0xb72ae000)
	libcroco-0.6.so.3 => /usr/lib/libcroco-0.6.so.3 (0xb7279000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7159000)
	libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb70f8000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0xb70f5000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb70f0000)
	libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb70df000)


Sorry for the long post.

Thanks a lott for the great works!

Shyam K




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Rendering Fix progresses, Now Input-Method  (Was:Re: Making the malayalam rendering proper)
  2008-10-19 18:14 ` Rendering Fix progresses, Now Input-Method (Was:Re: Making the malayalam rendering proper) Shyam | ശ്യാം കാരനാട്ട്  | Karanattu
@ 2008-10-20  7:47   ` Kenichi Handa
  0 siblings, 0 replies; 3+ messages in thread
From: Kenichi Handa @ 2008-10-20  7:47 UTC (permalink / raw)
  To: Shyam | à´¶àµà´¯à´¾à´ à´à´¾à´°à´¨à´¾à´àµà´àµ | Karanattu
  Cc: emacs-devel

In article <87ej2ctpts.fsf@swathanthran.in>, mail@swathanthran.in (Shyam | ശ്യാം കാരനാട്ട്  | Karanattu) writes:

>    Its A REALLY GREAT PLEASURE! to read  this blog from suresh ji
>    http://suruma.freeflux.net/blog/archive/2008/10/15/emacs-malayalam.html 
>    which says about the malayalam rendering in emacs became perfect!
>    GREAT THANKS for the work!
>    I have tried the same and it seems working perfect so far.

Thank you for testing it.

>    Now comes  the next wish ;-) to make the malayalam-inscript input method
>    perfect. It cant enter zwj and zwnj at the moment. I could
>    correct it with a simple (quail-defrule "]" "‍") and (quail-defrule "\\"
>    "‌")
>    . But i dont know how to specify that in leim/quail/indian.el to
>    include it to the default setting.

The function quail-defrule has 3rd optional arg NAME.  You
must specify it as this:

     (quail-defrule "]" "‍" "malayalam-inscript")
     (quail-defrule "\\" "‌" "malayalam-inscript")

And, instead of changing quail/indian.el, you can put this
in your .emacs.

(eval-after-load "quail/indian"
  '(progn
     (quail-defrule "]" "‍" "malayalam-inscript" t)
     (quail-defrule "\\" "‌" "malayalam-inscript" t)))

Are those keys already widely used by Malayalam people?
If so, we'll add them in quail/indian.el.

>    Also the input method contradicts
>    with the xkb input layout, as it  swaps the place of two
>    characters. i.e emacs' malayalam-inscript layout has z for േ and s
>    for െ and Z for  ഏ  and S for എ while its z:െ s:േ Z:എ S:ഏ for xkb
>    layout which i cleared by creating another inscript-ml-keytable by
>    copying inscript-dev-keytable in the leim/quail/indian.el and swapping the place of (?Z ?z) and
>    (?S ?s) 

Ah, I've just installed a fix.

>    Moreover  I got emacs crashing for various key combinations which
>    happens for  both type of input methods(xkb's and emacs').

>   (gdb) run
>   Starting program: /home/shyam/emacs/src/emacs 
>   [Thread debugging using libthread_db enabled]
>   [New Thread 0xb7062720 (LWP 17362)]
  
>   Program received signal SIGABRT, Aborted.
>   [Switching to Thread 0xb7062720 (LWP 17362)]
>   0xb7efa410 in __kernel_vsyscall ()
>   (gdb) 
 
> Thats the message i get as i try to display all the characters by
> passing finger over my qwerty keyboard (ACER aspire 5570z laptop) one after the other, starting
> from the one having `/~ (ൊ/ഒ) and works fine till =/+(ൃ/ഋ) but the next
> character q/Q(ൌ/ഔ) makes it break. with the message FATAL Error:(6)
> Aborted
> but just entering =/+ and q/Q didn't caused crashing. I could also find
> some similar keysequence causing the emacs to crash.

Please show me the output of gdb's "bt" command at that
moment.  And I think the problem is not in the input method
but in the display routine of the resulting character
sequence.  Please tell me which font is used and which
character sequence (preferably the shortest one) causes this
bug so that I can reproduce it.

---
Kenichi Handa
handa@ni.aist.go.jp




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-20  7:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <57f75d610805270350p41018624v59022a20f6c84f40@mail.gmail.com>
2008-05-27 11:31 ` Making the malayalam rendering proper Kenichi Handa
2008-10-19 18:14 ` Rendering Fix progresses, Now Input-Method (Was:Re: Making the malayalam rendering proper) Shyam | ശ്യാം കാരനാട്ട്  | Karanattu
2008-10-20  7:47   ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).