On Fri, Aug 18, 2006 at 08:10:14PM +0200, Andries Brouwer wrote: > On Fri, Aug 18, 2006 at 02:29:34PM +0200, Werner LEMBERG wrote: > > > > Since I have no idea about Indic scripts, I won't and can't give a > > comment. I just want to note that Emacs supports Devanagari with > > single, double, and triple width glyphs (IIRC); you may have a look > > how they've done it -- from a technical point, not from an encoding > > point. > > There is a bug (that I have not investigated) in the use of > "emacs -nw" on a uxterm. When symbols occur on the line > of which no glyph is available, then emacs and uxterm have different > ideas about the width of displayed strings, and corruption results.
This is exactly why it's a bug for the terminal emulator to use the font's idea of glyph width whatsoever. The only correct implementation is for the terminal emulator to use wcwidth and demand that the font matches (and in fact render individual glyphs in cells, not use string-rendering functions). But yes, Werner was talking about Emacs GUI, not -nw. I doubt the GUI is really relevant to character-cell stuff though unless they found a way to coerce Indic scripts into character cells well... Rich -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
