aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2016-07-08 20:07:46 +0200
committerRobert Alessi <alessi@robertalessi.net>2016-07-08 20:07:46 +0200
commitdabfd4942964958fb68bb9aa162b28afc84b4f8c (patch)
tree7cba8a26da0b5eeea104dcb184cd9b9597670ffe
parent49c354cef4963ffd5ead19e6baed17f97e340970 (diff)
downloadarabluatex-dabfd4942964958fb68bb9aa162b28afc84b4f8c.tar.gz
added Buckwalter 'safe' notation
-rw-r--r--arabluatex_voc.lua16
1 files changed, 14 insertions, 2 deletions
diff --git a/arabluatex_voc.lua b/arabluatex_voc.lua
index 39da99e..6df1370 100644
--- a/arabluatex_voc.lua
+++ b/arabluatex_voc.lua
@@ -74,6 +74,7 @@ raw = {
74buckwalter = { 74buckwalter = {
75 --- hard coded madda: hold it for now 75 --- hard coded madda: hold it for now
76 {a="%|", b="@"}, 76 {a="%|", b="@"},
77 {a="M", b="@"}, -- BW safe
77 -- prevent any unwanted šadda from being generated 78 -- prevent any unwanted šadda from being generated
78 {a="bb", b="b|b"}, 79 {a="bb", b="b|b"},
79 {a="tt", b="t|t"}, 80 {a="tt", b="t|t"},
@@ -82,10 +83,12 @@ buckwalter = {
82 {a="HH", b="H|H"}, 83 {a="HH", b="H|H"},
83 {a="xx", b="x|x"}, 84 {a="xx", b="x|x"},
84 {a="dd", b="d|d"}, 85 {a="dd", b="d|d"},
85 {a="%*|%*", b="*|*"}, 86 {a="%*%*", b="*|*"},
87 {a="VV", b="V|V"}, -- BW safe
86 {a="rr", b="r|r"}, 88 {a="rr", b="r|r"},
87 {a="ss", b="s|s"}, 89 {a="ss", b="s|s"},
88 {a="%$%$", b="$|$"}, 90 {a="%$%$", b="$|$"},
91 {a="cc", b="c|c"}, -- BW safe
89 {a="SS", b="S|S"}, 92 {a="SS", b="S|S"},
90 {a="DD", b="D|D"}, 93 {a="DD", b="D|D"},
91 {a="TT", b="T|T"}, 94 {a="TT", b="T|T"},
@@ -107,10 +110,15 @@ buckwalter = {
107-- {a="%>a\'([^uai])", b="@@@%1"}, -- hold this (madda) 110-- {a="%>a\'([^uai])", b="@@@%1"}, -- hold this (madda)
108 {a="a?A\'", b="@@"}, -- hold this (classic madda) 111 {a="a?A\'", b="@@"}, -- hold this (classic madda)
109 {a="\'", b="|\"\'"}, 112 {a="\'", b="|\"\'"},
113 {a="C", b="|\"\'"}, -- BW safe
110 {a="%>", b="a\"\'"}, 114 {a="%>", b="a\"\'"},
115 {a="O", b="a\"\'"}, -- BW safe
111 {a="%&", b="w\"\'"}, 116 {a="%&", b="w\"\'"},
117 {a="W", b="w\"\'"}, -- BW safe
112 {a="%<", b="i\"\'"}, 118 {a="%<", b="i\"\'"},
119 {a="I", b="i\"\'"}, -- BW safe
113 {a="%]", b="y\"\'"}, 120 {a="%]", b="y\"\'"},
121 {a="Q", b="y\"\'"},
114 -- hamza end 122 -- hamza end
115 -- trigraphs 123 -- trigraphs
116 {a="^Aal%-?", b="al-"}, 124 {a="^Aal%-?", b="al-"},
@@ -134,10 +142,13 @@ buckwalter = {
134 -- šadda: 142 -- šadda:
135 {a="([%g])(%~)", b="%1%1"}, 143 {a="([%g])(%~)", b="%1%1"},
136 {a="%`", b="_a"}, 144 {a="%`", b="_a"},
145 {a="e", b="_a"}, -- BW safe
137 {a="v", b="_t"}, 146 {a="v", b="_t"},
138 {a="H", b=".h"}, 147 {a="H", b=".h"},
139 {a="%*", b="_d"}, 148 {a="%*", b="_d"},
149 {a="V", b="_d"}, -- BW safe
140 {a="%$", b="^s"}, 150 {a="%$", b="^s"},
151 {a="c", b="^s"}, -- BW safe
141 {a="S", b=".s"}, 152 {a="S", b=".s"},
142 {a="D", b=".d"}, 153 {a="D", b=".d"},
143 {a="T", b=".t"}, 154 {a="T", b=".t"},
@@ -150,7 +161,8 @@ buckwalter = {
150 {a="K", b="iN"}, 161 {a="K", b="iN"},
151 {a="o", b="\""}, 162 {a="o", b="\""},
152 -- hard-coded connective alif 163 -- hard-coded connective alif
153 {a="%[", b="ٱ"} 164 {a="%[", b="ٱ"},
165 {a="L", b="ٱ"} -- BW safe
154} 166}
155 167
156hamza = { 168hamza = {