From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philip Belemezov Newsgroups: gmane.emacs.devel Subject: Re: [emacs-unicode-2] incorrectly displayed cyrillic symbols Date: Mon, 20 Aug 2007 06:11:15 +0200 Message-ID: <1187583076.5399.26.camel@localhost> References: <1185031803.2604.18.camel@localhost> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1187583101 19558 80.91.229.12 (20 Aug 2007 04:11:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2007 04:11:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 20 06:11:39 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IMyc6-0000WU-GY for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2007 06:11:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMyc5-0001XI-LS for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2007 00:11:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IMybr-0001T3-GX for emacs-devel@gnu.org; Mon, 20 Aug 2007 00:11:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IMybq-0001SW-6a for emacs-devel@gnu.org; Mon, 20 Aug 2007 00:11:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IMybq-0001SR-1G for emacs-devel@gnu.org; Mon, 20 Aug 2007 00:11:22 -0400 Original-Received: from mu-out-0910.google.com ([209.85.134.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IMybp-0002fg-Tn for emacs-devel@gnu.org; Mon, 20 Aug 2007 00:11:22 -0400 Original-Received: by mu-out-0910.google.com with SMTP id g7so1356636muf for ; Sun, 19 Aug 2007 21:11:19 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding:from; b=AZ9IGirX74YL4N19pt6pgLD1TTxxNhq669DtOZATxcP1cTqKnnk0JkJSCJtYPTbTHFk7yjjQ9bfnGJ74yLARAoy/62U/xqeRhwdeMetgBlT0wZ7A7fr0O+qQZpsoI52FF4MKGbV6f8T8M1dcWRpmDPxkVp1AqERy/hsdKj3zzyM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding:from; b=cx4DB1tumVEpaUSobwseg3gHpdhIhiIXTFBeffl6QwD1agh1+lVuLjPz/9fl1PsusHz+3d3nmtvkormzDT4ggMln6ZwivD7fzAl4FDrvtF1+AFiYgmgUy0v+wRjJCQ++1+FqAubxKWCM/LWFG6WQTCI8jHchUzhrDNc3WhcimqM= Original-Received: by 10.86.71.1 with SMTP id t1mr4208213fga.1187583079520; Sun, 19 Aug 2007 21:11:19 -0700 (PDT) Original-Received: from ?10.28.22.227? ( [134.102.123.211]) by mx.google.com with ESMTPS id 13sm8834753fks.2007.08.19.21.11.17 (version=SSLv3 cipher=RC4-MD5); Sun, 19 Aug 2007 21:11:18 -0700 (PDT) In-Reply-To: X-Mailer: Evolution 2.10.1 X-Detected-Kernel: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76802 Archived-At: Hello Kenichi! Thank you for the response! Emacs is started with the following command: emacs --enable-font-backend --font "Dejavu Sans Mono-8" You're right about this being a font issue. The output of `C-u C-x =' on a Cyrillic letter is ---- character: к (1082, #o2072, #x43a) preferred charset: iso-8859-5 (ISO/IEC 8859/5) code point: 0xDA syntax: w which means: word category: Y:Cyrillic characters of 2-byte character sets c:Chinese h:Korean j:Japanese y:Cyrillic buffer code: #xD0 #xBA file code: #xD0 #xBA (encoded by coding system utf-8-unix) display: by this font (glyph code) -unknown-freeserif-medium-r-normal--11-79-100-100-p-64-iso8859-5 (#xDA) Character code properties are not shown: customize what to show There are text properties here: auto-composed t fontified t ---- I don't understand why Emacs is using freeserif to render the glyph. It's definitely not caused by a customization because the problem also occurs if I run Emacs from a different login with no .emacs file. I just tried `C-u C-x =' on a Greek letter (capital omega): ---- character: Ω (937, #o1651, #x3a9) preferred charset: iso-8859-7 (ISO/IEC 8859/7) code point: 0xD9 syntax: w which means: word category: G:Greek characters of 2-byte character sets c:Chinese g:Greek h:Korean j:Japanese buffer code: #xCE #xA9 file code: #xCE #xA9 (encoded by coding system utf-8-unix) display: by this font (glyph code) -dejavu-dejavu sans mono-medium-r-normal--11-79-100-100-m-70-iso8859-7 (#xD9) Character code properties are not shown: customize what to show There are text properties here: auto-composed t fontified t rear-nonsticky t ---- And the following is the output of `C-u C-x =' on a katakana letter (GI): ---- character: ギ (12462, #o30256, #x30ae) preferred charset: chinese-gb2312 (GB2312 Chinese simplified: ISO-IR-58) code point: 0x252E syntax: w which means: word category: K:Japanese Katakana characters of 2-byte character sets c:Chinese h:Korean j:Japanese |:While filling, we can break a line at this character. buffer code: #xE3 #x82 #xAE file code: #xE3 #x82 #xAE (encoded by coding system utf-8-unix) display: by this font (glyph code) -ISAS-Song ti-Medium-R-Normal--24-240-72-72-c-240-GB2312.1980-0 (#x252E) Character code properties are not shown: customize what to show There are text properties here: auto-composed t fontified t rear-nonsticky t ---- I started Emacs with "Dejavu Sans Mono-16" and took a screenshot of how the glyphs are rendered [1]. Best regards, Philip [1] http://www.informatik.uni-bremen.de/~iblender/emacs/emacs-23-large-font.png On Mon, 2007-08-20 at 10:21 +0900, Kenichi Handa wrote: > Very sorry for the late response. > > In article <1185031803.2604.18.camel@localhost>, Philip Belemezov writes: > > > I've been using emacs-unicode-2 for some time (maybe a year), updating > > from CVS every week. About a month or two ago, Emacs started displaying > > cyrillic symbols in a very ugly way [1], regardless of (font) > > customizations [2]. Current Emacs 22 does not have this problem [3]. > > > Emacs 23 was compiled using `configure --enable-font-backend > > --with-freetype --with-gtk --with-jpeg --with-png --with-tiff > > --with-toolkit-scroll-bars --with-xft --with-xpm --without-gif' > > > Is this a known issue? Is there a fix available? > > > Thanks! > > > [1] Emacs 23 using DejaVu Sans Mono with enabled font backend: > > http://www.informatik.uni-bremen.de/~iblender/emacs/emacs-23.png > > [2] Emacs 23 with no customizations, i.e. default: > > http://www.informatik.uni-bremen.de/~iblender/emacs/emacs-23-default.png > > [3] Emacs 22: > > http://www.informatik.uni-bremen.de/~iblender/emacs/emacs-22.png > > Please move cursor on a Cyrillic character, type C-u C-x =, > and check which font is used for displaying it for the above > cases. > > And, how did you specify "Dejavu Sans Mono" in case [1]? > > --- > Kenichi Handa > handa@m17n.org