/** * Targeted script itemizer for mixed-script shaping. * * pdf-lib calls fontkit `layout()` once per string and emits only glyph IDs * (GPOS offsets are discarded). fontkit then picks a single script from the * first strong character, which skips Thai/Lao GSUB mark-variant substitutions * when Latin or CJK leads the string. * * Only mark-critical scripts are split out. Everything else stays one run so * existing Latin/CJK output stays bit-identical. Add a row (and a font-level * test) to extend the allowlist. */ /** * Split `text` into shaping runs at Thai/Lao script boundaries. * Concatenating the result always reproduces the input. */ export declare const splitTextIntoShapingRuns: (text: string) => string[];