Interface: Directives

Per-hanja rendering directives that override the dictionary's own marks.

Each list contains hanja forms (exact string matches, e.g. "漢字"). JavaScript bindings expose only the literal-set form; glob and predicate variants are available in the Rust API only.

Corresponds to Rust UserDirectives with DirectiveAction::RequireHanja, DirectiveAction::RequireHangul, and DirectiveAction::SkipAnnotation.

Properties

requireHangul?

readonly optional requireHangul?: readonly string[]

Hanja forms that must always be shown with a hangul gloss alongside the original hanja (relevant for rendering: "original").


requireHanja?

readonly optional requireHanja?: readonly string[]

Hanja forms that must always be shown with their original hanja alongside the hangul reading, as if requireHanja were set in the dictionary.


skipAnnotation?

readonly optional skipAnnotation?: readonly string[]

Hanja forms whose annotation should be suppressed entirely; the renderer emits only the primary plain text form (hangul or hanja depending on rendering).