> For AI agents: the complete documentation index is available at https://canary.gukhanmun.org/ko-KR/llms.txt, the full documentation bundle is available at https://canary.gukhanmun.org/ko-KR/llms-full.txt.

# 지시

`directives` 옵션을 사용하면 특정 한자 문자에 대해 병기 표지를 덮어쓸 수
있습니다.

## 지시 인터페이스(interface)

```ts twoslash
interface Directives {
  requireHanja?:    string[];  // 出力에 漢字를 恒常 表示
  requireHangul?:   string[];  // 한글 讀音을 恒常 表示("original" 모드用)
  skipAnnotation?:  string[];  // 倂記를 全的으로 抑制
}
```

각 배열은 표지를 덮어쓰려는 한자 문자열을 담습니다:

```ts twoslash
import { load } from "@gukhanmun/wasm";
import { stdictFst } from "@gukhanmun/stdict-fst";

const g = await load({
  dictionaries: [await stdictFst()],
  directives: {
    requireHanja:   ["漢", "字"],
    requireHangul:  ["東"],
    skipAnnotation: ["中"],
  },
});
```

## 렌더링 모드와의 결합

지시는 활성 렌더링 모드와 상호작용합니다:

- `requireHanja`는 `"hangul-only"` 모드에서 가장 잘 드러나며, 한자가 한글 독음
  곁에 나타나도록 강제합니다.
- `requireHangul`은 `"original"` 모드에서 특정 문자의 한글 병기를 강제하는 데
  유용합니다.
- `skipAnnotation`은 모드와 무관하게 일절의 병기를 억제합니다.
