aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.el
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.el')
-rw-r--r--arabluatex.el60
1 files changed, 32 insertions, 28 deletions
diff --git a/arabluatex.el b/arabluatex.el
index 34d6466..5007675 100644
--- a/arabluatex.el
+++ b/arabluatex.el
@@ -1,8 +1,23 @@
1;;; arabluatex.el --- AUCTeX style for `arabluatex.sty' 1;;; arabluatex.el --- AUCTeX style for `arabluatex.sty'
2;; This file is part of the `arabluatex' package 2;; This file is part of the `arabluatex' package
3 3
4;; ArabLuaTeX -- Processing ArabTeX notation under LuaLaTeX 4;; arabluatex -- ArabTeX for LuaLaTeX
5;; Copyright (C) 2016--2020 Robert Alessi 5;; Copyright (C) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023
6;; Robert Alessi <alessi@robertalessi.net>
7
8;; Permission to use, copy, modify, and distribute this software for
9;; any purpose with or without fee is hereby granted, provided that
10;; the above copyright notice and this permission notice appear in all
11;; copies.
12
13;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
14;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
15;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
16;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
17;; CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
18;; OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
19;; NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
20;; CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6 21
7;; The author would like to express his grateful thanks to Arash 22;; The author would like to express his grateful thanks to Arash
8;; Esbati <arash@gnu.org> whose comments helped to improve this file 23;; Esbati <arash@gnu.org> whose comments helped to improve this file
@@ -11,20 +26,6 @@
11;; Please send error reports and suggestions for improvements to Robert 26;; Please send error reports and suggestions for improvements to Robert
12;; Alessi <alessi@robertalessi.net> 27;; Alessi <alessi@robertalessi.net>
13 28
14;; This program is free software: you can redistribute it and/or modify
15;; it under the terms of the GNU General Public License as published by
16;; the Free Software Foundation, either version 3 of the License, or
17;; (at your option) any later version.
18
19;; This program is distributed in the hope that it will be useful, but
20;; WITHOUT ANY WARRANTY; without even the implied warranty of
21;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22;; General Public License for more details.
23
24;; You should have received a copy of the GNU General Public License
25;; along with this program. If not, see
26;; <http://www.gnu.org/licenses/>.
27
28(defvar LaTeX-arabluatex-preamble-options 29(defvar LaTeX-arabluatex-preamble-options
29 '(("voc") 30 '(("voc")
30 ("fullvoc") 31 ("fullvoc")
@@ -38,10 +39,10 @@
38 (TeX-read-key-val t LaTeX-arabluatex-preamble-options)) 39 (TeX-read-key-val t LaTeX-arabluatex-preamble-options))
39 40
40(defvar LaTeX-arabluatex-mode-options 41(defvar LaTeX-arabluatex-mode-options
41 '("voc" 42 '(("voc")
42 "fullvoc" 43 ("fullvoc")
43 "novoc" 44 ("novoc")
44 "trans") 45 ("trans"))
45 "List of local options for arabluatex macros.") 46 "List of local options for arabluatex macros.")
46 47
47(defvar LaTeX-arabluatex-key-val-options 48(defvar LaTeX-arabluatex-key-val-options
@@ -66,7 +67,8 @@
66 67
67(defvar LaTeX-arabluatex-arind-options 68(defvar LaTeX-arabluatex-arind-options
68 '(("index") 69 '(("index")
69 ("root") 70 ("root"
71 ("1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15"))
70 ("form") 72 ("form")
71 ("pipe")) 73 ("pipe"))
72 "Option for arind command.") 74 "Option for arind command.")
@@ -100,30 +102,32 @@
100 "prname" 102 "prname"
101 "txarb" 103 "txarb"
102 '("arb" [ TeX-arg-eval completing-read 104 '("arb" [ TeX-arg-eval completing-read
103 (TeX-argument-prompt optional nil "Mode") 105 (TeX-argument-prompt nil nil "Mode")
104 LaTeX-arabluatex-mode-options ] 106 LaTeX-arabluatex-mode-options ]
105 t) 107 t)
106 '("arbcolor" [ TeX-arg-eval completing-read 108 '("arbcolor" [ TeX-arg-eval completing-read
107 (TeX-argument-prompt optional nil "Color") 109 (TeX-argument-prompt nil nil "Color")
108 (LaTeX-xcolor-definecolor-list) ] 110 (LaTeX-xcolor-definecolor-list) ]
109 t) 111 t)
110 '("arbmark" [ TeX-arg-eval completing-read 112 '("arbmark" [ TeX-arg-eval completing-read
111 (TeX-argument-prompt optional nil "Option") 113 (TeX-argument-prompt nil nil "Option")
112 LaTeX-arabluatex-arbmark-options ] 114 LaTeX-arabluatex-arbmark-options ]
113 t) 115 t)
114 '("ArbOutFile" [ TeX-arg-eval completing-read 116 '("ArbOutFile" [ TeX-arg-eval completing-read
115 (TeX-argument-prompt optional nil "Option") 117 (TeX-argument-prompt nil nil "Option")
116 LaTeX-arabluatex-outfile-options ] 118 LaTeX-arabluatex-outfile-options ]
117 t) 119 t)
118 '("ArbOutFile*" [ TeX-arg-eval completing-read 120 '("ArbOutFile*" [ TeX-arg-eval completing-read
119 (TeX-argument-prompt optional nil "Option") 121 (TeX-argument-prompt nil nil "Option")
120 LaTeX-arabluatex-outfile-options ] 122 LaTeX-arabluatex-outfile-options ]
121 t) 123 t)
122 '("arind" [ TeX-arg-key-val LaTeX-arabluatex-arind-options ] 124 '("arind" [ TeX-arg-key-val LaTeX-arabluatex-arind-options ]
123 TeX-arg-index) 125 TeX-arg-index)
124 "SetHemistichDelim" 126 "SetHemistichDelim"
125 '("bayt" 2) 127 '("bayt" 2)
128 '("bayt+" 2)
126 "abjad" 129 "abjad"
130 '("SetArbNumbers" "Indian or Arabic")
127 "arbnull" 131 "arbnull"
128 "abraces" 132 "abraces"
129 "LR" 133 "LR"
@@ -144,7 +148,7 @@
144 (LaTeX-add-environments 148 (LaTeX-add-environments
145 '("arab" LaTeX-env-args 149 '("arab" LaTeX-env-args
146 [ TeX-arg-eval completing-read 150 [ TeX-arg-eval completing-read
147 (TeX-argument-prompt optional nil "Mode") 151 (TeX-argument-prompt nil nil "Mode")
148 LaTeX-arabluatex-mode-options ] 152 LaTeX-arabluatex-mode-options ]
149 ) 153 )
150 "txarab" 154 "txarab"
@@ -168,7 +172,7 @@
168 'function)) 172 'function))
169 ;; RefTeX support 173 ;; RefTeX support
170 (when (fboundp 'reftex-add-index-macros) 174 (when (fboundp 'reftex-add-index-macros)
171 (reftex-add-index-macros '(("\\arind[]{*}" 1 ?a "" nil t)))) 175 (reftex-add-index-macros '(("\\arind[]{*}" "" ?a "" nil t))))
172 ) 176 )
173 LaTeX-dialect) 177 LaTeX-dialect)
174 178