From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Usage of standard-display-table in MSDOS Date: Thu, 26 Aug 2010 19:43:48 +0300 Message-ID: <83k4ndmiij.fsf@gnu.org> References: <8739u47evm.fsf@uwakimon.sk.tsukuba.ac.jp> <201008241113.o7OBDkUX011519@beta.mvs.co.il> <83aaocnec1.fsf@gnu.org> <201008251304.o7PD4uJu028868@beta.mvs.co.il> <83vd6ymumt.fsf@gnu.org> <201008261526.o7QFQD7e030387@beta.mvs.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1282841191 28187 80.91.229.12 (26 Aug 2010 16:46:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Aug 2010 16:46:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: ehud@unix.mvs.co.il Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 26 18:46:30 2010 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.69) (envelope-from ) id 1Oofau-00026T-Ck for ged-emacs-devel@m.gmane.org; Thu, 26 Aug 2010 18:46:29 +0200 Original-Received: from localhost ([127.0.0.1]:58550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oofar-0006tr-Iv for ged-emacs-devel@m.gmane.org; Thu, 26 Aug 2010 12:46:25 -0400 Original-Received: from [140.186.70.92] (port=53047 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OofWU-0002rc-6e for emacs-devel@gnu.org; Thu, 26 Aug 2010 12:42:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OofWN-0007pv-OD for emacs-devel@gnu.org; Thu, 26 Aug 2010 12:41:53 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:36670) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OofWN-0007pi-FC for emacs-devel@gnu.org; Thu, 26 Aug 2010 12:41:47 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L7R00M00Q8SYC00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 26 Aug 2010 19:41:42 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.186.164]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L7R00LBHQDFVRD0@a-mtaout20.012.net.il>; Thu, 26 Aug 2010 19:41:42 +0300 (IDT) In-reply-to: <201008261526.o7QFQD7e030387@beta.mvs.co.il> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:129262 Archived-At: > Date: Thu, 26 Aug 2010 18:26:13 +0300 > From: "Ehud Karni" > Cc: emacs-devel@gnu.org > > On Wed, 25 Aug 2010 21:09:46 Eli Zaretskii wrote: > > > > And why don't you just say "C-x RET t cp862 RET"? That's what you > > want -- to send cp862 codes to the terminal, right? > > No, I want Hebrew of any kind - DOS(CP862), UNIX (ISO-8862-8) and UTF > to appear in Hebrew on BOTH text terminals and X. Sorry, I don't understand: what do you mean by "Hebrew of any kind"? In Emacs 23 and later, there's only one kind of Hebrew: the Unicode kind. All the characters, including Hebrew, are internally represented as their Unicode codepoints. When Emacs visits a file encoded in cp862, it converts the encoded characters into their Unicode codepoints. What is delivered to the screen is either some encoding, like cp862 (in the case of a text terminal), or a glyph from some font (on GUI terminals). In both of these cases, Emacs translates the Unicode codepoints to either the corresponding cp862 etc. codes, or to the codes of the characters in the font used to display Hebrew. All that's needed for Emacs to DTRT is (a) that Emacs knows it is dealing with Hebrew characters, and (b) for text terminals only, that the terminal encoding is set up according to the encoding the terminal expects. Now, what am I missing to understand why you needed to use display tables? > In addition I want to use some of the graphic characters of the CP862 > set, again both in text terminal and in X. These graphic characters are part of Unicode as well (in the U+25XX block), and Emacs 23 knows how to encode them in cp862, or any other codepage that supports these characters. Try "C-x 8 RET 2525 RET" and see for yourself, it has a valid cp862 encoding.