Mercurial > emacs
comparison lisp/language/hebrew.el @ 17052:d0d7b244b1d0
Initial revision
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 20 Feb 1997 07:02:49 +0000 |
parents | |
children | 70194012fb3a |
comparison
equal
deleted
inserted
replaced
17051:fd0b17a79b07 | 17052:d0d7b244b1d0 |
---|---|
1 ;;; hebrew.el --- Support for Hebrew | |
2 | |
3 ;; Copyright (C) 1995 Free Software Foundation, Inc. | |
4 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | |
5 | |
6 ;; Keywords: multilingual, Hebrew | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to | |
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
23 | |
24 ;;; Commentary: | |
25 | |
26 ;; For Hebrew, the character sets ISO8859-8 is supported. | |
27 | |
28 ;;; Code: | |
29 | |
30 (make-coding-system | |
31 'coding-system-iso-8859-8 2 ?8 "MIME ISO-8859-8" | |
32 '((ascii t) (hebrew-iso8859-8 t) nil nil | |
33 nil ascii-eol ascii-cntl nil nil nil nil nil t)) | |
34 | |
35 (register-input-method | |
36 "Hebrew" '("quail-hebrew" quail-use-package "quail/hebrew")) | |
37 | |
38 (defun setup-hebrew-environment () | |
39 (setq coding-category-iso-8-1 'coding-system-iso-8859-8) | |
40 | |
41 (set-coding-priority | |
42 '(coding-category-iso-7 | |
43 coding-category-iso-8-1 | |
44 coding-category-iso-8-2)) | |
45 | |
46 (setq-default buffer-file-coding-system 'coding-category-iso-8-2) | |
47 (set-terminal-coding-system 'coding-category-iso-8-2) | |
48 (set-keyboard-coding-system 'coding-category-iso-8-2) | |
49 | |
50 (setq default-input-method '("Hebrew" . "quail-hebrew")) | |
51 ) | |
52 | |
53 (set-language-info-alist | |
54 "Hebrew" '((setup-function . setup-hebrew-environment) | |
55 (charset . (hebrew-iso8859-8)) | |
56 (coding-system . (coding-system-iso-8859-8)) | |
57 (documentation . "Right-to-left writing is Not yet supported") | |
58 (sample-text . "Hebrew ,Hylem(B"))) | |
59 | |
60 ;;; hebew.el ends here |