RadicalNameEntry型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
WHAT A JAPANESE SCHOOL CALLS A RADICAL: 氵 is さんずい, 辶 is しんにょう, 艹 is くさかんむり. The names a learner hears from a teacher, which are neither the dictionary's English ("water", "walk", "grass") nor any course's mnemonics. From Kanji alive's table of the 214 Kangxi radicals and their variants (CC BY 4.0, credit in NOTICE.md), joined to RADKFILE's 253 by shape. 227 have a name; the rest are components no school lists as a radical (九, 乞, 久, 井), and a caller gets null for those, never a guess.
Keyed by the RADKFILE key, as everything about a radical is, so a stand-in is looked up as written: 汁 answers さんずい. The names are a plain import, so a page that draws a radical's name draws it with no request.
インポート
import type { RadicalNameEntry } from "@johnmorrisdotca/bushu/names";
定義
type RadicalNameEntry = {
readonly name: string;
readonly romaji: string;
readonly meaning: string;
readonly position: string | null;
readonly kangxi: number | null;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
name | string | The name, in hiragana. |
romaji | string | |
meaning | string | Kanji alive's English meaning, which is also the classical name. |
position | string | null | Where the shape sits in a character (へん, つくり, かんむり...), or null. |
kangxi | number | null | The Kangxi radical number the shape belongs to. |
例
import type { RadicalNameEntry } from "@johnmorrisdotca/bushu/names";
import { radicalNameEntry } from "@johnmorrisdotca/bushu/names";
const value: RadicalNameEntry = radicalNameEntry("汁")!;
console.log(value);{
name: 'さんずい',
romaji: 'sanzui',
meaning: 'water',
position: 'へん',
kangxi: 85
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。