unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7005: 24.0.50; Devanagari rendering broken
@ 2010-09-09 16:04 Ramkumar Ramachandra
  2010-09-10  0:34 ` Kenichi Handa
  0 siblings, 1 reply; 10+ messages in thread
From: Ramkumar Ramachandra @ 2010-09-09 16:04 UTC (permalink / raw)
  To: 7005; +Cc: rfrancoise, Miles Bader

Hi,

Steps to reproduce:
Open a file containing UTF-8 Devanagari script in Emacs. It is rendered
incorrectly. For example, in the word "लिखने", The first and second
rendered characters are swapped. Konsole (Qt) renders this correctly.

A page on the EmacsWiki suggests a workaround that works on Ubuntu
though [1].

Thanks.

[1]: http://www.emacswiki.org/emacs/SupportHindi

In GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-08-21 on elegiac, modified by Debian
 (emacs-snapshot package, version 1:20100903-3)
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8
  default enable-multibyte-characters: t






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

* bug#7005: 24.0.50; Devanagari rendering broken
  2010-09-09 16:04 bug#7005: 24.0.50; Devanagari rendering broken Ramkumar Ramachandra
@ 2010-09-10  0:34 ` Kenichi Handa
  2010-09-10  4:51   ` Ramkumar Ramachandra
  0 siblings, 1 reply; 10+ messages in thread
From: Kenichi Handa @ 2010-09-10  0:34 UTC (permalink / raw)
  To: Ramkumar Ramachandra; +Cc: rfrancoise, 7005, miles

In article <20100909160424.GA16852@kytes>, Ramkumar Ramachandra <artagnon@gmail.com> writes:

> Steps to reproduce:
> Open a file containing UTF-8 Devanagari script in Emacs. It is rendered
> incorrectly. For example, in the word "लिखने", The first and second
> rendered characters are swapped. Konsole (Qt) renders this correctly.

Emacs 23 and later shifted the support of Indic (and any
other complex scripts) to OpenType fonts.  And, on
GNU/Linux, you need libotf, m17n-db, and m17n-lib to make
Emacs render those scripts correctly by OTF.

> A page on the EmacsWiki suggests a workaround that works on Ubuntu
> though [1].

It's not a "workaround" but the right thing on GNU/Linux
systems.

---
Kenichi Handa
handa@m17n.org





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

* bug#7005: 24.0.50; Devanagari rendering broken
  2010-09-10  0:34 ` Kenichi Handa
@ 2010-09-10  4:51   ` Ramkumar Ramachandra
  2010-09-10  5:34     ` Romain Francoise
  2010-09-16 11:30     ` Kenichi Handa
  0 siblings, 2 replies; 10+ messages in thread
From: Ramkumar Ramachandra @ 2010-09-10  4:51 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: rfrancoise, 7005, miles

Hi Kenichi,

Kenichi Handa writes:
> In article <20100909160424.GA16852@kytes>, Ramkumar Ramachandra <artagnon@gmail.com> writes:
> 
> > Steps to reproduce:
> > Open a file containing UTF-8 Devanagari script in Emacs. It is rendered
> > incorrectly. For example, in the word "लिखने", The first and second
> > rendered characters are swapped. Konsole (Qt) renders this correctly.
> 
> Emacs 23 and later shifted the support of Indic (and any
> other complex scripts) to OpenType fonts.  And, on
> GNU/Linux, you need libotf, m17n-db, and m17n-lib to make
> Emacs render those scripts correctly by OTF.

Thanks for the explanation.

> > A page on the EmacsWiki suggests a workaround that works on Ubuntu
> > though [1].
> 
> It's not a "workaround" but the right thing on GNU/Linux
> systems.

I see. Well, I suppose I should put it like this then:
1. Emacs should then refuse to render Devanagari without the required
   libraries, not render them incorrectly.
2. I have those libraries installed on my Debian Sid machine, and
   Emacs still doesn't render them correctly. I don't suppose this
   belongs here- I'll head over to bugs.debian.org.

Thanks.

-- Ram





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

* bug#7005: 24.0.50; Devanagari rendering broken
  2010-09-10  4:51   ` Ramkumar Ramachandra
@ 2010-09-10  5:34     ` Romain Francoise
  2010-09-10  5:40       ` Ramkumar Ramachandra
  2010-09-16 11:30     ` Kenichi Handa
  1 sibling, 1 reply; 10+ messages in thread
From: Romain Francoise @ 2010-09-10  5:34 UTC (permalink / raw)
  To: Ramkumar Ramachandra; +Cc: 7005, miles

Ramkumar Ramachandra <artagnon@gmail.com> writes:

> 2. I have those libraries installed on my Debian Sid machine, and
>    Emacs still doesn't render them correctly. I don't suppose this
>    belongs here- I'll head over to bugs.debian.org.

emacs-snapshot is deliberately built without m17n/otf support, so
this is not a bug.





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

* bug#7005: 24.0.50; Devanagari rendering broken
  2010-09-10  5:34     ` Romain Francoise
@ 2010-09-10  5:40       ` Ramkumar Ramachandra
  2010-09-10 11:46         ` Romain Francoise
  0 siblings, 1 reply; 10+ messages in thread
From: Ramkumar Ramachandra @ 2010-09-10  5:40 UTC (permalink / raw)
  To: Romain Francoise; +Cc: 7005, miles

Hi Romain,

Romain Francoise writes:
> Ramkumar Ramachandra <artagnon@gmail.com> writes:
> 
> > 2. I have those libraries installed on my Debian Sid machine, and
> >    Emacs still doesn't render them correctly. I don't suppose this
> >    belongs here- I'll head over to bugs.debian.org.
> 
> emacs-snapshot is deliberately built without m17n/otf support, so
> this is not a bug.

Ah, I see. By the way, why is it built without m17n/otf support?

-- Ram





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

* bug#7005: 24.0.50; Devanagari rendering broken
  2010-09-10  5:40       ` Ramkumar Ramachandra
@ 2010-09-10 11:46         ` Romain Francoise
  0 siblings, 0 replies; 10+ messages in thread
From: Romain Francoise @ 2010-09-10 11:46 UTC (permalink / raw)
  To: Ramkumar Ramachandra; +Cc: 7005, miles

Ramkumar Ramachandra <artagnon@gmail.com> writes:

> Ah, I see. By the way, why is it built without m17n/otf support?

Historically because when m17n/otf support was added to Emacs, the
m17n/otf packages in Debian were outdated and the maintainer was
apparently missing. But now that I look into it again, it seems that
they have a new maintainer and the state of the packages looks
pretty good, so I think I'll enable m17n/otf in a future snapshot
release.





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

* bug#7005: 24.0.50; Devanagari rendering broken
  2010-09-10  4:51   ` Ramkumar Ramachandra
  2010-09-10  5:34     ` Romain Francoise
@ 2010-09-16 11:30     ` Kenichi Handa
  2010-09-16 12:05       ` Ramkumar Ramachandra
  1 sibling, 1 reply; 10+ messages in thread
From: Kenichi Handa @ 2010-09-16 11:30 UTC (permalink / raw)
  To: Ramkumar Ramachandra; +Cc: rfrancoise, 7005, miles

In article <20100910045115.GE27725@kytes>, Ramkumar Ramachandra <artagnon@gmail.com> writes:

> I see. Well, I suppose I should put it like this then:
> 1. Emacs should then refuse to render Devanagari without the required
>    libraries, not render them incorrectly.

What do you exactly mean by "refuse to render Devanagari"?
Show just empty boxes for each character?

---
Kenichi Handa
handa@m17n.org





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

* bug#7005: 24.0.50; Devanagari rendering broken
  2010-09-16 11:30     ` Kenichi Handa
@ 2010-09-16 12:05       ` Ramkumar Ramachandra
  2010-09-16 12:21         ` Kenichi Handa
  0 siblings, 1 reply; 10+ messages in thread
From: Ramkumar Ramachandra @ 2010-09-16 12:05 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: rfrancoise, 7005, miles

Hi Kenichi,

Kenichi Handa writes:
> In article <20100910045115.GE27725@kytes>, Ramkumar Ramachandra <artagnon@gmail.com> writes:
> 
> > I see. Well, I suppose I should put it like this then:
> > 1. Emacs should then refuse to render Devanagari without the required
> >    libraries, not render them incorrectly.
> 
> What do you exactly mean by "refuse to render Devanagari"?
> Show just empty boxes for each character?

Yeah, or something like that. Isn't that better than rendering
something that's incorrect and misleading?

-- Ram





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

* bug#7005: 24.0.50; Devanagari rendering broken
  2010-09-16 12:05       ` Ramkumar Ramachandra
@ 2010-09-16 12:21         ` Kenichi Handa
  2010-09-17 17:00           ` Ramkumar Ramachandra
  0 siblings, 1 reply; 10+ messages in thread
From: Kenichi Handa @ 2010-09-16 12:21 UTC (permalink / raw)
  To: Ramkumar Ramachandra; +Cc: rfrancoise, 7005, miles

In article <20100916120501.GA5217@kytes>, Ramkumar Ramachandra <artagnon@gmail.com> writes:

> Hi Kenichi,
> Kenichi Handa writes:
> > In article <20100910045115.GE27725@kytes>, Ramkumar Ramachandra <artagnon@gmail.com> writes:
> > 
> > > I see. Well, I suppose I should put it like this then:
> > > 1. Emacs should then refuse to render Devanagari without the required
> > >    libraries, not render them incorrectly.
> > 
> > What do you exactly mean by "refuse to render Devanagari"?
> > Show just empty boxes for each character?

> Yeah, or something like that. Isn't that better than rendering
> something that's incorrect and misleading?

I'm not sure.  I myself prefer seeing each character by its
original shape (i.e. no-reordering, no-ligature,
no-positioning) than seeing just empty boxes.

It may be good to highlight incorrectly rendered part by
some warning face.

---
Kenichi Handa
handa@m17n.org





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

* bug#7005: 24.0.50; Devanagari rendering broken
  2010-09-16 12:21         ` Kenichi Handa
@ 2010-09-17 17:00           ` Ramkumar Ramachandra
  0 siblings, 0 replies; 10+ messages in thread
From: Ramkumar Ramachandra @ 2010-09-17 17:00 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: rfrancoise, 7005, miles

Hi,

Kenichi Handa writes:
> I'm not sure.  I myself prefer seeing each character by its
> original shape (i.e. no-reordering, no-ligature,
> no-positioning) than seeing just empty boxes.
> 
> It may be good to highlight incorrectly rendered part by
> some warning face.

Sure, that makes sense.

-- Ram





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

end of thread, other threads:[~2010-09-17 17:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-09 16:04 bug#7005: 24.0.50; Devanagari rendering broken Ramkumar Ramachandra
2010-09-10  0:34 ` Kenichi Handa
2010-09-10  4:51   ` Ramkumar Ramachandra
2010-09-10  5:34     ` Romain Francoise
2010-09-10  5:40       ` Ramkumar Ramachandra
2010-09-10 11:46         ` Romain Francoise
2010-09-16 11:30     ` Kenichi Handa
2010-09-16 12:05       ` Ramkumar Ramachandra
2010-09-16 12:21         ` Kenichi Handa
2010-09-17 17:00           ` Ramkumar Ramachandra

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).