Function precis_core::context::rule_zero_width_nonjoiner

source ·
pub fn rule_zero_width_nonjoiner(
    s: &str,
    offset: usize,
) -> Result<bool, ContextRuleError>
Expand description

Appendix A.1. ZERO WIDTH NON-JOINER U+200C This may occur in a formally cursive script (such as Arabic) in a context where it breaks a cursive connection as required for orthographic rules, as in the Persian language, for example. It also may occur in Indic scripts in a consonant-conjunct context (immediately following a virama), to control required display of such conjuncts.

§Arguments

  • s: String value to check
  • offset: The position of the character in the label

§Returns

True if context permits a ZERO WIDTH NON-JOINER U+200C.