aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/ar
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-03-04 13:42:48 +0100
committerGitHub <noreply@github.com>2024-03-04 12:42:48 +0000
commit81fc2bd6d063db92f90171722e8129875bdb56cd (patch)
tree63f64736d44c4f1d058ab1ed9043e7b2597c5336 /ext/js/language/ar
parent5c8a629df4696480e1a01893474dc782b6c9c672 (diff)
add arabic diacritics: maddah, hamza, subscript and superscript alef (#762)
Diffstat (limited to 'ext/js/language/ar')
-rw-r--r--ext/js/language/ar/arabic-text-preprocessors.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/js/language/ar/arabic-text-preprocessors.js b/ext/js/language/ar/arabic-text-preprocessors.js
index 7adb39e9..6007d770 100644
--- a/ext/js/language/ar/arabic-text-preprocessors.js
+++ b/ext/js/language/ar/arabic-text-preprocessors.js
@@ -28,7 +28,12 @@ const optionalDiacritics = [
'\u064F', // Damma
'\u0650', // Kasra
'\u0651', // Shadda
- '\u0652' // Sukun
+ '\u0652', // Sukun
+ '\u0653', // Maddah
+ '\u0654', // Hamza Above
+ '\u0655', // Hamza Below
+ '\u0656', // Subscript Alef
+ '\u0670' // Dagger Alef
];
const diacriticsRegex = new RegExp(`[${optionalDiacritics.join('')}]`, 'g');