aboutsummaryrefslogtreecommitdiff
path: root/arabluatex_trans.lua
diff options
context:
space:
mode:
Diffstat (limited to 'arabluatex_trans.lua')
-rw-r--r--arabluatex_trans.lua178
1 files changed, 83 insertions, 95 deletions
diff --git a/arabluatex_trans.lua b/arabluatex_trans.lua
index 8d62362..99d3712 100644
--- a/arabluatex_trans.lua
+++ b/arabluatex_trans.lua
@@ -1,7 +1,7 @@
1--[[ 1--[[
2This file is part of the `arabluatex' package 2This file is part of the `arabluatex' package
3 3
4copyright (C) 2016 Robert Alessi 4Copyright (C) 2016 Robert Alessi
5 5
6Please send error reports and suggestions for improvements to 6Please send error reports and suggestions for improvements to
7Robert Alessi <alessi@robertalessi.net> 7Robert Alessi <alessi@robertalessi.net>
@@ -33,6 +33,40 @@ nulltr = {
33 {a="%|", b=""} 33 {a="%|", b=""}
34} 34}
35 35
36-- cap
37captr = {
38 -- dmg (defaut); loc as well
39 {a="ā", b="Ā"},
40 {a="b", b="B"},
41 {a="t", b="T"},
42 {a="ṯ", b="Ṯ"},
43 {a="ǧ", b="Ǧ"},
44 {a="ḥ", b="Ḥ"},
45 {a="ḫ", b="Ḫ"},
46 {a="d", b="D"},
47 {a="ḏ", b="Ḏ"},
48 {a="r", b="R"},
49 {a="z", b="Z"},
50 {a="s", b="S"},
51 {a="š", b="Š"},
52 {a="ṣ", b="Ṣ"},
53 {a="ḍ", b="Ḍ"},
54 {a="ṭ", b="Ṭ"},
55 {a="ẓ", b="Ẓ"},
56 {a="ġ", b="Ġ"},
57 {a="f", b="F"},
58 {a="q", b="Q"},
59 {a="k", b="K"},
60 {a="l", b="L"},
61 {a="m", b="M"},
62 {a="n", b="N"},
63 {a="h", b="H"},
64 {a="w", b="W"},
65 {a="ū", b="Ū"},
66 {a="y", b="Y"},
67 {a="ī", b="Ī"}
68}
69
36-- dmg 70-- dmg
37 71
38hamzatrdmg = { 72hamzatrdmg = {
@@ -210,27 +244,27 @@ digraphstrdmg = {
210} 244}
211 245
212singletrdmg = { 246singletrdmg = {
213 {a="b", b="b"}, 247 {a="b", b="b"},
214 {a="t", b="t"}, 248 {a="t", b="t"},
215 {a="j", b="ǧ"}, 249 {a="j", b="ǧ"},
216 {a="x", b="ḫ"}, 250 {a="x", b="ḫ"},
217 {a="d", b="d"}, 251 {a="d", b="d"},
218 {a="r", b="r"}, 252 {a="r", b="r"},
219 {a="z", b="z"}, 253 {a="z", b="z"},
220 {a="s", b="s"}, 254 {a="s", b="s"},
221 {a="`", b="ʿ"}, 255 {a="`", b="ʿ"},
222 {a="f", b="f"}, 256 {a="f", b="f"},
223 {a="q", b="q"}, 257 {a="q", b="q"},
224 {a="k", b="k"}, 258 {a="k", b="k"},
225 {a="l", b="l"}, 259 {a="l", b="l"},
226 {a="m", b="m"}, 260 {a="m", b="m"},
227 {a="n", b="n"}, 261 {a="n", b="n"},
228 {a="h", b="h"}, 262 {a="h", b="h"},
229 {a="w", b="w"}, 263 {a="w", b="w"},
230 {a="y", b="y"}, 264 {a="y", b="y"},
231 {a="T", b="t"}, 265 {a="T", b="t"},
232 {a="\"", b=""}, 266 {a="\"", b=""},
233 {a="B", b=""} 267 {a="B", b=""}
234} 268}
235 269
236longvtrdmg = { 270longvtrdmg = {
@@ -241,9 +275,9 @@ longvtrdmg = {
241} 275}
242 276
243shortvtrdmg = { 277shortvtrdmg = {
244 {a="u", b="u"}, 278 {a="u", b="u"},
245 {a="a", b="a"}, 279 {a="a", b="a"},
246 {a="i", b="i"} 280 {a="i", b="i"}
247} 281}
248 282
249-- loc 283-- loc
@@ -408,27 +442,27 @@ digraphstrloc = {
408} 442}
409 443
410singletrloc = { 444singletrloc = {
411 {a="b", b="b"}, 445 {a="b", b="b"},
412 {a="t", b="t"}, 446 {a="t", b="t"},
413 {a="j", b="j"}, 447 {a="j", b="j"},
414 {a="x", b="kh"}, 448 {a="x", b="kh"},
415 {a="d", b="d"}, 449 {a="d", b="d"},
416 {a="r", b="r"}, 450 {a="r", b="r"},
417 {a="z", b="z"}, 451 {a="z", b="z"},
418 {a="s", b="s"}, 452 {a="s", b="s"},
419 {a="`", b="`"}, 453 {a="`", b="`"},
420 {a="f", b="f"}, 454 {a="f", b="f"},
421 {a="q", b="q"}, 455 {a="q", b="q"},
422 {a="k", b="k"}, 456 {a="k", b="k"},
423 {a="l", b="l"}, 457 {a="l", b="l"},
424 {a="m", b="m"}, 458 {a="m", b="m"},
425 {a="n", b="n"}, 459 {a="n", b="n"},
426 {a="h", b="h"}, 460 {a="h", b="h"},
427 {a="w", b="w"}, 461 {a="w", b="w"},
428 {a="y", b="y"}, 462 {a="y", b="y"},
429 {a="T", b="t"}, 463 {a="T", b="t"},
430 {a="\"", b=""}, 464 {a="\"", b=""},
431 {a="B", b=""} 465 {a="B", b=""}
432} 466}
433 467
434longvtrloc = { 468longvtrloc = {
@@ -439,57 +473,11 @@ longvtrloc = {
439} 473}
440 474
441shortvtrloc = { 475shortvtrloc = {
442 {a="u", b="u"}, 476 {a="u", b="u"},
443 {a="a", b="a"}, 477 {a="a", b="a"},
444 {a="i", b="i"} 478 {a="i", b="i"}
445} 479}
446 480
447finaltrloc = { 481finaltrloc = {
448 {a="ʾ", b="'"}, 482 {a="ʾ", b="'"},
449} 483}
450
451-- cap
452captr = {
453 -- dmg (defaut); loc as well
454 {a="ā", b="Ā"},
455 {a="b", b="B"},
456 {a="t", b="T"},
457 {a="ṯ", b="Ṯ"},
458 {a="ǧ", b="Ǧ"},
459 {a="ḥ", b="Ḥ"},
460 {a="ḫ", b="Ḫ"},
461 {a="d", b="D"},
462 {a="ḏ", b="Ḏ"},
463 {a="r", b="R"},
464 {a="z", b="Z"},
465 {a="s", b="S"},
466 {a="š", b="Š"},
467 {a="ṣ", b="Ṣ"},
468 {a="ḍ", b="Ḍ"},
469 {a="ṭ", b="Ṭ"},
470 {a="ẓ", b="Ẓ"},
471 {a="ġ", b="Ġ"},
472 {a="f", b="F"},
473 {a="q", b="Q"},
474 {a="k", b="K"},
475 {a="l", b="L"},
476 {a="m", b="M"},
477 {a="n", b="N"},
478 {a="h", b="H"},
479 {a="w", b="W"},
480 {a="ū", b="Ū"},
481 {a="y", b="Y"},
482 {a="ī", b="Ī"}
483}
484
485-- return {
486-- raw = raw,
487-- hamza = hamza,
488-- trigraphs = trigraphs,
489-- tanwin = tanwin,
490-- digraphs = digraphs,
491-- single = single,
492-- longv = longv,
493-- shortv = shortv,
494-- null =null
495-- }