From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add non-ASCII characters to morse.el Date: Wed, 20 Nov 2002 20:33:35 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200211201154.UAA28272@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1037820995 31998 80.91.224.249 (20 Nov 2002 19:36:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2002 19:36:35 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18EaeF-0008Jj-00 for ; Wed, 20 Nov 2002 20:36:31 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18EahZ-0000UO-00 for ; Wed, 20 Nov 2002 20:39:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Eac4-0004Kf-00; Wed, 20 Nov 2002 14:34:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18Eabg-0003rB-00 for emacs-devel@gnu.org; Wed, 20 Nov 2002 14:33:52 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18EabU-0003Dx-00 for emacs-devel@gnu.org; Wed, 20 Nov 2002 14:33:47 -0500 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EabT-00038c-00 for emacs-devel@gnu.org; Wed, 20 Nov 2002 14:33:39 -0500 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.6/8.12.6) with ESMTP id gAKJXZ5h004002 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Nov 2002 20:33:36 +0100 Original-To: Kenichi Handa Mail-Copies-To: nobody X-Hashcash: 0:021120:handa@m17n.org:966f2eac29202ab9 X-Hashcash: 0:021120:emacs-devel@gnu.org:70297a0b58a84a0f In-Reply-To: <200211201154.UAA28272@etlken.m17n.org> (Kenichi Handa's message of "Wed, 20 Nov 2002 20:54:05 +0900 (JST)") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) X-MIME-Autoconverted: from 8bit to quoted-printable by yxa.extundo.com id gAKJXZ5h004002 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9571 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9571 Kenichi Handa writes: > In article , Simon Josefsson writes: >> Is there a better way to represent non-ASCII in elisp? > > What do you mean? Some way other than Lisp string? Yes. The coding system used by *.el doesn't seem fixed, so if I add a morse sequence for the euro sign by storing the euro sign literally, someone else opening the file might read it as a Latin-1 currency symbol -- and emacs treat the two characters as distinct. Should I add a charset cookie to the file perhaps? >> If anyone has a better source of non-ASCII morse >> characters, it might be useful as well. Unfortunately, I >> think morse has been dropped as an official language, so a >> canonical source might be difficult to find. > > This page shows Japanese version of morse. But, perhaps, > it conflicts with English morse. > They do conflict. Interesting. Is there a universal morse prefix for language tagging morse code? Can we use emacs internal charset guessing algorithm for deciding which morse language to use? Perhaps this is too complicated for a toy package. Unless someone wants to work on it, I think we should only add non-conflicting characters. (One character missing in my patch was .../... for =DF.) >> 2002-11-20 Simon Josefsson > >> * play/morse.el (morse-code): Add non-ASCII characters, according >> to table at http://www.soton.ac.uk/~scp93ch/morse/. > [...] >> + ("Ch" . "----") > > It seems that this entry doesn't work because mouse-region > checks characters one by one. Thanks. I think it is supposed to be only one character (a ligature?), but I don't know how to produce it.