From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: multilingual text in frame Date: Tue, 21 Jan 2003 20:06:12 +0200 Organization: Mivtach-Simon Insurance agencies Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200301211806.h0LI6Chn025438@beta.mvs.co.il> References: <200301201544.h0KFiKIK012501@beta.mvs.co.il> <200301211146.UAA03942@etlken.m17n.org> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1043173607 18406 80.91.224.249 (21 Jan 2003 18:26:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2003 18:26:47 +0000 (UTC) Cc: p.lord@russet.org.uk Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18b36g-0004mR-00 for ; Tue, 21 Jan 2003 19:26:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18b380-0002Cz-03 for gnu-help-gnu-emacs@m.gmane.org; Tue, 21 Jan 2003 13:28:04 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18b2z5-0007d1-00 for help-gnu-emacs@gnu.org; Tue, 21 Jan 2003 13:18:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18b2pc-0004lV-00 for help-gnu-emacs@gnu.org; Tue, 21 Jan 2003 13:09:05 -0500 Original-Received: from unix.sw.co.il ([192.114.178.12] helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18b2nP-00043n-00 for help-gnu-emacs@gnu.org; Tue, 21 Jan 2003 13:06:47 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.11.6/8.11.6) with ESMTP id h0LI6Ih19044; Tue, 21 Jan 2003 20:06:19 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.12.5/8.12.5) with ESMTP id h0LI6Ged025547; Tue, 21 Jan 2003 20:06:16 +0200 Original-Received: (from ehud@localhost) by beta.mvs.co.il (8.12.5/8.12.5/Submit) id h0LI6Chn025438; Tue, 21 Jan 2003 20:06:12 +0200 X-Authentication-Warning: beta.mvs.co.il: ehud set sender to ehud@unix.mvs.co.il using -f Original-To: handa@m17n.org In-reply-to: <200301211146.UAA03942@etlken.m17n.org> (message from Kenichi Handa on Tue, 21 Jan 2003 20:46:43 +0900 (JST)) X-Mailer: Emacs 21.2.91.3 rmail (send-msg 1.108) Original-cc: eliz@is.elta.co.il Original-cc: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5835 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5835 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 21 Jan 2003 20:46:43 +0900 (JST), Kenichi Handa wrote: > > In article <200301201544.h0KFiKIK012501@beta.mvs.co.il>, "Ehud Karni" writes: > > I defined a function `multibyte-string-to-unibyte', it converts each > > character in the input string by using `multibyte-char-to-unibyte'. > > I think it should be a built-in (C) function. > > How is it different from string-make-unibyte? The `string-make-unibyte' takes the lower 8 bits, the `multibyte-string-to-unibyte' sets the value according to the current coding system. e.g. Hebrew Kof (0xc77 in MULE for iso-8859-8) will be 0x77 by `string-make-unibyte' and 0xF7 by my function. As Eli pointed out, my function works like `decode-coding-string' with the current coding system. Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ mailto:ehud@unix.mvs.co.il Better Safe Than Sorry -----BEGIN PGP SIGNATURE----- Comment: use http://www.keyserver.net/ to get my key (and others) iD8DBQE+LYwULFvTvpjqOY0RAv7kAJ9YxL01pGyykJ+uhgRFkzezfaH7YgCgi4u7 8ndn35BsVbasK3qwdtuknPo= =xrhQ -----END PGP SIGNATURE-----