annotate lisp/mule/hebrew.el @ 392:1f50e6fe4f3f r21-2-11

Import from CVS: tag r21-2-11
author cvs
date Mon, 13 Aug 2007 11:10:50 +0200
parents 4f79e16b1112
children 74fd4e045ea6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
1 ;;; hebrew.el --- Support for Hebrew
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
2
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
4 ;; Licensed to the Free Software Foundation.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
5
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
6 ;; Keywords: multilingual, Hebrew
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
7
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
9
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
13 ;; any later version.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
14
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
18 ;; GNU General Public License for more details.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
19
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
24
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
25 ;;; Commentary:
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
26
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
27 ;; For Hebrew, the character sets ISO8859-8 is supported.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
28
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
29 ;;; Code:
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
30
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
31 ;; Syntax of Hebrew characters
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
32 (loop for c from 96 to 122
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
33 do (modify-syntax-entry (make-char 'hebrew-iso8859-8 c) "w"))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
34 (modify-syntax-entry (make-char 'hebrew-iso8859-8 32) "w") ; no-break space
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
35
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
36
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
37 ;; (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
38 ;; 'hebrew-iso-8bit 2 ?8
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
39 ;; "ISO 2022 based 8-bit encoding for Hebrew (MIME:ISO-8859-8)"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
40 ;; '((ascii t) (hebrew-iso8859-8 t) nil nil
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
41 ;; nil ascii-eol ascii-cntl nil nil nil nil nil t))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
42
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
43 ;; (define-coding-system-alias 'iso-8859-8 'hebrew-iso-8bit)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
44
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
45 (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
46 'iso-8859-8 'iso2022
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
47 "MIME ISO-8859-8"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
48 '(charset-g0 ascii
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
49 charset-g1 hebrew-iso8859-8
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
50 charset-g2 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
51 charset-g3 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
52 no-iso6429 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
53 mnemonic "MIME/Hbrw"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
54 ))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
55
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
56 (make-coding-system
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
57 'ctext-hebrew 'iso2022
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
58 "Coding-system of Hebrew."
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
59 '(charset-g0 ascii
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
60 charset-g1 hebrew-iso8859-8
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
61 charset-g2 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
62 charset-g3 t
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
63 mnemonic "CText/Hbrw"
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
64 ))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
65
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
66 (defun setup-hebrew-environment ()
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
67 "Setup multilingual environment (MULE) for Hebrew.
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
68 But, please note that right-to-left writing is not yet supported."
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
69 (interactive)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
70 (setup-8-bit-environment "Hebrew" 'hebrew-iso8859-8 'iso-8859-8
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
71 "hebrew")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
72 (set-coding-category-system 'iso-8-designate 'iso-8859-8)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
73 (set-coding-priority-list
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
74 '(iso-8-designate
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
75 iso-8-1
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
76 iso-7
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
77 iso-8-2
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
78 iso-lock-shift
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
79 no-conversion
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
80 shift-jis
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
81 big5))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
82 )
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
83
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
84 (set-language-info-alist
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
85 "Hebrew" '((setup-function . setup-hebrew-environment)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
86 (describe-function . describe-hebrew-support)
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
87 (charset . (hebrew-iso8859-8))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
88 (coding-system . (iso-8859-8))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
89 (sample-text . "Hebrew ,Hylem(B")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
90 (documentation . "Right-to-left writing is not yet supported.")
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
91 ))
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
92
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents:
diff changeset
93 ;;; hebrew.el ends here