For AI agents: the complete documentation index is available at https://canary.gukhanmun.org/ko-Kore/llms.txt, the full documentation bundle is available at https://canary.gukhanmun.org/ko-Kore/llms-full.txt, and this page is available as Markdown at https://canary.gukhanmun.org/ko-Kore/guide/rust/install.md.
  • 韓國語 (國漢文)
  • 設置

    Cargo.toml에 gukhanmun을 追加합니다:

    cargo add gukhanmun

    피처 플래그

    아래의 모든 피처는 基本으로 켜져 있습니다. 컴파일 時間과 바이너리 크기를 줄이려면 基本 피처를 끄고 必要한 것만 選擇합니다:

    피처더해 주는 것基本
    htmlHTML 조각(fragment) 變換예
    markdownMarkdown 變換예
    fstFST 辭典 백엔드(.gukfst 파일)예
    cdbCDB 辭典 백엔드(.gukcdb 파일)예
    stdict內藏 《標準國語大辭典》(約 3 MB)예
    opendict內藏 《우리말샘》(約 8 MB)예
    loanwords內藏 NIKL 外來語 用例(fst 包含)예

    loanwords 피처는 國立國語院 《外來語 表記 用例》 辭典을 提供하는 gukhanmun-loanwords를 包含합니다. Preset::KoKr는 이 辭典을 自動으로 選擇하고, Preset::KoKp는 基本으로 끕니다. 基本 피처를 껐다면 loanwords를 明示的으로 켜서 이 辭典을 使用할 수 있습니다:

    cargo add gukhanmun --no-default-features -F stdict,loanwords

    內藏 辭典 없이 빌드하려면(自身의 辭典을 提供할 때 有用):

    cargo add gukhanmun --no-default-features -F fst

    平文 텍스트 專用의 最小 바이너리를 빌드하려면:

    cargo add gukhanmun --no-default-features -F stdict

    基本 피처를 끌 때는 빌더에서도 對應하는 프리셋 辭典을 끕니다. fst만 켰다면 .no_bundled_dictionaries()를, stdict만 켰다면 .no_bundled_loanwords()를 .build() 前에 呼出합니다. 피처가 꺼진 內藏 辭典을 要求하면 設定 誤謬가 發生합니다.