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: Thu, 21 Nov 2002 12:30:14 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200211201154.UAA28272@etlken.m17n.org> <200211202122.gAKLMqd23185@rum.cs.yale.edu> 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 1037878467 9772 80.91.224.249 (21 Nov 2002 11:34:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2002 11:34:27 +0000 (UTC) Cc: Kenichi Handa , 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 18EpbF-0002XL-00 for ; Thu, 21 Nov 2002 12:34:25 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18Epet-0000Xb-00 for ; Thu, 21 Nov 2002 12:38:12 +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 18EpZK-0006AB-00; Thu, 21 Nov 2002 06:32:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18EpYZ-0005Pf-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 06:31:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18EpYT-0005Fm-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 06:31:38 -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 18EpXH-0004q8-00 for emacs-devel@gnu.org; Thu, 21 Nov 2002 06:30:19 -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 gALBUF5h014679 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 21 Nov 2002 12:30:16 +0100 Original-To: "Stefan Monnier" Mail-Copies-To: nobody X-Hashcash: 0:021121:monnier@rum.cs.yale.edu:1fc44132bca476c4 X-Hashcash: 0:021121:handa@m17n.org:a6849fd1a789743b X-Hashcash: 0:021121:emacs-devel@gnu.org:38ededcbe8aea3ca In-Reply-To: <200211202122.gAKLMqd23185@rum.cs.yale.edu> ("Stefan Monnier"'s message of "Wed, 20 Nov 2002 16:22:52 -0500") 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 gALBUF5h014679 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:9594 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9594 "Stefan Monnier" 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? >>=20 >> 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? > > Yes. And I recommend the utf-8 cookie if it's an option. OK. Is it ok to install the patch below? I didn't find the Ch ligature so I left it in a comment. --- morse.el.~1.4.~ 2001-07-16 11:10:19.000000000 +0200 +++ morse.el 2002-11-21 12:22:47.000000000 +0100 @@ -1,4 +1,4 @@ -;;; morse.el --- convert text to morse code and back +;;; morse.el --- convert text to morse code and back -*- cod= ing: utf-8 -*- =20 ;; Copyright (C) 1995 Free Software Foundation, Inc. =20 @@ -76,7 +76,17 @@ ("6" . "-....") ("7" . "--...") ("8" . "---..") - ("9" . "----.")) + ("9" . "----.") + ;; Non-ASCII + ("=C4" . ".-.-") + ("=C1" . ".--.-") + ("=C5" . ".--.-") + ;; ligature character?? ("Ch" . "----") + ("=DF" . ".../...") + ("=C9" . "..-..") + ("=D1" . "--.--") + ("=D6" . "---.") + ("=DC" . "..--")) "Morse code character set.") =20 ;;;###autoload