unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: Kenichi Handa <handa@m17n.org>, emacs-devel@gnu.org
Subject: Re: [PATCH] Add non-ASCII characters to morse.el
Date: Thu, 21 Nov 2002 12:30:14 +0100	[thread overview]
Message-ID: <iluptszqhx5.fsf@latte.josefsson.org> (raw)
In-Reply-To: <200211202122.gAKLMqd23185@rum.cs.yale.edu> ("Stefan Monnier"'s message of "Wed, 20 Nov 2002 16:22:52 -0500")

"Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu> writes:

>> > In article <ilu8yzoscs8.fsf@latte.josefsson.org>, Simon Josefsson <jas@extundo.com> 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?
>
> 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             -*- coding: utf-8 -*-
 
 ;; Copyright (C) 1995 Free Software Foundation, Inc.
 
@@ -76,7 +76,17 @@
 		     ("6" . "-....")
 		     ("7" . "--...")
 		     ("8" . "---..")
-		     ("9" . "----."))
+		     ("9" . "----.")
+		     ;; Non-ASCII
+		     ("Ä" . ".-.-")
+		     ("Á" . ".--.-")
+		     ("Å" . ".--.-")
+		     ;; ligature character?? ("Ch" . "----")
+		     ("ß" . ".../...")
+		     ("É" . "..-..")
+		     ("Ñ" . "--.--")
+		     ("Ö" . "---.")
+		     ("Ü" . "..--"))
   "Morse code character set.")
 
 ;;;###autoload

  reply	other threads:[~2002-11-21 11:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-20 11:25 [PATCH] Add non-ASCII characters to morse.el Simon Josefsson
2002-11-20 11:54 ` Kenichi Handa
2002-11-20 19:33   ` Simon Josefsson
2002-11-20 21:22     ` Stefan Monnier
2002-11-21 11:30       ` Simon Josefsson [this message]
2002-11-22 16:11         ` Karl Eichwalder
2002-11-22 17:00           ` Simon Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iluptszqhx5.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).