502
|
1 ;;; arabic.el --- pre-loaded support for Arabic. -*- coding: iso-2022-7bit; -*-
|
333
|
2
|
|
3 ;; Copyright (C) 1992,93,94,95 Free Software Foundation, Inc.
|
|
4 ;; Copyright (C) 1995 Amdahl Corporation.
|
|
5 ;; Copyright (C) 1995 Sun Microsystems.
|
778
|
6 ;; Copyright (C) 2002 Ben Wing.
|
333
|
7
|
|
8 ;; This file is part of XEmacs.
|
|
9
|
|
10 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
11 ;; 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 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
18 ;; General Public License for more details.
|
|
19
|
|
20 ;; You should have received a copy of the GNU General Public License
|
|
21 ;; along with XEmacs; see the file COPYING. If not, write to the
|
|
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
23 ;; Boston, MA 02111-1307, USA.
|
|
24
|
|
25 ;;; Commentary:
|
|
26
|
778
|
27 ;; Synched up with: Mule 2.3, FSF 21.1.
|
333
|
28
|
|
29 ;;; Code:
|
|
30
|
778
|
31 ; (make-charset 'arabic-iso8859-6
|
|
32 ; "Right-Hand Part of Latin/Arabic Alphabet (ISO/IEC 8859-6): ISO-IR-127"
|
|
33 ; '(dimension
|
|
34 ; 1
|
|
35 ; registry "ISO8859-6"
|
|
36 ; chars 96
|
|
37 ; columns 1
|
|
38 ; direction r2l
|
|
39 ; final ?G
|
|
40 ; graphic 1
|
|
41 ; short-name "RHP of ISO8859/6"
|
|
42 ; long-name "RHP of Arabic (ISO 8859-6): ISO-IR-127"
|
|
43 ; ))
|
|
44
|
|
45 ;; For Arabic, we need three different types of character sets.
|
|
46 ;; Digits are of direction left-to-right and of width 1-column.
|
|
47 ;; Others are of direction right-to-left and of width 1-column or
|
|
48 ;; 2-column.
|
|
49 (make-charset 'arabic-digit "Arabic digit"
|
|
50 '(dimension
|
|
51 1
|
|
52 registry "MuleArabic-0"
|
333
|
53 chars 94
|
778
|
54 columns 1
|
|
55 direction l2r
|
333
|
56 final ?2
|
|
57 graphic 0
|
778
|
58 short-name "Arabic digit"
|
|
59 long-name "Arabic digit"
|
333
|
60 ))
|
|
61
|
|
62 (make-charset 'arabic-1-column "Arabic 1-column"
|
778
|
63 '(dimension
|
|
64 1
|
|
65 registry "MuleArabic-1"
|
333
|
66 chars 94
|
778
|
67 columns 1
|
|
68 direction r2l
|
333
|
69 final ?3
|
|
70 graphic 0
|
778
|
71 short-name "Arabic 1-col"
|
|
72 long-name "Arabic 1-column"
|
333
|
73 ))
|
|
74
|
|
75 (make-charset 'arabic-2-column "Arabic 2-column"
|
778
|
76 '(dimension
|
|
77 1
|
|
78 registry "MuleArabic-2"
|
333
|
79 chars 94
|
778
|
80 columns 2
|
|
81 direction r2l
|
333
|
82 final ?4
|
|
83 graphic 0
|
778
|
84 short-name "Arabic 2-col"
|
|
85 long-name "Arabic 2-column"
|
333
|
86 ))
|
|
87
|
771
|
88 (make-coding-system 'iso-8859-6 'iso2022
|
|
89 "ISO-8859-6 (Arabic)"
|
|
90 '(charset-g0 ascii
|
|
91 charset-g1 arabic-iso8859-6
|
|
92 charset-g2 t
|
|
93 charset-g3 t
|
|
94 no-iso6429 t
|
|
95 mnemonic "MIME/Arbc"
|
|
96 ))
|
|
97
|
333
|
98 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
99 ;;; ARABIC
|
|
100 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
101
|
|
102 ;; (define-language-environment 'arabic
|
|
103 ;; "Arabic"
|
|
104 ;; (lambda ()
|
|
105 ;; (require 'arabic)))
|
|
106
|
|
107 ;;; arabic.el ends here
|