HF RL Explorer

Handle Grapheme Clusters in Cell Width Calculation

Handle Grapheme Clusters in Cell Width Calculation: a task in deepagent (Harbor dataset). The library currently measures the display width of text on a per-codepoint basis. This breaks for modern Unicode text where a single visible character (a grapheme cluster ) is composed of multiple codepoints…

The task

The library currently measures the display width of text on a per-codepoint basis. This breaks for modern Unicode text where a single visible character (a *grapheme cluster*) is composed of multiple codepoints — for example emoji with skin-tone or variation-selector modifiers, flag sequences, ZWJ (zero-width joiner)…

Part of BaseIntelligence/deepagent.