unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: Eli Zaretskii <eliz@gnu.org>
Subject: codepage.el: Codepage Mapping, Latin-7
Date: Thu, 16 Mar 2006 15:35:57 +0100	[thread overview]
Message-ID: <v91wx2v4mq.fsf@marauder.physik.uni-ulm.de> (raw)

Hi,

from lisp/international/codepage.el:

--8<---------------cut here---------------start------------->8---
;; Support for the Windows 12xx series of codepages that MS has
;; butchered from the ISO-8859 specs. This does not add support for
;; the extended characters that MS has added in the 128 - 159 coding
;; range, only translates those characters that can be expressed in
;; the corresponding iso-8859 charset.

;; Codepage Mapping:
;;
;; Windows-1250: ISO-8859-2 (Central Europe) - differs in some positions
;; Windows-1251: ISO-8859-5 (Cyrillic)       - differs wildly
;; Windows-1252: ISO-8859-1 (West Europe)    - exact match
;; Windows-1253: ISO-8859-7 (Greek)          - differs in some positions
;; Windows-1254: ISO-8859-9 (Turkish)        - exact match
;; Windows-1255: ISO-8859-8 (Hebrew)         - exact match
;; Windows-1256: ISO-8859-6 (Arabic)         - half match
;; Windows-1257: ISO-8859-4 (Baltic)         - differs, future Latin-7
;; Windows-1258: VISCII (Vietnamese)         - Completely different
--8<---------------cut here---------------end--------------->8---

I think "exact match" is a little bit misleading, because
e.g. Windows-1252 is a superset of ISO-8859-1.  When reading the
comment on the "128 - 159 coding range" carefully it becomes more
clear the mapping table only refers to ISO-8859 code points.


BTW: The comment in `codepage.el' says that Latin-7 isn't official and
the it's not supported by Emacs.  This doesn't seem to be correct
anymore.

,----[ codepage.el ]
| ;; Since Latin-7 is not yet official, and Emacs does not support it,
| ;; provide translation between Windows-1257 and Latin-4 the best we
| ;; can.
`----

,----[ code-pages.el ]
| ;; used by lt_LT, lv_LV, mi_NZ
| ;;;###autoload(autoload-coding-system 'iso-8859-13 '(require 'code-pages))
| (cp-make-coding-system
|  iso-latin-7
| [...]
|  "Unicode-based encoding for Latin-7 (MIME: ISO-8859-13)"
|  ?l) ;; Lithuanian/Latvian
| (coding-system-put 'iso-latin-7 'mime-charset 'iso-8859-13)
| (define-coding-system-alias 'iso-8859-13 'iso-latin-7)
| (define-coding-system-alias 'latin-7 'iso-latin-7)
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

             reply	other threads:[~2006-03-16 14:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-16 14:35 Reiner Steib [this message]
2006-03-17 10:48 ` codepage.el: Codepage Mapping, Latin-7 Eli Zaretskii

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=v91wx2v4mq.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=eliz@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).