Commit | Line | Data |
---|---|---|
0a10297a | 1 | ;;; hebrew.el --- support for Hebrew -*- coding: iso-2022-7bit; no-byte-compile: t -*- |
4ed46869 | 2 | |
eaa61218 KH |
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 | |
1fdc503d | 7 | |
4ed46869 KH |
8 | ;; Keywords: multilingual, Hebrew |
9 | ||
10 | ;; This file is part of GNU Emacs. | |
11 | ||
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. | |
16 | ||
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. | |
21 | ||
22 | ;; You should have received a copy of the GNU General Public License | |
369314dc KH |
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. | |
4ed46869 KH |
26 | |
27 | ;;; Commentary: | |
28 | ||
eccac837 | 29 | ;; For Hebrew, the character set ISO8859-8 is supported. |
445559c9 | 30 | ;; See http://www.ecma.ch/ecma1/STAND/ECMA-121.HTM. |
eccac837 | 31 | ;; Windows-1255 is also supported. |
1fdc503d | 32 | |
4ed46869 KH |
33 | ;;; Code: |
34 | ||
35 | (make-coding-system | |
4b9121fc | 36 | 'hebrew-iso-8bit 2 ?8 |
5ef35063 | 37 | "ISO 2022 based 8-bit encoding for Hebrew (MIME:ISO-8859-8)." |
f2719637 | 38 | '(ascii hebrew-iso8859-8 nil nil |
161e03ae | 39 | nil nil nil nil nil nil nil nil t nil nil t) |
18d8be5d KH |
40 | '((safe-charsets ascii hebrew-iso8859-8) |
41 | (mime-charset . iso-8859-8))) | |
4ed46869 | 42 | |
71eabd24 | 43 | (define-coding-system-alias 'iso-8859-8 'hebrew-iso-8bit) |
4b9121fc | 44 | |
b81fa2f9 EZ |
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) | |
51 | ||
4ed46869 | 52 | (set-language-info-alist |
cf6991a3 | 53 | "Hebrew" '((charset . (hebrew-iso8859-8)) |
e4dfd4f7 | 54 | (coding-priority hebrew-iso-8bit) |
4b9121fc | 55 | (coding-system . (hebrew-iso-8bit)) |
8f76845d KH |
56 | (nonascii-translation . hebrew-iso8859-8) |
57 | (input-method . "hebrew") | |
58 | (unibyte-display . hebrew-iso-8bit) | |
dc09922d | 59 | (sample-text . "Hebrew \e,Hylem\e(B") |
1fdc503d | 60 | (documentation . "Right-to-left writing is not yet supported."))) |
4ed46869 | 61 | |
eccac837 DL |
62 | (set-language-info-alist |
63 | "Windows-1255" '((coding-priority windows-1255) | |
64 | (coding-system windows-1255) | |
65 | (features code-pages) | |
5ef35063 WL |
66 | (documentation . "\ |
67 | Support for Windows-1255 encoding, e.g. for Yiddish. | |
1fdc503d | 68 | Right-to-left writing is not yet supported."))) |
eccac837 | 69 | |
41da80b1 DL |
70 | (provide 'hebrew) |
71 | ||
ab5796a9 | 72 | ;;; arch-tag: 3ca04f32-3f1e-498e-af46-8267498ba5d9 |
4b9121fc | 73 | ;;; hebrew.el ends here |