From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#12111: 23.4; Display problem with devanagari Date: Wed, 18 Nov 2020 07:13:24 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30975"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 12111@debbugs.gnu.org To: Rustom Mody Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 18 16:14:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfP9u-0007vb-BD for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Nov 2020 16:14:10 +0100 Original-Received: from localhost ([::1]:34582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfP9t-0007Nu-C3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Nov 2020 10:14:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfP9m-0007M4-Dj for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2020 10:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52736) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfP9m-0000Bm-4L for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2020 10:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kfP9m-0004m6-0F for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2020 10:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Nov 2020 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12111 X-GNU-PR-Package: emacs Original-Received: via spool by 12111-submit@debbugs.gnu.org id=B12111.160571241318299 (code B ref 12111); Wed, 18 Nov 2020 15:14:01 +0000 Original-Received: (at 12111) by debbugs.gnu.org; 18 Nov 2020 15:13:33 +0000 Original-Received: from localhost ([127.0.0.1]:36046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfP9I-0004l5-P6 for submit@debbugs.gnu.org; Wed, 18 Nov 2020 10:13:33 -0500 Original-Received: from mail-ed1-f50.google.com ([209.85.208.50]:37439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfP9G-0004ke-Vl for 12111@debbugs.gnu.org; Wed, 18 Nov 2020 10:13:31 -0500 Original-Received: by mail-ed1-f50.google.com with SMTP id cq7so2373732edb.4 for <12111@debbugs.gnu.org>; Wed, 18 Nov 2020 07:13:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=gBfx/dNBBFXHpkF9GTwUoONSmYQHLRwqrl9KY6sJlfg=; b=ACcSio+Xd6/MIyMivPceIMhENNG1abcWLS7Y6i4l6N2kGv3STGBkwrtvWtzl5Faq/j JygXNzfFDT8dANvrywNUAw3nOE9aom0WLMZVmvRAlVq2d6ksJIuESDiFcRh9PZgJY86I /dOq9aUTVlQWPTvjEtZev38zVDP8bQts11yb+rZF1rS93gSlE5ED2qtR22shxrvUSgAX lQS9e2Foks6nm23yCyz5xAbzJo1B1X0stBT7JHKrt+tL7+j2S//uo9sUxb+xgCNSaxe7 HJJrHVCF7E4N+NbtGKiWSvH8XWa7xvJHSEYUrm764MLsI5AtFX16KsKZlhTcR7Hx49xM VmEA== X-Gm-Message-State: AOAM530vb6aY1fZXPd9tf6o7A3M3bNn8bHgy1BoI6jLfTEGglEEp2Agj rIwwobziuj16imDulU9JuD/TzrD/3BjislnhO0aoNu2s X-Google-Smtp-Source: ABdhPJweODEU6VoMJE6Zr0MIkKZf3LKQpm9eyW7IplT67VNZTZ3ru0XbT+1URN0V+eLkgFEv6Kd8Mm/9srUzgJiKCkA= X-Received: by 2002:a50:9f61:: with SMTP id b88mr27453691edf.282.1605712405210; Wed, 18 Nov 2020 07:13:25 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 18 Nov 2020 07:13:24 -0800 In-Reply-To: (Rustom Mody's message of "Wed, 1 Aug 2012 17:38:38 +0530") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193617 Archived-At: Hi Rustom, (You sent the below bug report 8 years ago, but it didn't get a reply at the time.) Rustom Mody writes: > I see a certain wrong behavior with emacs involving fonts and unicode (de= vanagari). > > I have a small elisp function that generates devanagari in a new buffer. > When the unicode is generated, the display is wrong. > If the badly displaying buffer is saved, emacs is exited and restarted, i= t is displayed correct. > > The problem could be with the (adobe) font. However there is also some is= sue with the display in emacs which is perhaps not correct. > > To make it happen the following are needed: > .Xresources containing the 1 line: > emacs*font: -adobe-courier-medium-r-normal--12-120-75-75-m-70-iso10646-1 > > Of course the font should be installed. > > A text file called roman.txt with the two lines (for translating to devan= agari) > ----------------- > saMprApte > DukRRiMkaraNe > ---------------- > > The following elisp in a file say apply-input-method.el > Now call emacs as > emacs -q -l apply-input-method.el roman.txt > (-Q does not work) > And then call F4 ie rpm-apply-input-method. > > A new frame should open with two lines of devanagari with the newline bet= ween the two lines *looking* as though it is 1 page wide, > though it is only 1 newline. > > In short the newline displays as though it were some 20 or so lines. I tried your recipe on the current master branch, and I get a buffer with exactly two lines and these characters: =E0=A4=B8=E0=A4=82=E0=A4=AA=E0=A5=8D=E0=A4=B0=E0=A4=BE=E0=A4=AA=E0=A5=8D=E0= =A4=A4=E0=A5=87 =E0=A4=A1=E0=A5=81=E0=A4=95=E0=A5=83=E0=A4=82=E0=A4=95=E0=A4=B0=E0=A4=A3=E0= =A5=87 Does that look correct to you? Are you still seeing this on a recent version of Emacs, such as the recently released version 27.1? Thanks in advance. > > The elisp file: apply-input-method.el > ---------------------- > (setq rpm-input-method "devanagari-itrans") > > (defun rpm-apply-input-method () > "buffer to buffer apply input method with buffering windowing stuff mix= ed up" > (interactive) > (let* ((inp (buffer-substring-no-properties (point-min) (point-max))) > (filename (file-name-nondirectory (buffer-file-name))) > (outname (concat (file-name-sans-extension filename) > "-hi" > (file-name-extension filename t))) > (p)) > (switch-to-buffer-other-frame outname) > (save-excursion > (save-window-excursion > (setq buffer-file-coding-system 'utf-8) > (set-input-method rpm-input-method t) > (setq p (point)) > (erase-buffer) > (execute-kbd-macro inp))) > (goto-char p) > (other-frame 1))) > > (global-set-key [f4] 'rpm-apply-input-method) > > If Emacs crashed, and you have the Emacs process in the gdb debugger, > please include the output from the following gdb commands: > `bt full' and `xbacktrace'. > For information about debugging Emacs, please read the file > /usr/share/emacs/23.4/etc/DEBUG. > > In GNU Emacs 23.4.1 (i486-pc-linux-gnu, GTK+ Version 2.24.10) > of 2012-04-08 on biber, modified by Debian > Windowing system distributor `The X.Org Foundation', version 11.0.1120190= 2 > configured using `configure '--build' 'i486-linux-gnu' '--build' 'i486-l= inux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' > '--libexecdir=3D/usr/lib' '--localstatedir=3D/var/lib' '--infodir=3D/usr/= share/info' '--mandir=3D/usr/share/man' '--with-pop=3Dyes' > '--enable-locallisppath=3D/etc/emacs23:/etc/emacs:/usr/local/share/emacs/= 23.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.4/site-= lisp:/usr/share/emacs/site-lisp' > '--with-crt-dir=3D/usr/lib/i386-linux-gnu' '--with-x=3Dyes' '--with-x-too= lkit=3Dgtk' '--with-toolkit-scroll-bars' 'build_alias=3Di486-linux-gnu' > 'CFLAGS=3D-g -O2 -fstack-protector --param=3Dssp-buffer-size=3D4 -Wformat= -Wformat-security -Werror=3Dformat-security -Wall -DDEBIAN -O2' > 'CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2'' > > 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-unix > default enable-multibyte-characters: t > > Major mode: Text > > Minor modes in effect: > tooltip-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > > > > > > > > > M-x r e p o r t - e m > > Recent messages: > Loading /etc/emacs/site-start.d/50global.el (source)...done > Loading /etc/emacs/site-start.d/50ledger.el (source)...done > Loading /etc/emacs/site-start.d/50lilypond-data.el (source)...done > Loading /etc/emacs/site-start.d/50psvn.el (source)...done > Loading /etc/emacs/site-start.d/50pydb.el (source)...done > For information about GNU Emacs and the GNU system, type C-h C-a. > Loading quail/indian...done > byte-code: Beginning of buffer [3 times] > byte-code: End of buffer [3 times] > byte-code: Beginning of buffer [2 times] > byte-code: Beginning of buffer > > Load-path shadows: > /usr/share/emacs/23.4/site-lisp/cscope/xcscope hides /usr/share/emacs/sit= e-lisp/xcscope > /usr/share/emacs/23.4/site-lisp/cdargs hides /usr/share/emacs/site-lisp/c= dargs > /usr/share/emacs/23.4/site-lisp/cmake-data/cmake-mode hides /usr/share/em= acs/site-lisp/cmake-mode > /usr/share/emacs/site-lisp/tree-widget hides /usr/share/emacs/23.4/lisp/t= ree-widget > /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/shar= e/emacs/23.4/lisp/textmodes/flyspell > /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/= emacs/23.4/lisp/textmodes/ispell > > Features: > (shadow sort mail-extr message sendmail ecomplete rfc822 mml mml-sec > password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 > rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc > time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 > hex-util hashcash mail-utils emacsbug cus-start cus-load ind-util > regexp-opt quail help-mode easymenu view tooltip ediff-hook vc-hooks > lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset > image fringe lisp-mode register page menu-bar rfn-eshadow timer select > scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core > frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai > tai-viet lao korean japanese hebrew greek romanian slovak czech european > ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help > simple abbrev loaddefs button minibuffer faces cus-face files > text-properties overlay md5 base64 format env code-pages mule custom > widget hashtable-print-readable backquote make-network-process dbusbind > system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs)