From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rustom Mody Newsgroups: gmane.emacs.bugs Subject: bug#12111: 23.4; Display problem with devanagari Date: Thu, 19 Nov 2020 09:36:22 +0530 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="25189"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 12111@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 05:07:23 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 1kfbEA-0006Sb-EW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 05:07:22 +0100 Original-Received: from localhost ([::1]:46824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfbE9-0005AJ-CW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 18 Nov 2020 23:07:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfbDq-00056v-Bh for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2020 23:07:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54159) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfbDq-0002YY-2T for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2020 23:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kfbDp-0001Cr-UP for bug-gnu-emacs@gnu.org; Wed, 18 Nov 2020 23:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Rustom Mody Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Nov 2020 04:07: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.16057588034604 (code B ref 12111); Thu, 19 Nov 2020 04:07:01 +0000 Original-Received: (at 12111) by debbugs.gnu.org; 19 Nov 2020 04:06:43 +0000 Original-Received: from localhost ([127.0.0.1]:37472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfbDW-0001CB-DM for submit@debbugs.gnu.org; Wed, 18 Nov 2020 23:06:42 -0500 Original-Received: from mail-il1-f177.google.com ([209.85.166.177]:33410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfbDT-0001Bt-3l for 12111@debbugs.gnu.org; Wed, 18 Nov 2020 23:06:40 -0500 Original-Received: by mail-il1-f177.google.com with SMTP id y9so4115297ilb.0 for <12111@debbugs.gnu.org>; Wed, 18 Nov 2020 20:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=df/a3tRJ1PSvqlBuguMf7Qls9HOnPROyFPz9yQkz2io=; b=cqjL+0VgTCFq/YU5s2LqziWpxpLMKadBxsOuV5Sh+G7TQg4u0oohBqjkUXRZPJAN84 zLzwbp76/CHHl/jsSJliHM4b9tWlUG9Zj9JXxIVmu3HD3/d8MGQQ09BF7f5dPX9OJ92T AkfaUbx6TVi3Egz0rF33UmuVQLXqYID5+IZnujOJMj/EbnKKGE3jo/iUdQzmzQU2yUUR s38NoII4CdViA8cGrScwBKRYUIBjZ0vHDkBWwPkW+gSh9qH9YPELnKdRE/rgb5x/AeR/ acC8hY+wUZPG1HcAfbNDPX6+NY4UOx2OAhDfZsr1iVj6NIzIOYRWoxsHXN1MN/b08Gb1 QzKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=df/a3tRJ1PSvqlBuguMf7Qls9HOnPROyFPz9yQkz2io=; b=FwL+tYgJMqXN3vsyCq9D3c4hYHqankcegsMyT6VOqFMF6SgYqvB524eUNgyvYqTRr5 h+UGz4Zy0hZY+epNE3O9t7/H9GADVlU/75pzvaGwaUX5r3IfiBNTND7OSsWi+1Ib5j+z zrj4i5+Y818ltgOUva+0JnlNVNgy+gLdetWN33n9qZD6dFzwCRLe1vj8DAVC1PRchkeh a8AYT3Lzs6OG2qpq8ZIKO81qFt85Gz6zFbLNymqiwDmhZUN0tAMAtD3aabBa3CjT0Iwm ypgsqaVdSmP5Nqgxxw+lkx4iBM9bVIgGVkZJIbygr9bfpqqSSkf9F9WpBlODN3Nq3l62 zMxQ== X-Gm-Message-State: AOAM533dtes41+lzwj2CTcWeORqeA1cImU+8Q288bjdFYGiY1V9LK99s aOjt/g+BL2gC/DJ1T/Djk6j7X41/BxzV+VtmA3Nt5hDP X-Google-Smtp-Source: ABdhPJzJUVQsOZ9ZGH4wKiwSijYdanHgrR3I8zMOxAxtn+ea74aAy34RY9V7qvRB1EzESPQ3oOD7/9HtMMb57tvYvTc= X-Received: by 2002:a05:6e02:deb:: with SMTP id m11mr19560020ilj.8.1605758793630; Wed, 18 Nov 2020 20:06:33 -0800 (PST) In-Reply-To: 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:193687 Archived-At: Dont see the problem now 28.0.50 But dont have adobe fonts On Wed, Nov 18, 2020 at 8:43 PM Stefan Kangas wrote: > > 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 (= devanagari). > > > > 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,= it is displayed correct. > > > > The problem could be with the (adobe) font. However there is also some = issue 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 dev= anagari) > > ----------------- > > 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 b= etween 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 m= ixed 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.11201= 902 > > configured using `configure '--build' 'i486-linux-gnu' '--build' 'i486= -linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' > > '--libexecdir=3D/usr/lib' '--localstatedir=3D/var/lib' '--infodir=3D/us= r/share/info' '--mandir=3D/usr/share/man' '--with-pop=3Dyes' > > '--enable-locallisppath=3D/etc/emacs23:/etc/emacs:/usr/local/share/emac= s/23.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.4/sit= e-lisp:/usr/share/emacs/site-lisp' > > '--with-crt-dir=3D/usr/lib/i386-linux-gnu' '--with-x=3Dyes' '--with-x-t= oolkit=3Dgtk' '--with-toolkit-scroll-bars' 'build_alias=3Di486-linux-gnu' > > 'CFLAGS=3D-g -O2 -fstack-protector --param=3Dssp-buffer-size=3D4 -Wform= at -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/s= ite-lisp/xcscope > > /usr/share/emacs/23.4/site-lisp/cdargs hides /usr/share/emacs/site-lisp= /cdargs > > /usr/share/emacs/23.4/site-lisp/cmake-data/cmake-mode hides /usr/share/= emacs/site-lisp/cmake-mode > > /usr/share/emacs/site-lisp/tree-widget hides /usr/share/emacs/23.4/lisp= /tree-widget > > /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/sh= are/emacs/23.4/lisp/textmodes/flyspell > > /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/shar= e/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 europea= n > > 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= ) --=20 http://www.the-magus.in http://blog.languager.org