Directives
Directives adjusts how selected readings are presented. It does not add
dictionary entries or choose a different reading. Its three sequences contain
literal hanja forms, rather than glob patterns or Python callbacks.
Rules operate on conversion annotations. Add the whole term to a dictionary if it needs to be recognized as a single unit. Dictionary identity metadata can mark an alternate spelling as a reviewed alias of a canonical form. A literal rule for that canonical form then also applies to the alias.
Combining directives with rendering
For ORIGINAL, a required hangul reading becomes a gloss:
skip_annotation suppresses parentheses and ruby rather than preserving the
input verbatim. Modes with hangul as their primary text keep the reading; modes
with hanja as their primary text keep hanja. To leave an HTML subtree
unconverted, use HTML preservation rules.
One form may appear in both require_hanja and require_hangul.
skip_annotation suppresses annotation rendering even when a requirement is
also present. Input sequences are copied into immutable tuples at construction.