diff options
| author | Kenichi Handa | 2010-08-25 14:13:27 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-08-25 14:13:27 +0900 |
| commit | b60f961f6cdc1095e778ad624657bb57788512af (patch) | |
| tree | 6849297db574b29c5a650a1ab8c9aa3c70014ef4 /lisp/language | |
| parent | 2c0ac86767b5b7f362a287b5282d8397777b98a2 (diff) | |
| download | emacs-b60f961f6cdc1095e778ad624657bb57788512af.tar.gz emacs-b60f961f6cdc1095e778ad624657bb57788512af.zip | |
Add Arabic support.
Diffstat (limited to 'lisp/language')
| -rw-r--r-- | lisp/language/misc-lang.el | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lisp/language/misc-lang.el b/lisp/language/misc-lang.el index 2431c9d9e99..e2e4f29dd9e 100644 --- a/lisp/language/misc-lang.el +++ b/lisp/language/misc-lang.el | |||
| @@ -40,8 +40,9 @@ | |||
| 40 | IPA is International Phonetic Alphabet for English, French, German | 40 | IPA is International Phonetic Alphabet for English, French, German |
| 41 | and Italian."))) | 41 | and Italian."))) |
| 42 | 42 | ||
| 43 | ;; This is for Arabic. But, as we still don't have Arabic language | 43 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 44 | ;; support, we at least define a coding system here. | 44 | ;; Arabic |
| 45 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
| 45 | 46 | ||
| 46 | (define-coding-system 'iso-8859-6 | 47 | (define-coding-system 'iso-8859-6 |
| 47 | "ISO-8859-6 based encoding (MIME:ISO-8859-6)." | 48 | "ISO-8859-6 based encoding (MIME:ISO-8859-6)." |
| @@ -58,6 +59,19 @@ and Italian."))) | |||
| 58 | :mime-charset 'windows-1256) | 59 | :mime-charset 'windows-1256) |
| 59 | (define-coding-system-alias 'cp1256 'windows-1256) | 60 | (define-coding-system-alias 'cp1256 'windows-1256) |
| 60 | 61 | ||
| 62 | (set-language-info-alist | ||
| 63 | "Arabic" '((charset unicode) | ||
| 64 | (coding-system utf-8 iso-8859-6 windows-1256) | ||
| 65 | (coding-priority utf-8 iso-8859-6 windows-1256) | ||
| 66 | (input-method . "arabic") | ||
| 67 | (sample-text . "Arabic السّلام عليكم") | ||
| 68 | (documentation . "Bidirectional editing is supported."))) | ||
| 69 | |||
| 70 | (set-char-table-range | ||
| 71 | composition-function-table | ||
| 72 | '(#x600 . #x6FF) | ||
| 73 | (list ["[\u0600-\u06FF]+" 0 font-shape-gstring])) | ||
| 74 | |||
| 61 | (provide 'misc-lang) | 75 | (provide 'misc-lang) |
| 62 | 76 | ||
| 63 | ;; arch-tag: 6953585c-1a1a-4c09-be82-a2518afb6074 | 77 | ;; arch-tag: 6953585c-1a1a-4c09-be82-a2518afb6074 |