Skip to content

Commit

Permalink
add arabic diacritics: maddah, hamza, subscript and superscript alef
Browse files Browse the repository at this point in the history
<rikaitan.link>H4sIAAAAAAAAAwXBSREAMAgEsH/VwHa47MAW/xKapO6g6RS/7MKWaGgALxWVYc02H54PKEkVKykAAAA=</rikaitan.link>
  • Loading branch information
StefanVukovic99 authored and tatsumoto-ren committed Mar 5, 2024
1 parent cff721c commit 1037a8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/js/language/ar/arabic-text-preprocessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1037a8b

Please sign in to comment.