2001-07-16 12:23:00 +00:00
|
|
|
|
;;; european.el --- support for European languages -*- coding: iso-2022-7bit; -*-
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
2001-01-09 11:52:50 +00:00
|
|
|
|
;; Copyright (C) 1995, 1997, 2001 Electrotechnical Laboratory, JAPAN.
|
1997-06-22 08:57:18 +00:00
|
|
|
|
;; Licensed to the Free Software Foundation.
|
2002-05-14 10:21:06 +00:00
|
|
|
|
;; Copyright (C) 2001, 2002 Free Software Foundation, Inc.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;; Keywords: multilingual, European
|
|
|
|
|
|
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
;; any later version.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
1997-02-23 09:20:52 +00:00
|
|
|
|
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
|
|
|
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
|
;; Boston, MA 02111-1307, USA.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
2002-05-20 15:38:40 +00:00
|
|
|
|
;; For European scripts, character sets ISO8859-1,2,3,4,9,10,13,14,15,
|
|
|
|
|
;; windows-1250,2,4,7, mac-roman, adobe-standard-encoding, cp850 and
|
|
|
|
|
;; next are supported.
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
1997-05-31 07:10:20 +00:00
|
|
|
|
;; Latin-1 (ISO-8859-1)
|
1997-05-28 03:39:03 +00:00
|
|
|
|
|
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Latin-1" '((charset iso-8859-1)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(coding-system iso-latin-1)
|
|
|
|
|
(coding-priority iso-latin-1)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-1)
|
1998-07-09 04:53:28 +00:00
|
|
|
|
(unibyte-syntax . "latin-1")
|
1998-08-10 06:29:02 +00:00
|
|
|
|
(unibyte-display . iso-latin-1)
|
1998-08-18 00:56:48 +00:00
|
|
|
|
(input-method . "latin-1-prefix")
|
1997-05-31 07:10:20 +00:00
|
|
|
|
(sample-text
|
|
|
|
|
. "Hello, Hej, Tere, Hei, Bonjour, Gr,A|_(B Gott, Ciao, ,A!(BHola!")
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(documentation . "\
|
1999-10-14 09:53:01 +00:00
|
|
|
|
This language environment is a generic one for the Latin-1 (ISO-8859-1)
|
|
|
|
|
character set which supports the following European languages:
|
|
|
|
|
Albanian, Basque, Breton, Catalan, Danish, Dutch, English, Faeroese,
|
|
|
|
|
Finnish, French (with restrictions -- see Latin-9), Frisian, Galician,
|
|
|
|
|
German, Greenlandic, Icelandic, Irish Gaelic (new orthography),
|
|
|
|
|
Italian, Latin, Luxemburgish, Norwegian, Portuguese, Rhaeto-Romanic,
|
|
|
|
|
Scottish Gaelic, Spanish, and Swedish.
|
2001-01-16 23:49:14 +00:00
|
|
|
|
We also have specific language environments for the following languages:
|
|
|
|
|
For Dutch, \"Dutch\".
|
|
|
|
|
For German, \"German\".
|
|
|
|
|
For Spanish, \"Spanish\".
|
2001-11-18 03:56:19 +00:00
|
|
|
|
For French, \"French\".
|
1999-10-14 09:53:01 +00:00
|
|
|
|
|
|
|
|
|
Latin-1 also covers several written languages outside Europe, including
|
|
|
|
|
Indonesian/Malay, Tagalog (Philippines), Swahili and Afrikaans."))
|
1998-01-22 01:48:25 +00:00
|
|
|
|
'("European"))
|
|
|
|
|
|
1997-05-28 03:39:03 +00:00
|
|
|
|
|
1997-05-31 07:10:20 +00:00
|
|
|
|
;; Latin-2 (ISO-8859-2)
|
1997-05-28 03:39:03 +00:00
|
|
|
|
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(define-coding-system 'iso-latin-2
|
|
|
|
|
"ISO 2022 based 8-bit encoding for Latin-2 (MIME:ISO-8859-2)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?2
|
|
|
|
|
:charset-list '(iso-8859-2)
|
2002-05-14 10:21:06 +00:00
|
|
|
|
:mime-charset 'iso-8859-2)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-07-02 00:06:30 +00:00
|
|
|
|
(define-coding-system-alias 'iso-8859-2 'iso-latin-2)
|
1997-07-05 00:25:53 +00:00
|
|
|
|
(define-coding-system-alias 'latin-2 'iso-latin-2)
|
1997-06-10 01:08:21 +00:00
|
|
|
|
|
1997-05-28 03:39:03 +00:00
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Latin-2" '((charset iso-8859-2)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(coding-system iso-latin-2)
|
|
|
|
|
(coding-priority iso-latin-2)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-2)
|
1998-07-09 04:53:28 +00:00
|
|
|
|
(unibyte-syntax . "latin-2")
|
1998-08-10 06:29:02 +00:00
|
|
|
|
(unibyte-display . iso-latin-2)
|
1998-08-18 00:56:48 +00:00
|
|
|
|
(input-method . "latin-2-prefix")
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(documentation . "\
|
1999-10-14 09:53:01 +00:00
|
|
|
|
This language environment is a generic one for the Latin-2 (ISO-8859-2)
|
1998-08-27 07:47:15 +00:00
|
|
|
|
character set which supports the following languages:
|
1997-06-02 04:57:39 +00:00
|
|
|
|
Albanian, Czech, English, German, Hungarian, Polish, Romanian,
|
1997-11-08 03:08:10 +00:00
|
|
|
|
Serbo-Croatian or Croatian, Slovak, Slovene, Sorbian (upper and lower),
|
1998-08-27 07:47:15 +00:00
|
|
|
|
and Swedish.
|
|
|
|
|
We also have specific language environments for the following languages:
|
|
|
|
|
For Czech, \"Czech\".
|
|
|
|
|
For Romanian, \"Romanian\".
|
|
|
|
|
For Slovak, \"Slovak\"."))
|
1998-01-22 01:48:25 +00:00
|
|
|
|
'("European"))
|
|
|
|
|
|
1997-05-28 03:39:03 +00:00
|
|
|
|
|
1997-05-31 07:10:20 +00:00
|
|
|
|
;; Latin-3 (ISO-8859-3)
|
1997-05-28 03:39:03 +00:00
|
|
|
|
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(define-coding-system 'iso-latin-3
|
|
|
|
|
"ISO 2022 based 8-bit encoding for Latin-3 (MIME:ISO-8859-3)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?3
|
|
|
|
|
:charset-list '(iso-8859-3)
|
2002-05-14 10:21:06 +00:00
|
|
|
|
:mime-charset 'iso-8859-3)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-07-02 00:06:30 +00:00
|
|
|
|
(define-coding-system-alias 'iso-8859-3 'iso-latin-3)
|
1997-07-05 00:25:53 +00:00
|
|
|
|
(define-coding-system-alias 'latin-3 'iso-latin-3)
|
1997-06-10 01:08:21 +00:00
|
|
|
|
|
1997-05-28 03:39:03 +00:00
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Latin-3" '((charset iso-8859-3)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(coding-system iso-latin-3)
|
|
|
|
|
(coding-priority iso-latin-3)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-3)
|
1998-07-09 04:53:28 +00:00
|
|
|
|
(unibyte-syntax . "latin-3")
|
1998-08-10 06:29:02 +00:00
|
|
|
|
(unibyte-display . iso-latin-3)
|
1998-08-18 00:56:48 +00:00
|
|
|
|
(input-method . "latin-3-prefix")
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(documentation . "\
|
1997-06-02 04:57:39 +00:00
|
|
|
|
These languages are supported with the Latin-3 (ISO-8859-3) character set:
|
|
|
|
|
Afrikaans, Catalan, Dutch, English, Esperanto, French, Galician,
|
1998-01-22 01:48:25 +00:00
|
|
|
|
German, Italian, Maltese, Spanish, and Turkish."))
|
|
|
|
|
'("European"))
|
|
|
|
|
|
1997-05-28 03:39:03 +00:00
|
|
|
|
|
1997-05-31 07:10:20 +00:00
|
|
|
|
;; Latin-4 (ISO-8859-4)
|
1997-05-28 03:39:03 +00:00
|
|
|
|
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(define-coding-system 'iso-latin-4
|
|
|
|
|
"ISO 2022 based 8-bit encoding for Latin-4 (MIME:ISO-8859-4)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?4
|
|
|
|
|
:charset-list '(iso-8859-4)
|
2002-05-14 10:21:06 +00:00
|
|
|
|
:mime-charset 'iso-8859-4)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-07-02 00:06:30 +00:00
|
|
|
|
(define-coding-system-alias 'iso-8859-4 'iso-latin-4)
|
1997-07-05 00:25:53 +00:00
|
|
|
|
(define-coding-system-alias 'latin-4 'iso-latin-4)
|
1997-06-10 01:08:21 +00:00
|
|
|
|
|
1997-05-28 03:39:03 +00:00
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Latin-4" '((charset iso-8859-4)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(coding-system iso-8859-4)
|
|
|
|
|
(coding-priority iso-8859-4)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-4)
|
1998-07-09 04:53:28 +00:00
|
|
|
|
(unibyte-syntax . "latin-4")
|
1998-08-10 06:29:02 +00:00
|
|
|
|
(unibyte-display . iso-8859-4)
|
2001-03-19 14:22:14 +00:00
|
|
|
|
(input-method . "latin-4-postfix")
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(documentation . "\
|
1997-06-02 04:57:39 +00:00
|
|
|
|
These languages are supported with the Latin-4 (ISO-8859-4) character set:
|
|
|
|
|
Danish, English, Estonian, Finnish, German, Greenlandic, Lappish,
|
1998-01-22 01:48:25 +00:00
|
|
|
|
Latvian, Lithuanian, and Norwegian."))
|
|
|
|
|
'("European"))
|
|
|
|
|
|
1997-05-28 03:39:03 +00:00
|
|
|
|
|
1997-05-31 07:10:20 +00:00
|
|
|
|
;; Latin-5 (ISO-8859-9)
|
1997-05-28 03:39:03 +00:00
|
|
|
|
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(define-coding-system 'iso-latin-5
|
|
|
|
|
"ISO 2022 based 8-bit encoding for Latin-5 (MIME:ISO-8859-9)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?9
|
|
|
|
|
:charset-list '(iso-8859-9)
|
2002-05-14 10:21:06 +00:00
|
|
|
|
:mime-charset 'iso-8859-9)
|
1997-02-20 07:02:49 +00:00
|
|
|
|
|
1997-07-02 00:06:30 +00:00
|
|
|
|
(define-coding-system-alias 'iso-8859-9 'iso-latin-5)
|
1997-07-05 00:25:53 +00:00
|
|
|
|
(define-coding-system-alias 'latin-5 'iso-latin-5)
|
1997-06-10 01:08:21 +00:00
|
|
|
|
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Latin-5" '((charset iso-8859-9)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(coding-system iso-latin-5)
|
|
|
|
|
(coding-priority iso-latin-5)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-9)
|
1998-07-09 04:53:28 +00:00
|
|
|
|
(unibyte-syntax . "latin-5")
|
1998-08-10 06:29:02 +00:00
|
|
|
|
(unibyte-display . iso-latin-5)
|
2001-03-19 14:22:14 +00:00
|
|
|
|
(input-method . "latin-5-postfix")
|
2001-12-27 11:27:27 +00:00
|
|
|
|
(documentation . "Support for Turkish language."))
|
1999-10-14 09:53:01 +00:00
|
|
|
|
'("European"))
|
|
|
|
|
|
|
|
|
|
|
2002-05-20 15:38:40 +00:00
|
|
|
|
;; Latin-6 (ISO-8859-10)
|
|
|
|
|
|
|
|
|
|
(define-coding-system 'iso-latin-6
|
|
|
|
|
"ISO 2022 based 8-bit encoding for Latin-6 (MIME:ISO-8859-10)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?9
|
|
|
|
|
:charset-list '(iso-8859-10)
|
|
|
|
|
:mime-charset 'iso-8859-10)
|
|
|
|
|
|
|
|
|
|
(define-coding-system-alias 'iso-8859-10 'iso-latin-6)
|
|
|
|
|
(define-coding-system-alias 'latin-6 'iso-latin-6)
|
|
|
|
|
|
|
|
|
|
(set-language-info-alist
|
|
|
|
|
"Latin-6" '((charset iso-8859-10)
|
|
|
|
|
(coding-system iso-latin-6)
|
|
|
|
|
(coding-priority iso-latin-6)
|
|
|
|
|
(nonascii-translation . iso-8859-10)
|
|
|
|
|
(unibyte-syntax . "latin-6")
|
|
|
|
|
(unibyte-display . iso-latin-6)
|
|
|
|
|
;; Fixme: input method.
|
|
|
|
|
(documentation . "Support for generic Latin-6 (Northern European)."))
|
|
|
|
|
'("European"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; Latin-7 (ISO-8859-13)
|
|
|
|
|
|
|
|
|
|
(define-coding-system 'iso-latin-7
|
|
|
|
|
"ISO 2022 based 8-bit encoding for Latin-7 (MIME:ISO-8859-13)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?9
|
|
|
|
|
:charset-list '(iso-8859-13)
|
|
|
|
|
:mime-charset 'iso-8859-13)
|
|
|
|
|
|
|
|
|
|
(define-coding-system-alias 'iso-8859-13 'iso-latin-7)
|
|
|
|
|
(define-coding-system-alias 'latin-7 'iso-latin-7)
|
|
|
|
|
|
|
|
|
|
(set-language-info-alist
|
|
|
|
|
"Latin-7" '((charset iso-8859-13)
|
|
|
|
|
(coding-system iso-latin-7)
|
|
|
|
|
(coding-priority iso-latin-7)
|
|
|
|
|
(nonascii-translation . iso-8859-13)
|
|
|
|
|
(unibyte-syntax . "latin-7")
|
|
|
|
|
(unibyte-display . iso-latin-7)
|
|
|
|
|
;; Fixme: input method.
|
|
|
|
|
(documentation . "Support for generic Latin-7 (Baltic Rim)."))
|
|
|
|
|
'("European"))
|
|
|
|
|
|
1999-10-14 09:53:01 +00:00
|
|
|
|
;; Latin-8 (ISO-8859-14)
|
|
|
|
|
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(define-coding-system 'iso-latin-8
|
|
|
|
|
"ISO 2022 based 8-bit encoding for Latin-8 (MIME:ISO-8859-14)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
;; `W' for `Welsh', since `C' for `Celtic' is taken.
|
|
|
|
|
:mnemonic ?W
|
|
|
|
|
:charset-list '(iso-8859-14)
|
2002-05-14 10:21:06 +00:00
|
|
|
|
:mime-charset 'iso-8859-14)
|
1999-10-14 09:53:01 +00:00
|
|
|
|
|
|
|
|
|
(define-coding-system-alias 'iso-8859-14 'iso-latin-8)
|
|
|
|
|
(define-coding-system-alias 'latin-8 'iso-latin-8)
|
|
|
|
|
|
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Latin-8" '((charset iso-8859-14)
|
1999-10-14 09:53:01 +00:00
|
|
|
|
(coding-system iso-latin-8)
|
|
|
|
|
(coding-priority iso-latin-8)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-14)
|
1999-10-14 09:53:01 +00:00
|
|
|
|
(unibyte-syntax . "latin-8")
|
|
|
|
|
(unibyte-display . iso-latin-8)
|
2000-08-24 13:19:19 +00:00
|
|
|
|
(input-method . "latin-8-prefix")
|
|
|
|
|
;; Fixme: Welsh/Ga{e}lic greetings
|
|
|
|
|
(sample-text . ",_"(B ,_p(B ,_^(B")
|
1999-10-14 09:53:01 +00:00
|
|
|
|
(documentation . "\
|
|
|
|
|
This language environment is a generic one for the Latin-8 (ISO-8859-14)
|
2000-08-24 13:19:19 +00:00
|
|
|
|
character set which supports the Celtic languages, including those not
|
2001-12-18 17:51:50 +00:00
|
|
|
|
covered by other ISO-8859 character sets:
|
|
|
|
|
Welsh, Manx Gaelic and Irish Gaelic (old orthography)."))
|
1998-01-22 01:48:25 +00:00
|
|
|
|
'("European"))
|
1999-10-14 09:53:01 +00:00
|
|
|
|
|
|
|
|
|
;; Latin-9 (ISO-8859-15)
|
|
|
|
|
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(define-coding-system 'iso-latin-9
|
|
|
|
|
"ISO 2022 based 8-bit encoding for Latin-9 (MIME:ISO-8859-15)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
;; `0' for `Latin-0'
|
|
|
|
|
:mnemonic ?0
|
|
|
|
|
:charset-list '(iso-8859-15)
|
2002-05-14 10:21:06 +00:00
|
|
|
|
:mime-charset 'iso-8859-15)
|
1999-10-14 09:53:01 +00:00
|
|
|
|
|
|
|
|
|
(define-coding-system-alias 'iso-8859-15 'iso-latin-9)
|
|
|
|
|
(define-coding-system-alias 'latin-9 'iso-latin-9)
|
|
|
|
|
(define-coding-system-alias 'latin-0 'iso-latin-9)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
|
1999-10-14 09:53:01 +00:00
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Latin-9" '((charset iso-8859-15)
|
1999-10-14 09:53:01 +00:00
|
|
|
|
(coding-system iso-latin-9)
|
|
|
|
|
(coding-priority iso-latin-9)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-15)
|
1999-10-14 09:53:01 +00:00
|
|
|
|
(unibyte-syntax . "latin-9")
|
|
|
|
|
(unibyte-display . iso-latin-9)
|
2000-08-24 13:19:19 +00:00
|
|
|
|
(input-method . "latin-9-prefix")
|
1999-10-14 09:53:01 +00:00
|
|
|
|
(sample-text
|
2002-05-14 10:21:06 +00:00
|
|
|
|
. "AVE. ,B)9.>,b<=,_/(B ,b$(B")
|
1999-10-14 09:53:01 +00:00
|
|
|
|
(documentation . "\
|
|
|
|
|
This language environment is a generic one for the Latin-9 (ISO-8859-15)
|
|
|
|
|
character set which supports the same languages as Latin-1 with the
|
|
|
|
|
addition of the Euro sign and some additional French and Finnish letters.
|
|
|
|
|
Latin-9 is sometimes nicknamed `Latin-0'."))
|
|
|
|
|
'("European"))
|
1998-01-22 01:48:25 +00:00
|
|
|
|
|
2002-05-17 20:16:14 +00:00
|
|
|
|
(define-coding-system 'iso-latin-7
|
|
|
|
|
"ISO 2022 based 8-bit encoding for Latin-7 (MIME:ISO-8859-13)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
;; `0' for `Latin-0'
|
|
|
|
|
:mnemonic ?*
|
|
|
|
|
:charset-list '(iso-8859-13)
|
|
|
|
|
:mime-charset 'iso-8859-13)
|
|
|
|
|
|
|
|
|
|
(define-coding-system-alias 'iso-8859-13 'iso-latin-7)
|
|
|
|
|
(define-coding-system-alias 'latin-7 'iso-latin-7)
|
|
|
|
|
|
|
|
|
|
(define-coding-system 'windows-1250
|
|
|
|
|
"windows-1250 (Central European) encoding (MIME: WINDOWS-1250)"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?*
|
|
|
|
|
:charset-list '(windows-1250)
|
|
|
|
|
:mime-charset 'windows-1250)
|
|
|
|
|
(define-coding-system-alias 'cp1250 'windows-1250)
|
|
|
|
|
|
2002-05-16 19:11:24 +00:00
|
|
|
|
(define-coding-system 'windows-1252
|
2002-05-17 20:16:14 +00:00
|
|
|
|
"windows-1252 (Western European) encoding (MIME: WINDOWS-1252)"
|
2002-05-16 19:11:24 +00:00
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?*
|
|
|
|
|
:charset-list '(windows-1252)
|
|
|
|
|
:mime-charset 'windows-1252)
|
|
|
|
|
(define-coding-system-alias 'cp1252 'windows-1252)
|
2002-05-17 20:16:14 +00:00
|
|
|
|
|
|
|
|
|
(define-coding-system 'windows-1254
|
|
|
|
|
"windows-1254 (Turkish) encoding (MIME: WINDOWS-1254)"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?*
|
|
|
|
|
:charset-list '(windows-1254)
|
|
|
|
|
:mime-charset 'windows-1254)
|
|
|
|
|
(define-coding-system-alias 'cp1254 'windows-1254)
|
|
|
|
|
|
|
|
|
|
(define-coding-system 'windows-1257
|
|
|
|
|
"windows-1257 (Baltic) encoding (MIME: WINDOWS-1257)"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?*
|
|
|
|
|
:charset-list '(windows-1257)
|
|
|
|
|
:mime-charset 'windows-1257)
|
|
|
|
|
(define-coding-system-alias 'cp1257 'windows-1257)
|
2002-05-20 15:38:40 +00:00
|
|
|
|
|
|
|
|
|
(define-coding-system 'cp850
|
|
|
|
|
"DOS codepage 850 (Western European)"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?D
|
|
|
|
|
:charset-list '(cp850)
|
|
|
|
|
:mime-charset 'cp850)
|
|
|
|
|
(define-coding-system-alias 'ibm850 'cp850)
|
2002-05-16 19:11:24 +00:00
|
|
|
|
|
1997-02-20 07:02:49 +00:00
|
|
|
|
(set-language-info-alist
|
1998-08-10 06:29:02 +00:00
|
|
|
|
"German" '((tutorial . "TUTORIAL.de")
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(charset iso-8859-1)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(coding-system iso-latin-1)
|
|
|
|
|
(coding-priority iso-latin-1)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-1)
|
1998-08-18 00:56:48 +00:00
|
|
|
|
(input-method . "german-postfix")
|
1998-07-09 04:53:28 +00:00
|
|
|
|
(unibyte-syntax . "latin-1")
|
1998-08-10 06:29:02 +00:00
|
|
|
|
(unibyte-display . iso-latin-1)
|
1998-01-22 01:48:25 +00:00
|
|
|
|
(sample-text . "\
|
|
|
|
|
German (Deutsch Nord) Guten Tag
|
|
|
|
|
German (Deutsch S,A|(Bd) Gr,A|_(B Gott")
|
|
|
|
|
(documentation . "\
|
|
|
|
|
This language environment is almost the same as Latin-1,
|
2001-12-19 22:00:17 +00:00
|
|
|
|
but sets the default input method to \"german-postfix\".
|
|
|
|
|
Additionally, it selects the German tutorial."))
|
1998-01-22 01:48:25 +00:00
|
|
|
|
'("European"))
|
1997-04-05 02:45:30 +00:00
|
|
|
|
|
2001-11-17 14:37:32 +00:00
|
|
|
|
(set-language-info-alist
|
|
|
|
|
"French" '((tutorial . "TUTORIAL.fr")
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(charset iso-8859-1)
|
2001-11-17 14:37:32 +00:00
|
|
|
|
(coding-system iso-latin-1)
|
|
|
|
|
(coding-priority iso-latin-1)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-1)
|
2001-11-17 14:37:32 +00:00
|
|
|
|
(unibyte-syntax . "latin-1")
|
|
|
|
|
(unibyte-display . iso-latin-1)
|
|
|
|
|
(input-method . "latin-1-prefix")
|
|
|
|
|
(sample-text . "French (Fran,Ag(Bais) Bonjour, Salut")
|
|
|
|
|
(documentation . "\
|
|
|
|
|
This language environment is almost the same as Latin-1,
|
2001-12-19 22:00:17 +00:00
|
|
|
|
but it selects the French tutorial."))
|
2001-11-17 14:37:32 +00:00
|
|
|
|
'("European"))
|
|
|
|
|
|
1999-02-06 05:50:59 +00:00
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Slovenian" '((charset iso-8859-2)
|
1999-02-06 05:50:59 +00:00
|
|
|
|
(coding-system . (iso-8859-2))
|
|
|
|
|
(coding-priority . (iso-8859-2))
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-2)
|
1999-02-06 05:50:59 +00:00
|
|
|
|
(input-method . "latin-2-postfix")
|
|
|
|
|
(unibyte-syntax . "latin-2")
|
|
|
|
|
(unibyte-display . iso-8859-2)
|
|
|
|
|
(tutorial . "TUTORIAL.sl")
|
|
|
|
|
(sample-text . ",B.(Belimo vam uspe,B9(Ben dan!")
|
|
|
|
|
(documentation . t))
|
|
|
|
|
'("European"))
|
|
|
|
|
|
2001-01-09 11:52:50 +00:00
|
|
|
|
(set-language-info-alist
|
|
|
|
|
"Spanish" '((tutorial . "TUTORIAL.es")
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(charset iso-8859-1)
|
2001-01-09 11:52:50 +00:00
|
|
|
|
(coding-system iso-latin-1)
|
|
|
|
|
(coding-priority iso-latin-1)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-1)
|
2001-01-09 11:52:50 +00:00
|
|
|
|
(input-method . "spanish-postfix")
|
|
|
|
|
(unibyte-syntax . "latin-1")
|
|
|
|
|
(unibyte-display . iso-latin-1)
|
|
|
|
|
(sample-text . "Spanish (Espa,Aq(Bol) ,A!(BHola!")
|
|
|
|
|
(documentation . "\
|
|
|
|
|
This language environment is almost the same as Latin-1,
|
2001-12-19 22:00:17 +00:00
|
|
|
|
but it sets the default input method to \"spanish-postfix\",
|
2001-11-16 12:05:48 +00:00
|
|
|
|
and it selects the Spanish tutorial."))
|
2001-01-09 11:52:50 +00:00
|
|
|
|
'("European"))
|
|
|
|
|
|
|
|
|
|
(set-language-info-alist
|
|
|
|
|
"Dutch" '((tutorial . "TUTORIAL.nl")
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(charset iso-8859-1)
|
2001-01-09 11:52:50 +00:00
|
|
|
|
(coding-system iso-latin-1)
|
|
|
|
|
(coding-priority iso-latin-1)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-1)
|
2001-01-09 11:52:50 +00:00
|
|
|
|
(unibyte-syntax . "latin-1")
|
|
|
|
|
(unibyte-display . iso-latin-1)
|
|
|
|
|
(sample-text . "Er is een aantal manieren waarop je dit kan doen")
|
|
|
|
|
(documentation . "\
|
|
|
|
|
This language environment is almost the same as Latin-1,
|
2001-12-19 22:00:17 +00:00
|
|
|
|
but it selects the Dutch tutorial."))
|
2001-01-09 11:52:50 +00:00
|
|
|
|
'("European"))
|
|
|
|
|
|
1999-09-20 02:08:36 +00:00
|
|
|
|
;; For Turkish, the character set ISO-8859-9 (Latin-5) is used. But,
|
|
|
|
|
;; before the introduction of ISO-8859-9 in 1988, ISO-8859-3 (Latin-3)
|
|
|
|
|
;; was used for Turkish. Those who use Latin-3 for Turkish should use
|
|
|
|
|
;; "Latin-3" language environment.
|
|
|
|
|
|
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Turkish" '((charset iso-8859-9)
|
1999-09-20 02:08:36 +00:00
|
|
|
|
(coding-system iso-latin-5)
|
|
|
|
|
(coding-priority iso-latin-5)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-9)
|
1999-09-20 02:08:36 +00:00
|
|
|
|
(unibyte-syntax . "latin-5")
|
|
|
|
|
(unibyte-display . iso-latin-5)
|
|
|
|
|
(input-method . "turkish-postfix")
|
2002-05-14 10:21:06 +00:00
|
|
|
|
(sample-text . "Turkish (T,A|(Brk,Ag(Be) Merhaba")
|
1999-09-20 02:08:36 +00:00
|
|
|
|
(documentation . t)))
|
|
|
|
|
|
2000-03-31 01:11:51 +00:00
|
|
|
|
;; Polish ISO 8859-2 environment.
|
|
|
|
|
;; Maintainer: Wlodek Bzyl <matwb@univ.gda.pl>
|
|
|
|
|
;; Keywords: multilingual, Polish
|
|
|
|
|
|
|
|
|
|
(set-language-info-alist
|
2002-03-01 02:28:29 +00:00
|
|
|
|
"Polish" '((charset . (iso-8859-2))
|
2000-03-31 01:11:51 +00:00
|
|
|
|
(coding-system . (iso-8859-2))
|
|
|
|
|
(coding-priority . (iso-8859-2))
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-2)
|
2000-03-31 01:11:51 +00:00
|
|
|
|
(input-method . "polish-slash")
|
|
|
|
|
(unibyte-syntax . "latin-2")
|
|
|
|
|
(unibyte-display . iso-8859-2)
|
|
|
|
|
(tutorial . "TUTORIAL.pl")
|
2002-05-14 10:21:06 +00:00
|
|
|
|
(sample-text . "P,As(Bjd,B<(B, ki,Bq(B-,B?(Be t,Bj(B chmurno,B6f(B w g,B31(Bb flaszy")
|
2000-03-31 01:11:51 +00:00
|
|
|
|
(documentation . t))
|
|
|
|
|
'("European"))
|
|
|
|
|
|
2001-12-15 17:43:05 +00:00
|
|
|
|
(set-language-info-alist
|
|
|
|
|
"Welsh" `((coding-system utf-8 latin-8) ; the input method is Unicode-based
|
|
|
|
|
(coding-priority utf-8 latin-8)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-14)
|
2001-12-15 17:43:05 +00:00
|
|
|
|
(input-method . "welsh")
|
|
|
|
|
(documentation . "Support for Welsh, using Unicode."))
|
|
|
|
|
'("European"))
|
|
|
|
|
|
|
|
|
|
(set-language-info-alist
|
|
|
|
|
"Latin-7" `((coding-system latin-7)
|
|
|
|
|
(coding-priority latin-7)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-13)
|
2001-12-15 17:43:05 +00:00
|
|
|
|
;; Fixme: input-method
|
|
|
|
|
(documentation . "Support for Latin-7, e.g. Latvian, Lithuanian."))
|
|
|
|
|
'("European"))
|
|
|
|
|
|
|
|
|
|
(set-language-info-alist
|
|
|
|
|
"Lithuanian" `((coding-system latin-7)
|
|
|
|
|
(coding-priority latin-7)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-13)
|
2001-12-15 17:43:05 +00:00
|
|
|
|
(input-method . "lithuanian-keyboard")
|
|
|
|
|
(documentation . "Support for Lithuanian."))
|
|
|
|
|
'("European"))
|
|
|
|
|
|
|
|
|
|
(set-language-info-alist
|
|
|
|
|
"Latvian" `((coding-system latin-7)
|
|
|
|
|
(coding-priority latin-7)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(nonascii-translation . iso-8859-13)
|
2001-12-15 17:43:05 +00:00
|
|
|
|
(input-method . "latvian-keyboard")
|
|
|
|
|
(documentation . "Support for Latvian."))
|
|
|
|
|
'("European"))
|
2002-03-01 02:28:29 +00:00
|
|
|
|
|
2000-10-30 01:37:20 +00:00
|
|
|
|
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(define-coding-system 'mac-roman
|
|
|
|
|
"Mac Roman Encoding (MIME:MACINTOSH)."
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?M
|
|
|
|
|
:charset-list '(mac-roman)
|
|
|
|
|
:mime-charset 'macintosh)
|
2000-10-30 01:37:20 +00:00
|
|
|
|
|
2002-05-17 20:16:14 +00:00
|
|
|
|
(define-coding-system 'next
|
|
|
|
|
"NeXTstep encoding"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?*
|
|
|
|
|
:charset-list '(next)
|
|
|
|
|
:mime-charset 'next)
|
2002-05-20 15:38:40 +00:00
|
|
|
|
|
|
|
|
|
(define-coding-system 'hp-roman8
|
|
|
|
|
"Hewlet-Packard roman-8 encoding (MIME:ROMAN-8)"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?*
|
|
|
|
|
:charset-list '(hp-roman8)
|
|
|
|
|
:mime-charset 'hp-roman8)
|
|
|
|
|
(define-coding-system-alias 'roman8 'hp-roman8)
|
|
|
|
|
|
|
|
|
|
(define-coding-system 'adobe-standard-encoding
|
|
|
|
|
"Adobe `standard' encoding for PostScript"
|
|
|
|
|
:coding-type 'charset
|
|
|
|
|
:mnemonic ?*
|
2002-05-20 19:10:17 +00:00
|
|
|
|
:charset-list '(adobe-standard-encoding)
|
|
|
|
|
:mime-charset 'adobe-standard-encoding)
|
2002-05-17 20:16:14 +00:00
|
|
|
|
|
2001-12-07 14:49:08 +00:00
|
|
|
|
(defconst diacritic-composition-pattern "\\C^\\c^+")
|
|
|
|
|
|
|
|
|
|
(defun diacritic-compose-region (beg end)
|
|
|
|
|
"Compose diacritic characters in the region.
|
|
|
|
|
When called from a program, expects two arguments,
|
|
|
|
|
positions (integers or markers) specifying the region."
|
|
|
|
|
(interactive "r")
|
|
|
|
|
(save-restriction
|
|
|
|
|
(narrow-to-region beg end)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward diacritic-composition-pattern nil t)
|
|
|
|
|
(compose-region (match-beginning 0) (match-end 0)))))
|
|
|
|
|
|
|
|
|
|
(defun diacritic-compose-string (string)
|
|
|
|
|
"Compose diacritic characters in STRING and return the resulting string."
|
|
|
|
|
(let ((idx 0))
|
|
|
|
|
(while (setq idx (string-match diacritic-composition-pattern string idx))
|
|
|
|
|
(compose-string string idx (match-end 0))
|
|
|
|
|
(setq idx (match-end 0))))
|
|
|
|
|
string)
|
|
|
|
|
|
|
|
|
|
(defun diacritic-compose-buffer ()
|
|
|
|
|
"Compose diacritic characters in the current buffer."
|
|
|
|
|
(interactive)
|
|
|
|
|
(diacritic-compose-region (point-min) (point-max)))
|
|
|
|
|
|
|
|
|
|
(defun diacritic-post-read-conversion (len)
|
|
|
|
|
(diacritic-compose-region (point) (+ (point) len))
|
|
|
|
|
len)
|
|
|
|
|
|
|
|
|
|
(defun diacritic-composition-function (from to pattern &optional string)
|
|
|
|
|
"Compose diacritic text in the region FROM and TO.
|
|
|
|
|
The text matches the regular expression PATTERN.
|
|
|
|
|
Optional 4th argument STRING, if non-nil, is a string containing text
|
|
|
|
|
to compose.
|
|
|
|
|
|
|
|
|
|
The return value is number of composed characters."
|
|
|
|
|
(if (< (1+ from) to)
|
|
|
|
|
(prog1 (- to from)
|
|
|
|
|
(if string
|
|
|
|
|
(compose-string string from to)
|
|
|
|
|
(compose-region from to))
|
|
|
|
|
(- to from))))
|
|
|
|
|
|
|
|
|
|
;; Register a function to compose Unicode diacrtics and marks.
|
2001-12-12 12:35:36 +00:00
|
|
|
|
(let ((patterns '(("\\C^\\c^+" . diacritic-composition-function))))
|
2001-12-07 14:49:08 +00:00
|
|
|
|
(let ((c #x300))
|
|
|
|
|
(while (<= c #x362)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(aset composition-function-table (decode-char 'unicode c) patterns)
|
2001-12-07 14:49:08 +00:00
|
|
|
|
(setq c (1+ c)))
|
|
|
|
|
(setq c #x20d0)
|
|
|
|
|
(while (<= c #x20e3)
|
2002-03-01 02:28:29 +00:00
|
|
|
|
(aset composition-function-table (decode-char 'unicode c) patterns)
|
2001-12-07 14:49:08 +00:00
|
|
|
|
(setq c (1+ c)))))
|
|
|
|
|
|
2000-08-24 13:19:19 +00:00
|
|
|
|
(provide 'european)
|
|
|
|
|
|
1997-02-20 07:02:49 +00:00
|
|
|
|
;;; european.el ends here
|