RADICAL_NAMES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
THE JAPANESE SCHOOL NAMES OF THE RADICALS, from Kanji alive. Written by scripts/build-names.ts (pnpm data:names), never edited by hand.
Kanji alive, by Harumi Hibino Lory and Arno Bosse (University of Chicago), is used under the Creative Commons Attribution 4.0 licence (https://creativecommons.org/licenses/by/4.0/); its radicals table is read from one commit of https://github.com/kanjialive/kanji-data-media. These names are derived from it and are under the same licence (see NOTICE.md).
227 of RADKFILE's 253 radicals have a name; the other 26 are components no school lists as a radical, and are left out rather than guessed. Keyed by the RADKFILE key, as everything about a radical is, so a stand-in is looked up as written: 汁 answers さんずい.
インポート
import { RADICAL_NAMES } from "@johnmorrisdotca/bushu/names";
定義
const RADICAL_NAMES: { source: { name: string; publisher: string; url: string; commit: string; licence: string; files: Readonly<Record<string, string>>; retrieved: string; }; names: Readonly<Record<string, { name: string; romaji: string; meaning: string; position: string | null; kangxi: number | null; }>>; }
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
source | { name: string; publisher: string; url: string; commit: string; licence: string; files: Readonly<Record<string, string>>; retrieved: string; } | What this was made from: the commit of Kanji alive's repository, the two files read, and the date this was made. |
names | Readonly<Record<string, { name: string; romaji: string; meaning: string; position: string | null; kangxi: number | null; }>> |
例
import { RADICAL_NAMES } from "@johnmorrisdotca/bushu/names";
console.log(Object.keys(RADICAL_NAMES.names).length);227出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。