]> code.delx.au - gnu-emacs/blob - lisp/language/hebrew.el
*** empty log message ***
[gnu-emacs] / lisp / language / hebrew.el
1 ;;; hebrew.el --- support for Hebrew -*- coding: iso-2022-7bit; -*-
2
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
5 ;; Copyright (C) 2001, 2002 Free Software Foundation, Inc.
6
7 ;; Keywords: multilingual, Hebrew
8
9 ;; This file is part of GNU Emacs.
10
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
14 ;; any later version.
15
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
25
26 ;;; Commentary:
27
28 ;; For Hebrew, the character set ISO8859-8 is supported.
29 ;; See http://www.ecma.ch/ecma1/STAND/ECMA-121.HTM.
30 ;; Windows-1255 is also supported.
31
32 ;;; Code:
33
34 (define-coding-system 'hebrew-iso-8bit
35 "ISO 2022 based 8-bit encoding for Hebrew (MIME:ISO-8859-8)."
36 :coding-type 'charset
37 :mnemonic ?8
38 :charset-list '(iso-8859-8)
39 :mime-charset 'iso-8859-8)
40
41 (define-coding-system-alias 'iso-8859-8 'hebrew-iso-8bit)
42
43 ;; These are for Explicit and Implicit directionality information, as
44 ;; defined in RFC 1556. We don't yet support directional information
45 ;; in bidi languages, so these aliases are a lie, especially as far as
46 ;; iso-8859-8-e is concerned. FIXME.
47 (define-coding-system-alias 'iso-8859-8-e 'hebrew-iso-8bit)
48 (define-coding-system-alias 'iso-8859-8-i 'hebrew-iso-8bit)
49
50 (set-language-info-alist
51 "Hebrew" '((charset . iso-8859-8)
52 (coding-priority hebrew-iso-8bit)
53 (coding-system hebrew-iso-8bit windows-1255 cp862)
54 (nonascii-translation . iso-8859-8)
55 (input-method . "hebrew")
56 (unibyte-display . hebrew-iso-8bit)
57 (sample-text . "Hebrew \e,Hylem\e(B")
58 (documentation . "Right-to-left writing is not yet supported.")))
59
60 (set-language-info-alist
61 "Windows-1255" '((coding-priority windows-1255)
62 (coding-system windows-1255)
63 (documentation . "\
64 Support for Windows-1255 encoding, e.g. for Yiddish.
65 Right-to-left writing is not yet supported.")))
66
67 (define-coding-system 'windows-1255
68 "windows-1255 (Hebrew) encoding (MIME: WINDOWS-1255)"
69 :coding-type 'charset
70 :mnemonic ?h
71 :charset-list '(windows-1255)
72 :mime-charset 'windows-1255)
73 (define-coding-system-alias 'cp1255 'windows-1255)
74
75 (define-coding-system 'cp862
76 "DOS codepage 862 (Hebrew)"
77 :coding-type 'charset
78 :mnemonic ?D
79 :charset-list '(cp862)
80 :mime-charset 'cp862)
81 (define-coding-system-alias 'ibm862 'cp862)
82
83 (provide 'hebrew)
84
85 ;;; hebrew.el ends here