From unknown Mon Jun 23 06:03:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12111: 23.4; Display problem with devanagari Resent-From: Rustom Mody Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Aug 2012 12:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12111 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12111@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13438233814403 (code B ref -1); Wed, 01 Aug 2012 12:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Aug 2012 12:16:21 +0000 Received: from localhost ([127.0.0.1]:54385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwXqe-00018x-IH for submit@debbugs.gnu.org; Wed, 01 Aug 2012 08:16:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33001) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwXqb-00018l-Ly for submit@debbugs.gnu.org; Wed, 01 Aug 2012 08:16:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwXjK-00011Q-IU for submit@debbugs.gnu.org; Wed, 01 Aug 2012 08:08:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:60180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwXjK-00011J-EK for submit@debbugs.gnu.org; Wed, 01 Aug 2012 08:08:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwXjI-0007qB-KF for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 08:08:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwXjE-0000zt-Gc for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 08:08:44 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:53793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwXjE-0000zn-As for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 08:08:40 -0400 Received: by yhr47 with SMTP id 47so8384844yhr.0 for ; Wed, 01 Aug 2012 05:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/VuuzJDYqOwWCYR/ZwWHXOHkfz45xJmJj0N0q9tO6CA=; b=iwKlG4c4uK3y9e7lZe2Y6BjDhczQEuPKh7SD/esC3LVaSe/OpZ2AXHiv/26ZpBIJLP VBBw6Ce3nXjXoti+yu6uTuG1L3bEvLlANPnFlomGlWgSTgQjy9BTOg13cR7XcASYBJlU qd4NtqFm52atD5WEwhm+0uyVzpUab4HnQxie0IZgwTupH4X4koAIB4czW7g9xkC8Y/lm sK5w6FksRtInKrstkBnyNDdc/Q1LwmD9W3EaU8GQ5b9P30LqbyLaHOb7tjNtE5aR5m7v Vk4t/duxmm7Sg9Yc1iurPXLTuKkx/RlwCih0AWqHotrqFVlFs9vxzMuuJE3QtuOctnbD SrsA== MIME-Version: 1.0 Received: by 10.50.237.73 with SMTP id va9mr5041232igc.3.1343822918798; Wed, 01 Aug 2012 05:08:38 -0700 (PDT) Received: by 10.231.13.204 with HTTP; Wed, 1 Aug 2012 05:08:38 -0700 (PDT) Date: Wed, 1 Aug 2012 17:38:38 +0530 Message-ID: From: Rustom Mody Content-Type: multipart/alternative; boundary=f46d0447a119b74e9504c6332747 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --f46d0447a119b74e9504c6332747 Content-Type: text/plain; charset=ISO-8859-1 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 devanagari) ----------------- 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 between 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. 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 mixed 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.11201902 configured using `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/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=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -DDEBIAN -O2' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' 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/site-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/share/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) --f46d0447a119b74e9504c6332747 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I see a certain wrong behavior with emacs involving fonts and unicode (deva= nagari).

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. Ho= wever there is also some issue with the display in emacs which is perhaps n= ot correct.

To make it happen the following are needed:
.Xresources containing t= he 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 fi= le called roman.txt with the two lines (for translating to devanagari)
-----------------
saMprApte
DukRRiMkaraNe
----------------

= The following elisp in a file say apply-input-method.el
Now call emacs a= s
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 between the two lines *lookin= g* 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.
The elisp file: apply-input-method.el
----------------------
(setq rpm-input-method "devanagari-itrans&qu= ot;)

(defun rpm-apply-input-method ()
=A0 "buffer to buffer = apply input method with buffering windowing stuff mixed up"
=A0 (in= teractive)
=A0 (let* ((inp (buffer-substring-no-properties (point-min) (point-max)))=A0=A0=A0=A0 (filename (file-name-nondirectory (buffer-file-name)))
= =A0=A0=A0=A0 (outname (concat (file-name-sans-extension filename)
=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "-hi"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (file-name-extension= filename t)))
=A0=A0=A0=A0 (p))
=A0=A0=A0 (switch-to-buffer-other-fr= ame outname)
=A0=A0=A0 (save-excursion
=A0=A0=A0=A0=A0 (save-window-e= xcursion
=A0=A0=A0 (setq buffer-file-coding-system 'utf-8)
=A0=A0=A0 (set-input-method rpm-input-method t)
=A0=A0=A0 (setq p (point= ))
=A0=A0=A0 (erase-buffer)
=A0=A0=A0 (execute-kbd-macro inp)))
= =A0=A0=A0 (goto-char p)
=A0=A0=A0 (other-frame 1)))

(global-set-k= ey [f4] 'rpm-apply-input-method)


If Emacs crashed, and you have the Emacs process in the gdb debugge= r,
please include the output from the following gdb commands:
=A0=A0= =A0 `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-li= nux-gnu, GTK+ Version 2.24.10)
=A0of 2012-04-08 on biber, modified by De= bian
Windowing system distributor `The X.Org Foundation', version 11= .0.11201902
configured using `configure=A0 '--build' 'i486-linux-gnu' &= #39;--build' 'i486-linux-gnu' '--prefix=3D/usr' '--= sharedstatedir=3D/var/lib' '--libexecdir=3D/usr/lib' '--loc= alstatedir=3D/var/lib' '--infodir=3D/usr/share/info' '--man= dir=3D/usr/share/man' '--with-pop=3Dyes' '--enable-locallis= ppath=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/emac= s/site-lisp' '--with-crt-dir=3D/usr/lib/i386-linux-gnu' '--= with-x=3Dyes' '--with-x-toolkit=3Dgtk' '--with-toolkit-scro= ll-bars' 'build_alias=3Di486-linux-gnu' 'CFLAGS=3D-g -O2 -f= stack-protector --param=3Dssp-buffer-size=3D4 -Wformat -Wformat-security -W= error=3Dformat-security -Wall -DDEBIAN -O2' 'CPPFLAGS=3D-D_FORTIFY_= SOURCE=3D2''

Important settings:
=A0 value of $LC_ALL: nil
=A0 value of $LC_CO= LLATE: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil=
=A0 value of $LC_MONETARY: nil
=A0 value of $LC_NUMERIC: nil
=A0 = value of $LC_TIME: nil
=A0 value of $LANG: en_US.UTF-8
=A0 value of $XMODIFIERS: nil
=A0 loc= ale-coding-system: utf-8-unix
=A0 default enable-multibyte-characters: t=

Major mode: Text

Minor modes in effect:
=A0 tooltip-mode:= t
=A0 mouse-wheel-mode: t
=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
= =A0 file-name-shadow-mode: t
=A0 global-font-lock-mode: t
=A0 font-lo= ck-mode: t
=A0 blink-cursor-mode: t
=A0 auto-encryption-mode: t
= =A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t

Recent input:<= br><f4> <switch-frame> <switch-frame> <help-echo> &= lt;help-echo>
<help-echo> <help-echo> <help-echo> = <help-echo> <switch-frame>
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double= -mouse-4>
<triple-down-mouse-4> <triple-mouse-4> <dow= n-mouse-5>
<mouse-5> <double-down-mouse-5> <double-mo= use-5> <triple-down-mouse-5>
<triple-mouse-5> <down-mouse-4> <mouse-4> <double-down= -mouse-4>
<double-mouse-4> <triple-down-mouse-4> <tri= ple-mouse-4>
<help-echo> <help-echo> <help-echo> &= lt;help-echo> <help-echo>
<help-echo> M-x r e p o r t - e m <tab> <return>

R= ecent messages:
Loading /etc/emacs/site-start.d/50global.el (source)...d= one
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/e= macs/site-start.d/50pydb.el (source)...done
For information about GNU Em= acs 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 tim= es]
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/site-lisp/xcscope
/usr/share/emacs/23.4/site-lisp/cdargs hides /usr/share/emacs/site-lisp/cda= rgs
/usr/share/emacs/23.4/site-lisp/cmake-data/cmake-mode hides /usr/sha= re/emacs/site-lisp/cmake-mode
/usr/share/emacs/site-lisp/tree-widget hid= es /usr/share/emacs/23.4/lisp/tree-widget
/usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/= emacs/23.4/lisp/textmodes/flyspell
/usr/share/emacs23/site-lisp/dictiona= ries-common/ispell hides /usr/share/emacs/23.4/lisp/textmodes/ispell

Features:
(shadow sort mail-extr message sendmail ecomplete rfc822 m= ml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-par= se rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util n= etrc
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-floa= t-type mwheel x-win x-dnd font-setting tool-bar dnd fontset
image fringe lisp-mode register page menu-bar rfn-eshadow timer select
s= croll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core
fram= e cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet la= o 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-prope= rties overlay md5 base64 format env code-pages mule custom
widget hashta= ble-print-readable backquote make-network-process dbusbind
system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs)
--f46d0447a119b74e9504c6332747-- From unknown Mon Jun 23 06:03:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12111: 23.4; Display problem with devanagari 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 X-GNU-PR-Keywords: To: Rustom Mody Cc: 12111@debbugs.gnu.org Received: via spool by 12111-submit@debbugs.gnu.org id=B12111.160571241318299 (code B ref 12111); Wed, 18 Nov 2020 15:14:01 +0000 Received: (at 12111) by debbugs.gnu.org; 18 Nov 2020 15:13:33 +0000 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 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 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) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 18 Nov 2020 07:13:24 -0800 From: Stefan Kangas In-Reply-To: (Rustom Mody's message of "Wed, 1 Aug 2012 17:38:38 +0530") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Wed, 18 Nov 2020 07:13:24 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) 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) From unknown Mon Jun 23 06:03:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12111: 23.4; Display problem with devanagari 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 X-GNU-PR-Keywords: To: Stefan Kangas Cc: 12111@debbugs.gnu.org Received: via spool by 12111-submit@debbugs.gnu.org id=B12111.16057588034604 (code B ref 12111); Thu, 19 Nov 2020 04:07:01 +0000 Received: (at 12111) by debbugs.gnu.org; 19 Nov 2020 04:06:43 +0000 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 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 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) MIME-Version: 1.0 References: In-Reply-To: From: Rustom Mody Date: Thu, 19 Nov 2020 09:36:22 +0530 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Mon Jun 23 06:03:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Rustom Mody Subject: bug#12111: closed (Re: bug#12111: 23.4; Display problem with devanagari) Message-ID: References: X-Gnu-PR-Message: they-closed 12111 X-Gnu-PR-Package: emacs Reply-To: 12111@debbugs.gnu.org Date: Thu, 19 Nov 2020 04:58:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1605761882-1579-1" This is a multi-part message in MIME format... ------------=_1605761882-1579-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #12111: 23.4; Display problem with devanagari which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 12111@debbugs.gnu.org. --=20 12111: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12111 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1605761882-1579-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 12111-done) by debbugs.gnu.org; 19 Nov 2020 04:57:22 +0000 Received: from localhost ([127.0.0.1]:37519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfc0X-0000OH-S6 for submit@debbugs.gnu.org; Wed, 18 Nov 2020 23:57:21 -0500 Received: from mail-ej1-f44.google.com ([209.85.218.44]:34756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfc0V-0000O1-5F for 12111-done@debbugs.gnu.org; Wed, 18 Nov 2020 23:57:20 -0500 Received: by mail-ej1-f44.google.com with SMTP id o9so6072789ejg.1 for <12111-done@debbugs.gnu.org>; Wed, 18 Nov 2020 20:57:19 -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:mime-version:date :message-id:subject:to:cc; bh=2YWzFPnncaHZGQPQZ9NG+JHpYM4C3bfUp1j2pIFUKU4=; b=InkqfHE+s8X8NfDzDiBVFLUHqL4R01jAvi5KQA3zyVudn1pDdkiJjVSsqvQETrRZSV INDyKCRpVy42OTvDiRFii1VSsk3AI2FNv/Ys+MCE5SGUo8RUvPTNxLy/dta+FrAwOLFt prdzxrEOsoe2mPhLyzniKBicjbFVDXRmCDQ76SX/TbafuBsq7TQRE7mEbRtq0+ue3gT6 EbOVHLaHeGF2l2GMW56ckJdOhhB4fD6Eg8fHDiwpLMTguFcRJZpP8LnaKdTX4Ewy1X1X gtV/McnInRm4bPWdXKJs2OepKb+WJVJMjtYzHs/NjnaagWtGpxAxfw0HNTVrFfU1sk9h TPpQ== X-Gm-Message-State: AOAM533XXyELq2XjSFkYuK+Gb6SIQg2ccLFS7jf5UgEEbOP1q9vbt8f9 wl3amxmWiioxqoHQfp9CzeMy6QR554FlBCqrHyw= X-Google-Smtp-Source: ABdhPJwifx92zsuJE6lBh8izbTDxF3MsNC1aQbtfrqWu7RQl7HvDHQvbwsP4fVfOsKCyOH2f5KM7slfHysLVcdxGWro= X-Received: by 2002:a17:906:1918:: with SMTP id a24mr3738307eje.432.1605761833533; Wed, 18 Nov 2020 20:57:13 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 18 Nov 2020 20:57:13 -0800 From: Stefan Kangas In-Reply-To: References: MIME-Version: 1.0 Date: Wed, 18 Nov 2020 20:57:13 -0800 Message-ID: Subject: Re: bug#12111: 23.4; Display problem with devanagari To: Rustom Mody Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 12111-done Cc: 12111-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Rustom Mody writes: > Dont see the problem now 28.0.50 > But dont have adobe fonts Thank you. In the hope that the bug has gone away, I'm therefore closing this bug report. If anyone else is seeing this problem with those specific fonts, they will hopefully open a new bug report or reopen this one. Thanks for reporting back. ------------=_1605761882-1579-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Aug 2012 12:16:21 +0000 Received: from localhost ([127.0.0.1]:54385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwXqe-00018x-IH for submit@debbugs.gnu.org; Wed, 01 Aug 2012 08:16:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33001) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwXqb-00018l-Ly for submit@debbugs.gnu.org; Wed, 01 Aug 2012 08:16:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwXjK-00011Q-IU for submit@debbugs.gnu.org; Wed, 01 Aug 2012 08:08:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:60180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwXjK-00011J-EK for submit@debbugs.gnu.org; Wed, 01 Aug 2012 08:08:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwXjI-0007qB-KF for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 08:08:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwXjE-0000zt-Gc for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 08:08:44 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:53793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwXjE-0000zn-As for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2012 08:08:40 -0400 Received: by yhr47 with SMTP id 47so8384844yhr.0 for ; Wed, 01 Aug 2012 05:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/VuuzJDYqOwWCYR/ZwWHXOHkfz45xJmJj0N0q9tO6CA=; b=iwKlG4c4uK3y9e7lZe2Y6BjDhczQEuPKh7SD/esC3LVaSe/OpZ2AXHiv/26ZpBIJLP VBBw6Ce3nXjXoti+yu6uTuG1L3bEvLlANPnFlomGlWgSTgQjy9BTOg13cR7XcASYBJlU qd4NtqFm52atD5WEwhm+0uyVzpUab4HnQxie0IZgwTupH4X4koAIB4czW7g9xkC8Y/lm sK5w6FksRtInKrstkBnyNDdc/Q1LwmD9W3EaU8GQ5b9P30LqbyLaHOb7tjNtE5aR5m7v Vk4t/duxmm7Sg9Yc1iurPXLTuKkx/RlwCih0AWqHotrqFVlFs9vxzMuuJE3QtuOctnbD SrsA== MIME-Version: 1.0 Received: by 10.50.237.73 with SMTP id va9mr5041232igc.3.1343822918798; Wed, 01 Aug 2012 05:08:38 -0700 (PDT) Received: by 10.231.13.204 with HTTP; Wed, 1 Aug 2012 05:08:38 -0700 (PDT) Date: Wed, 1 Aug 2012 17:38:38 +0530 Message-ID: Subject: 23.4; Display problem with devanagari From: Rustom Mody To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=f46d0447a119b74e9504c6332747 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --f46d0447a119b74e9504c6332747 Content-Type: text/plain; charset=ISO-8859-1 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 devanagari) ----------------- 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 between 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. 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 mixed 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.11201902 configured using `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/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=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -DDEBIAN -O2' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' 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/site-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/share/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) --f46d0447a119b74e9504c6332747 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I see a certain wrong behavior with emacs involving fonts and unicode (deva= nagari).

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. Ho= wever there is also some issue with the display in emacs which is perhaps n= ot correct.

To make it happen the following are needed:
.Xresources containing t= he 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 fi= le called roman.txt with the two lines (for translating to devanagari)
-----------------
saMprApte
DukRRiMkaraNe
----------------

= The following elisp in a file say apply-input-method.el
Now call emacs a= s
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 between the two lines *lookin= g* 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.
The elisp file: apply-input-method.el
----------------------
(setq rpm-input-method "devanagari-itrans&qu= ot;)

(defun rpm-apply-input-method ()
=A0 "buffer to buffer = apply input method with buffering windowing stuff mixed up"
=A0 (in= teractive)
=A0 (let* ((inp (buffer-substring-no-properties (point-min) (point-max)))=A0=A0=A0=A0 (filename (file-name-nondirectory (buffer-file-name)))
= =A0=A0=A0=A0 (outname (concat (file-name-sans-extension filename)
=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "-hi"
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (file-name-extension= filename t)))
=A0=A0=A0=A0 (p))
=A0=A0=A0 (switch-to-buffer-other-fr= ame outname)
=A0=A0=A0 (save-excursion
=A0=A0=A0=A0=A0 (save-window-e= xcursion
=A0=A0=A0 (setq buffer-file-coding-system 'utf-8)
=A0=A0=A0 (set-input-method rpm-input-method t)
=A0=A0=A0 (setq p (point= ))
=A0=A0=A0 (erase-buffer)
=A0=A0=A0 (execute-kbd-macro inp)))
= =A0=A0=A0 (goto-char p)
=A0=A0=A0 (other-frame 1)))

(global-set-k= ey [f4] 'rpm-apply-input-method)


If Emacs crashed, and you have the Emacs process in the gdb debugge= r,
please include the output from the following gdb commands:
=A0=A0= =A0 `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-li= nux-gnu, GTK+ Version 2.24.10)
=A0of 2012-04-08 on biber, modified by De= bian
Windowing system distributor `The X.Org Foundation', version 11= .0.11201902
configured using `configure=A0 '--build' 'i486-linux-gnu' &= #39;--build' 'i486-linux-gnu' '--prefix=3D/usr' '--= sharedstatedir=3D/var/lib' '--libexecdir=3D/usr/lib' '--loc= alstatedir=3D/var/lib' '--infodir=3D/usr/share/info' '--man= dir=3D/usr/share/man' '--with-pop=3Dyes' '--enable-locallis= ppath=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/emac= s/site-lisp' '--with-crt-dir=3D/usr/lib/i386-linux-gnu' '--= with-x=3Dyes' '--with-x-toolkit=3Dgtk' '--with-toolkit-scro= ll-bars' 'build_alias=3Di486-linux-gnu' 'CFLAGS=3D-g -O2 -f= stack-protector --param=3Dssp-buffer-size=3D4 -Wformat -Wformat-security -W= error=3Dformat-security -Wall -DDEBIAN -O2' 'CPPFLAGS=3D-D_FORTIFY_= SOURCE=3D2''

Important settings:
=A0 value of $LC_ALL: nil
=A0 value of $LC_CO= LLATE: nil
=A0 value of $LC_CTYPE: nil
=A0 value of $LC_MESSAGES: nil=
=A0 value of $LC_MONETARY: nil
=A0 value of $LC_NUMERIC: nil
=A0 = value of $LC_TIME: nil
=A0 value of $LANG: en_US.UTF-8
=A0 value of $XMODIFIERS: nil
=A0 loc= ale-coding-system: utf-8-unix
=A0 default enable-multibyte-characters: t=

Major mode: Text

Minor modes in effect:
=A0 tooltip-mode:= t
=A0 mouse-wheel-mode: t
=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
= =A0 file-name-shadow-mode: t
=A0 global-font-lock-mode: t
=A0 font-lo= ck-mode: t
=A0 blink-cursor-mode: t
=A0 auto-encryption-mode: t
= =A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t

Recent input:<= br><f4> <switch-frame> <switch-frame> <help-echo> &= lt;help-echo>
<help-echo> <help-echo> <help-echo> = <help-echo> <switch-frame>
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double= -mouse-4>
<triple-down-mouse-4> <triple-mouse-4> <dow= n-mouse-5>
<mouse-5> <double-down-mouse-5> <double-mo= use-5> <triple-down-mouse-5>
<triple-mouse-5> <down-mouse-4> <mouse-4> <double-down= -mouse-4>
<double-mouse-4> <triple-down-mouse-4> <tri= ple-mouse-4>
<help-echo> <help-echo> <help-echo> &= lt;help-echo> <help-echo>
<help-echo> M-x r e p o r t - e m <tab> <return>

R= ecent messages:
Loading /etc/emacs/site-start.d/50global.el (source)...d= one
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/e= macs/site-start.d/50pydb.el (source)...done
For information about GNU Em= acs 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 tim= es]
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/site-lisp/xcscope
/usr/share/emacs/23.4/site-lisp/cdargs hides /usr/share/emacs/site-lisp/cda= rgs
/usr/share/emacs/23.4/site-lisp/cmake-data/cmake-mode hides /usr/sha= re/emacs/site-lisp/cmake-mode
/usr/share/emacs/site-lisp/tree-widget hid= es /usr/share/emacs/23.4/lisp/tree-widget
/usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/= emacs/23.4/lisp/textmodes/flyspell
/usr/share/emacs23/site-lisp/dictiona= ries-common/ispell hides /usr/share/emacs/23.4/lisp/textmodes/ispell

Features:
(shadow sort mail-extr message sendmail ecomplete rfc822 m= ml mml-sec
password-cache mm-decode mm-bodies mm-encode mailcap mail-par= se rfc2231
rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util n= etrc
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-floa= t-type mwheel x-win x-dnd font-setting tool-bar dnd fontset
image fringe lisp-mode register page menu-bar rfn-eshadow timer select
s= croll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core
fram= e cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet la= o 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-prope= rties overlay md5 base64 format env code-pages mule custom
widget hashta= ble-print-readable backquote make-network-process dbusbind
system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs)
--f46d0447a119b74e9504c6332747-- ------------=_1605761882-1579-1--