From 81fc2bd6d063db92f90171722e8129875bdb56cd Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Mon, 4 Mar 2024 13:42:48 +0100 Subject: add arabic diacritics: maddah, hamza, subscript and superscript alef (#762) --- ext/js/language/ar/arabic-text-preprocessors.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ext/js') 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'); -- cgit v1.2.3