本文へ移動

Bushu部首

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

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

目次

リファレンス

部品の共通部分と表示形

import { … } from "@johnmorrisdotca/bushu";

最小化と gzip 圧縮をしたサイズは 0.9 kB(読み込むものをすべて含み、esbuild で計測)

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

Bushu 部首, the radical lookup: find a kanji by the parts it is made of, with no page and no data needed.

The data is in /radkfile (the radicals), /names (さんずい, にんべん, くさかんむり) and /strokes (the strokes of a kanji), and the picker to put in a page in /picker.

エクスポート

名前種類概要
isRadicalStandIn関数True when the key is a stand-in, so that the form, not the key, is the thing to draw and to name.
kanjiForRadicals関数The kanji that hold every one of the chosen radicals, in the order of the first radical's list (the dictionary's own).
orderChosen関数The chosen radicals in the grid's own order, not the order they were clicked, so the choice reads as a row of the grid.
Radical型A radical, or a common element of kanji, as RADKFILE lists it.
RADICAL_FORMS定数WHAT A RADKFILE RADICAL LOOKS LIKE, AS OPPOSED TO WHAT IT IS KEYED BY.
radicalForm関数The shape to draw for a RADKFILE key: the stand-in's own shape (汁 gives 氵), or the key itself where it already is the shape.
RadicalGroup型The radicals that share a stroke count, as the grid of a picker draws them.
radicalGroups関数The grid: the radicals in stroke-count order, grouped by the count, in the order they were given within a count.
radicalsInKanji関数The radicals a character is written with, fewest strokes first.
radicalStrokes関数The stroke count to file a RADKFILE radical under: its own, except for the two it miscounts.
RADKFILE_STROKE_CORRECTIONS定数THE TWO STROKE COUNTS RADKFILE GETS WRONG.
usableRadicals関数The radicals that can still narrow what is left: every one that appears in at least one of the kanji that match now.
VERSION定数The package's version.
withCorrectedStrokes関数The radicals with the two miscounts put right, as new entries in the same order.

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

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