Function precis_core::context::rule_zero_width_joiner

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

Appendix A.2. ZERO WIDTH JOINER
This 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

Return true if context permits a ZERO WIDTH JOINER U+200D.