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