From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Eichwalder Newsgroups: gmane.emacs.devel Subject: Re: cut-and-paste german quotes Date: Thu, 19 Aug 2004 17:16:25 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200404290244.LAA27861@etlken.m17n.org> <200408091242.VAA10174@etlken.m17n.org> <200408191122.UAA04786@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092928352 18510 80.91.224.253 (19 Aug 2004 15:12:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Aug 2004 15:12:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 19 17:12:21 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BxoaT-0003Ip-00 for ; Thu, 19 Aug 2004 17:12:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bxoej-0006LU-NK for ged-emacs-devel@m.gmane.org; Thu, 19 Aug 2004 11:16:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bxoec-0006LA-5v for emacs-devel@gnu.org; Thu, 19 Aug 2004 11:16:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bxoea-0006Ke-04 for emacs-devel@gnu.org; Thu, 19 Aug 2004 11:16:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxoeZ-0006KG-Jn for emacs-devel@gnu.org; Thu, 19 Aug 2004 11:16:35 -0400 Original-Received: from [193.175.24.41] (helo=elvis.franken.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BxoZr-0006xg-PU for emacs-devel@gnu.org; Thu, 19 Aug 2004 11:11:44 -0400 Original-Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1BxoZm-0000wr-00; Thu, 19 Aug 2004 17:11:38 +0200 Original-Received: by tux.gnu.franken.de (Postfix, from userid 270) id F006EE1CF9; Thu, 19 Aug 2004 17:16:25 +0200 (CEST) Original-To: Kenichi Handa In-Reply-To: <200408191122.UAA04786@etlken.m17n.org> (Kenichi Handa's message of "Thu, 19 Aug 2004 20:22:53 +0900 (JST)") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26316 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26316 Kenichi Handa writes: > Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 > > What is yours? I suspect that your mozilla doesn't use > UTF8_STRING somehow. It looks the like. Mine is "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114" > (1) Force Emacs to request only UTF8_STRING on receiving > selection. > > (setq x-select-request-type 'UTF8_STRING) This way it work. I'm inclined to switch to this setting. > (2) Force compound-text-with-extensions to translate latin > characters in korean-ksc5601 to mule-unicode-0100-24ff. > > (coding-system-put > 'compound-text-with-extensions > 'translation-table-for-decode > (make-translation-table > (let ((row #x21) (row-to #x2F) > col char unicode map) > (while (<= row row-to) > (setq col #x21) > (while (<= col #x7E) > (setq char (make-char 'korean-ksc5601 row col) > unicode (encode-char char 'ucs)) > (if (and unicode (>= unicode #x80)) > (setq map (cons (cons char (decode-char 'ucs unicode)) map))) > (setq col (1+ col))) > (setq row (1+ row))) > map))) This also works even it I use it in combination with (setq x-select-request-type '(COMPOUND_TEXT UTF8_STRING TEXT STRING)) Thanks for your debugging hints; I hope you can make use of my testing. Karl -- | ,__o | _-\_<, http://www.gnu.franken.de/ke/ | (*)/'(*)