From: Kenichi Handa <handa@m17n.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: How are etc/*.map files used?
Date: Sat, 13 Aug 2011 16:13:49 +0900 [thread overview]
Message-ID: <tl7pqk9pyvm.fsf@m17n.org> (raw)
In-Reply-To: <83zkjex1ru.fsf@gnu.org> (message from Eli Zaretskii on Fri, 12 Aug 2011 15:17:09 +0300)
In article <83zkjex1ru.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:
> The file etc/charsets/README says nothing about the intended usage of
> the *.map files in there, it just tells how to generate those files.
> Are we using these files somehow, and if so, where?
They are used to define a charset as a :map argument of
define-charset.
> I bumped into an email today that used IBM037 charset, which I
> couldn't read until I manually made a coding-system-alias for it from
> EBCDIC (which isn't quite right). But etc/charsets/IBM037.map does
> exists, so it sounds like Emacs ought to support that encoding.
Perhaps I just forgot to define a charset from that map in
mule-conf.el.
You can define the charset and the corresponding
coding-system as this:
(define-charset 'ibm037 "IBM037"
:code-space [0 255]
:map "IBM037")
(define-coding-system 'ibm037 "IBM037"
:coding-type 'charset
:mnemonic ?? ;; You must find an appropriate mnemonic letter
:charset-list '(ibm037))
Then, for instance:
(encode-coding-string "012abc" 'ibm037) => "\360\361\362\201\202\203"
---
Kenichi Handa
handa@m17n.org
prev parent reply other threads:[~2011-08-13 7:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 12:17 How are etc/*.map files used? Eli Zaretskii
2011-08-12 13:08 ` Andreas Schwab
2011-08-12 15:05 ` Eli Zaretskii
2011-08-13 7:13 ` Kenichi Handa [this message]
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=tl7pqk9pyvm.fsf@m17n.org \
--to=handa@m17n.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.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).