pub fn annotate(doc: &mut Document, profile: Option<&str>)Expand description
What the profile adds to an extracted document: under the LocOS profile, context.extra[P_INDEX] on every unit
whose format knows LocOS’s paragraph index (odf, Qt ts and wxl from their p_index, icml from its paragraph
index, idml from its p<n> unit ids); the inline codes LocOS keeps as unit text turned back into that text (key
and value formats, JSON, PO, ARB placeholders, FTL placeables); context.style cleared where LocOS has none and
locos.style set where it has one (dtd; ODF heading and comment, its paragraph styles cleared). Nothing for
other profiles. The bilingua facade calls this.