Ignoring Arabic diacritics
-
Hello!
Is there any way to ignore Arabic diacritics when highlighting?
I’m not sure if it will help out but I’ve used this code to remove it for some other things, I’m just not sure how to use it in this case:function arabic_remap( $a ) { $remap = array( '?' => '?', '?' => '?', '?' => '?', '?' => '?', '?' => '?', '?' => '?', '?' => '', '?' => '?', ); $diacritics = array( '~[\x{0600}-\x{061F}]~u', '~[\x{063B}-\x{063F}]~u', '~[\x{064B}-\x{065E}]~u', '~[\x{066A}-\x{06FF}]~u', ); $a = preg_replace( $diacritics, '', $a ); $a = str_replace( array_keys( $remap ), array_values( $remap ), $a ); return $a;
Is there any way you could fix this?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Ignoring Arabic diacritics’ is closed to new replies.