Version: latest
agrag.loaders.walk.normalize_inline_text
normalize_inline_text(text:str, opts:ReadOptions) -> tuple[str, Normalization]
Normalize text that a caller passed in memory.
Inline text has no bytes to decode, so only the Unicode form applies.
Parameters:
- text (
str) – The text as the caller gave it. - opts (
ReadOptions) – The read options. Onlyopts.normalization.unicode_formis used.
Returns:
tuple[str, Normalization]– The normalized text and the normalization to record on its document.