unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: Ascii character typeing
Date: Wed, 19 Jul 2006 22:20:03 +0200	[thread overview]
Message-ID: <87ac75mjnw.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: uirlt2wfh.fsf@rkspeed-rugby.dk

Brian Elmegaard <brian@rkspeed-rugby.dk> writes:

> Pascal Bourguignon <pjb@informatimago.com> writes:
>
>> % ascii -e -d -n
>
> Is this a unix shell?

Yes, it's a unix command.  A custom one.  The standard thing is:
  
   man ascii

But it only gives ascii, while my command displays also non-ascii
characters.

Since we're in gnu.emacs.help, you should rather use an emacs
function.  For example:

(defun ascii ()
  (interactive)
  (loop
     for i from 0 to 255
     do (when (zerop (mod i 8)) (insert "\n"))
        (insert (format " %3d %c  " i i))))

Then you can type M-x ascii RET
in any buffer to see the ISO-8859-1 characters.

(This is not the codes you have  to type with C-q, these depend on the
language environment selected, and if  the coding system of the buffer
doesn't include the iso-8859-1 character, you'll be asked to change it
when you save the buffer).

It's possible to convert to and from coding systems in emacs, but I
don't know the exact functions to use.  I usually do these things with
clisp.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
You never feed me.
Perhaps I'll sleep on your face.
That will sure show you.

  reply	other threads:[~2006-07-19 20:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18 10:04 Ascii character typeing Sonu
2006-07-18 11:40 ` Pascal Bourguignon
2006-07-18 12:23 ` Mathias Dahl
2006-07-19  9:19   ` Brian Elmegaard
2006-07-19 14:00     ` Pascal Bourguignon
2006-07-19 20:04       ` Brian Elmegaard
2006-07-19 20:20         ` Pascal Bourguignon [this message]
2006-07-19 21:01           ` Brian Elmegaard
2006-07-21 21:12             ` B. T. Raven
2006-07-21 21:58               ` Kevin Rodgers
2006-07-21 23:06               ` Pascal Bourguignon
     [not found]               ` <mailman.4342.1153642971.9609.help-gnu-emacs@gnu.org>
2006-07-23 13:45                 ` B. T. Raven
2006-08-01 11:17                   ` David Combs
2006-07-19 20:15     ` Peter Lee
2006-07-18 13:57 ` B. T. Raven
2006-07-18 21:48   ` Mark Geary
2006-07-19  0:54     ` B. T. Raven
2006-07-19  9:31       ` Brian Elmegaard

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=87ac75mjnw.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.com \
    /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.
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).