本文へ移動

Bushu部首

漢字に見える部品を選び、全てを含む漢字を探し、ページに部首選択を追加できます。

「部首」は、漢字を分類する部分です。 名前について(英語)

目次

リファレンス · 漢字の画数

KANJI_STROKES定数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

THE STROKE COUNT OF EVERY KANJI IN THE RADICAL INDEX, from KANJIDIC2. Written by scripts/build-data.mjs, never edited by hand; the monthly refresh (.github/workflows/radkfile-refresh.yml) runs the script again.

KANJIDIC2 is 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 it and is under the same licence (see NOTICE.md).

6355 kanji, grouped by their stroke count so that a count is one string; where KANJIDIC2 lists more than one count for a kanji, this is the first, the accepted one.

インポート

import { KANJI_STROKES } from "@johnmorrisdotca/bushu/strokes";

定義

const KANJI_STROKES: { source: { name: string; url: string; fileVersion: string | null; databaseVersion: string | null; fileDate: string | null; sha256: string; retrieved: string; }; byStrokes: Readonly<Record<string, string>>; }

メンバー

名前型説明
source{ name: string; url: string; fileVersion: string | null; databaseVersion: string | null; fileDate: string | null; sha256: string; retrieved: string; }

What this was made from: the file's address, SHA-256 (of the file as served, gzipped), the date this was made, and what the file says of itself.

byStrokesReadonly<Record<string, string>>

Stroke count to the kanji with that many, in code point order.

例

import { KANJI_STROKES } from "@johnmorrisdotca/bushu/strokes";

console.log(Object.keys(KANJI_STROKES.byStrokes).length);
30

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/bushu 1.1.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。