RADKFILE定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
THE RADICALS AND THEIR KANJI, from RADKFILE. Written by scripts/build-data.mjs, never edited by hand; the monthly
refresh (.github/workflows/radkfile-refresh.yml) runs the script again.
RADKFILE and KRADFILE are the property of the Electronic Dictionary Research and Development Group (EDRDG), used under the Creative Commons Attribution-ShareAlike 4.0 licence and the Group's conditions: https://www.edrdg.org/edrdg/licence.html. This data is derived from them and is under the same licence (see NOTICE.md).
253 radicals, in the file's own order (fewest strokes first), each with its stroke count as RADKFILE writes it
and every kanji that holds it; 6355 kanji in all (the JIS X 0208 set). A radical with no character of its own is keyed by a kanji that
holds the shape (汁 for 氵): radicalForm says the shape. KRADFILE, which lists the same thing kanji by kanji, was checked to
agree with RADKFILE on every one of the 6355 kanji before this was written. unicode is the character EDRDG means by a stand-in,
from KRADFILE's header.
インポート
import { RADKFILE } from "@johnmorrisdotca/bushu/radkfile";
定義
const RADKFILE: { sources: Record<"radkfile" | "kradfile", { name: string; url: string; fileDate: string | null; sha256: string; retrieved: string; }>; radicals: readonly Radical[]; unicode: Readonly<Record<string, string>>; }
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
sources | Record<"radkfile" | "kradfile", { name: string; url: string; fileDate: string | null; sha256: string; retrieved: string; }> | What this was made from: each file's address, SHA-256 (of the file as served, gzipped) and the date this was made, and the date the file gives itself. |
radicals | readonly Radical[] | |
unicode | Readonly<Record<string, string>> |
例
import { RADKFILE } from "@johnmorrisdotca/bushu/radkfile";
const radicals = RADKFILE.radicals;
console.log(RADKFILE.radicals.length);253出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。