aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-08-08 00:19:58 -0700
committerGlenn Morris2012-08-08 00:19:58 -0700
commit32ac3a6ba32f947a8d6b81ef7609dc69fd6a5d48 (patch)
tree2f32b62631df39fe1aa672889881865c436e9701
parent77c7bcb1157b405bde1227b20ef5f7ce9a90e689 (diff)
downloademacs-32ac3a6ba32f947a8d6b81ef7609dc69fd6a5d48.tar.gz
emacs-32ac3a6ba32f947a8d6b81ef7609dc69fd6a5d48.zip
Merge language/persian.el into language/misc-lang.el
* lisp/language/persian.el: Remove file. * lisp/language/misc-lang.el: Move non-unique part of persian.el here. * lisp/loadup.el: Remove language/persian. * src/lisp.mk (lisp): Remove language/persian.elc. * etc/NEWS: Improve entry.
-rw-r--r--etc/NEWS2
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/language/misc-lang.el8
-rw-r--r--lisp/language/persian.el62
-rw-r--r--lisp/loadup.el1
-rw-r--r--src/ChangeLog4
-rw-r--r--src/lisp.mk1
7 files changed, 19 insertions, 65 deletions
diff --git a/etc/NEWS b/etc/NEWS
index affc4480c93..e9408ff45e0 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -112,7 +112,7 @@ treated as images.
112 112
113** Internationalization changes 113** Internationalization changes
114 114
115*** Added language support for Persian. 115*** New language environment: Persian.
116 116
117** Face underlining can now use a wave. 117** Face underlining can now use a wave.
118See the "Face Attributes" section of the Elisp manual. 118See the "Face Attributes" section of the Elisp manual.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 479fee02027..716ed4c0955 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12012-08-08 Glenn Morris <rgm@gnu.org>
2
3 * language/persian.el: Remove file.
4 * language/misc-lang.el: Move non-unique part of persian.el here.
5 * loadup.el: Remove language/persian.
6
12012-08-08 Óscar Fuentes <ofv@wanadoo.es> 72012-08-08 Óscar Fuentes <ofv@wanadoo.es>
2 8
3 * vc/diff-mode.el (diff-remove-trailing-whitespace): New function. 9 * vc/diff-mode.el (diff-remove-trailing-whitespace): New function.
diff --git a/lisp/language/misc-lang.el b/lisp/language/misc-lang.el
index 1286b361892..ee06e34eef4 100644
--- a/lisp/language/misc-lang.el
+++ b/lisp/language/misc-lang.el
@@ -67,6 +67,14 @@ and Italian.")))
67 (sample-text . "Arabic السّلام عليكم") 67 (sample-text . "Arabic السّلام عليكم")
68 (documentation . "Bidirectional editing is supported."))) 68 (documentation . "Bidirectional editing is supported.")))
69 69
70(set-language-info-alist
71 "Persian" '((charset unicode)
72 (coding-system utf-8 iso-8859-6 windows-1256)
73 (coding-priority utf-8 iso-8859-6 windows-1256)
74 (input-method . "farsi-transliterate-banan")
75 (sample-text . "Persian فارسی")
76 (documentation . "Bidirectional editing is supported.")))
77
70(set-char-table-range 78(set-char-table-range
71 composition-function-table 79 composition-function-table
72 '(#x600 . #x6FF) 80 '(#x600 . #x6FF)
diff --git a/lisp/language/persian.el b/lisp/language/persian.el
deleted file mode 100644
index 8860acd1ca4..00000000000
--- a/lisp/language/persian.el
+++ /dev/null
@@ -1,62 +0,0 @@
1;;; persian.el --- support for Persian -*- coding: utf-8;-*-
2
3;; Copyright (C) 2012 Free Software Foundation, Inc.
4
5;; Author: Mohsen BANAN <libre@mohsen.1.banan.byname.net>
6;; X-URL: http://mohsen.1.banan.byname.net/contact
7
8;; Keywords: multilingual, Farsi, Persian
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 3 of the License, or
15;; (at your option) 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
23;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24
25;;; Commentary:
26
27;; For Persian, the character set ISO8859-6 is supported. (Same as Arabic)
28
29;;; Code:
30
31(define-coding-system 'iso-8859-6
32 "ISO-8859-6 based encoding (MIME:ISO-8859-6)."
33 :coding-type 'charset
34 :mnemonic ?6
35 :charset-list '(iso-8859-6)
36 :mime-charset 'iso-8859-6)
37
38(define-coding-system 'windows-1256
39 "windows-1256 (Arabic) encoding (MIME: WINDOWS-1256)"
40 :coding-type 'charset
41 :mnemonic ?A
42 :charset-list '(windows-1256)
43 :mime-charset 'windows-1256)
44
45(define-coding-system-alias 'cp1256 'windows-1256)
46
47(set-language-info-alist
48 "Persian" '((charset unicode)
49 (coding-system utf-8 iso-8859-6 windows-1256)
50 (coding-priority utf-8 iso-8859-6 windows-1256)
51 (input-method . "farsi-transliterate-banan")
52 (sample-text . "Persian فارسی")
53 (documentation . "Bidirectional editing is supported.")))
54
55(set-char-table-range
56 composition-function-table
57 '(#x600 . #x6FF)
58 (list ["[\u0600-\u06FF]+" 0 font-shape-gstring]))
59
60(provide 'persian)
61
62;;; persian.el ends here
diff --git a/lisp/loadup.el b/lisp/loadup.el
index d316f28a374..a460fcab339 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -159,7 +159,6 @@
159(load "language/japanese") 159(load "language/japanese")
160(load "language/korean") 160(load "language/korean")
161(load "language/lao") 161(load "language/lao")
162(load "language/persian")
163(load "language/tai-viet") 162(load "language/tai-viet")
164(load "language/thai") 163(load "language/thai")
165(load "language/tibetan") 164(load "language/tibetan")
diff --git a/src/ChangeLog b/src/ChangeLog
index 7919b6f8f8a..e68c6edc8d5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-08-08 Glenn Morris <rgm@gnu.org>
2
3 * lisp.mk (lisp): Remove language/persian.elc.
4
12012-08-08 Dmitry Antipov <dmantipov@yandex.ru> 52012-08-08 Dmitry Antipov <dmantipov@yandex.ru>
2 6
3 Cleanup intervals. 7 Cleanup intervals.
diff --git a/src/lisp.mk b/src/lisp.mk
index 70296e06368..162d8819917 100644
--- a/src/lisp.mk
+++ b/src/lisp.mk
@@ -95,7 +95,6 @@ lisp = \
95 $(lispsource)/language/japanese.elc \ 95 $(lispsource)/language/japanese.elc \
96 $(lispsource)/language/korean.elc \ 96 $(lispsource)/language/korean.elc \
97 $(lispsource)/language/lao.elc \ 97 $(lispsource)/language/lao.elc \
98 $(lispsource)/language/persian.elc \
99 $(lispsource)/language/tai-viet.elc \ 98 $(lispsource)/language/tai-viet.elc \
100 $(lispsource)/language/thai.elc \ 99 $(lispsource)/language/thai.elc \
101 $(lispsource)/language/tibetan.elc \ 100 $(lispsource)/language/tibetan.elc \