Update copyright years.
[emacs.git] / lisp / language / hebrew.el
blob8674ccff1bb66754ce098353e9a1f440f2bf0f0b
1 ;;; hebrew.el --- support for Hebrew -*- coding: iso-2022-7bit; no-byte-compile: t -*-
3 ;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
4 ;; Free Software Foundation, Inc.
5 ;; Copyright (C) 1995
6 ;; National Institute of Advanced Industrial Science and Technology (AIST)
7 ;; Registration Number H14PRO021
9 ;; Keywords: multilingual, Hebrew
11 ;; This file is part of GNU Emacs.
13 ;; GNU Emacs is free software; you can redistribute it and/or modify
14 ;; it under the terms of the GNU General Public License as published by
15 ;; the Free Software Foundation; either version 2, or (at your option)
16 ;; any later version.
18 ;; GNU Emacs is distributed in the hope that it will be useful,
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;; GNU General Public License for more details.
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with GNU Emacs; see the file COPYING. If not, write to the
25 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
26 ;; Boston, MA 02110-1301, USA.
28 ;;; Commentary:
30 ;; For Hebrew, the character set ISO8859-8 is supported.
31 ;; See http://www.ecma.ch/ecma1/STAND/ECMA-121.HTM.
32 ;; Windows-1255 is also supported.
34 ;;; Code:
36 (make-coding-system
37 'hebrew-iso-8bit 2 ?8
38 "ISO 2022 based 8-bit encoding for Hebrew (MIME:ISO-8859-8)."
39 '(ascii hebrew-iso8859-8 nil nil
40 nil nil nil nil nil nil nil nil t nil nil t)
41 '((safe-charsets ascii hebrew-iso8859-8)
42 (mime-charset . iso-8859-8)))
44 (define-coding-system-alias 'iso-8859-8 'hebrew-iso-8bit)
46 ;; These are for Explicit and Implicit directionality information, as
47 ;; defined in RFC 1556. We don't yet support directional information
48 ;; in bidi languages, so these aliases are a lie, especially as far as
49 ;; iso-8859-8-e is concerned. FIXME.
50 (define-coding-system-alias 'iso-8859-8-e 'hebrew-iso-8bit)
51 (define-coding-system-alias 'iso-8859-8-i 'hebrew-iso-8bit)
53 (set-language-info-alist
54 "Hebrew" '((charset . (hebrew-iso8859-8))
55 (coding-priority hebrew-iso-8bit)
56 (coding-system . (hebrew-iso-8bit))
57 (nonascii-translation . hebrew-iso8859-8)
58 (input-method . "hebrew")
59 (unibyte-display . hebrew-iso-8bit)
60 (sample-text . "Hebrew \e,Hylem\e(B")
61 (documentation . "Right-to-left writing is not yet supported.")))
63 (set-language-info-alist
64 "Windows-1255" '((coding-priority windows-1255)
65 (coding-system windows-1255)
66 (features code-pages)
67 (documentation . "\
68 Support for Windows-1255 encoding, e.g. for Yiddish.
69 Right-to-left writing is not yet supported.")))
71 (provide 'hebrew)
73 ;;; arch-tag: 3ca04f32-3f1e-498e-af46-8267498ba5d9
74 ;;; hebrew.el ends here