is_arabic
Mojo function 🡭
is_arabic
fn def is_arabic(cp: Int) -> BoolWhether cp belongs to one of the Arabic blocks – what selects the arab OpenType script for a run, and so the joining features. The presentation-form blocks are included because a font tags their ccmp and ligature lookups arab too, even though the characters themselves take no contextual form.
Args:
- cp (
Int): A Unicode codepoint.
Returns:
Bool: True for Arabic, Arabic Supplement, Arabic Extended-A/B and the
two Arabic presentation-form blocks.