aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.el
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex.el')
-rw-r--r--arabluatex.el55
1 files changed, 29 insertions, 26 deletions
diff --git a/arabluatex.el b/arabluatex.el
index 8977b32..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
@@ -101,30 +102,32 @@
101 "prname" 102 "prname"
102 "txarb" 103 "txarb"
103 '("arb" [ TeX-arg-eval completing-read 104 '("arb" [ TeX-arg-eval completing-read
104 (TeX-argument-prompt optional nil "Mode") 105 (TeX-argument-prompt nil nil "Mode")
105 LaTeX-arabluatex-mode-options ] 106 LaTeX-arabluatex-mode-options ]
106 t) 107 t)
107 '("arbcolor" [ TeX-arg-eval completing-read 108 '("arbcolor" [ TeX-arg-eval completing-read
108 (TeX-argument-prompt optional nil "Color") 109 (TeX-argument-prompt nil nil "Color")
109 (LaTeX-xcolor-definecolor-list) ] 110 (LaTeX-xcolor-definecolor-list) ]
110 t) 111 t)
111 '("arbmark" [ TeX-arg-eval completing-read 112 '("arbmark" [ TeX-arg-eval completing-read
112 (TeX-argument-prompt optional nil "Option") 113 (TeX-argument-prompt nil nil "Option")
113 LaTeX-arabluatex-arbmark-options ] 114 LaTeX-arabluatex-arbmark-options ]
114 t) 115 t)
115 '("ArbOutFile" [ TeX-arg-eval completing-read 116 '("ArbOutFile" [ TeX-arg-eval completing-read
116 (TeX-argument-prompt optional nil "Option") 117 (TeX-argument-prompt nil nil "Option")
117 LaTeX-arabluatex-outfile-options ] 118 LaTeX-arabluatex-outfile-options ]
118 t) 119 t)
119 '("ArbOutFile*" [ TeX-arg-eval completing-read 120 '("ArbOutFile*" [ TeX-arg-eval completing-read
120 (TeX-argument-prompt optional nil "Option") 121 (TeX-argument-prompt nil nil "Option")
121 LaTeX-arabluatex-outfile-options ] 122 LaTeX-arabluatex-outfile-options ]
122 t) 123 t)
123 '("arind" [ TeX-arg-key-val LaTeX-arabluatex-arind-options ] 124 '("arind" [ TeX-arg-key-val LaTeX-arabluatex-arind-options ]
124 TeX-arg-index) 125 TeX-arg-index)
125 "SetHemistichDelim" 126 "SetHemistichDelim"
126 '("bayt" 2) 127 '("bayt" 2)
128 '("bayt+" 2)
127 "abjad" 129 "abjad"
130 '("SetArbNumbers" "Indian or Arabic")
128 "arbnull" 131 "arbnull"
129 "abraces" 132 "abraces"
130 "LR" 133 "LR"
@@ -145,7 +148,7 @@
145 (LaTeX-add-environments 148 (LaTeX-add-environments
146 '("arab" LaTeX-env-args 149 '("arab" LaTeX-env-args
147 [ TeX-arg-eval completing-read 150 [ TeX-arg-eval completing-read
148 (TeX-argument-prompt optional nil "Mode") 151 (TeX-argument-prompt nil nil "Mode")
149 LaTeX-arabluatex-mode-options ] 152 LaTeX-arabluatex-mode-options ]
150 ) 153 )
151 "txarab" 154 "txarab"