本文へ移動

Jisho辞書

JMdictの単語を読み、表記、英語の意味、含まれる漢字、ローマ字から引け、必要な小さなチャンクだけを取得します。初期値はセーフモードで、各語義にはJMdictの印が付き、「フィルターなし」も選べます。2,999字の漢字の学年、JLPTレベル、読み、意味、形の似た漢字の組も収め、表ごとに独立したエントリポイントがあります。

「Jisho」は「辞書」のローマ字表記です。日本語の単語と漢字を収めています。 名前について(英語)

目次

リファレンス

KanjiVG由来の筆順:描く、描いた漢字から探す

import { … } from "@johnmorrisdotca/jisho/strokes";

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

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

The stroke order of a kanji: the strokes in the order they are written, each as the SVG path KanjiVG draws it with in a square of 109 by 109, drawn as an SVG that writes itself stroke by stroke, and a search by drawing a kanji that compares the strokes as they were drawn with these. The strokes are made from KanjiVG (CC BY-SA 3.0) and are in pieces of about 20 kB gzipped, each holding some kanji, which loadStrokes fetches for the kanji it is asked about and loadAllStrokes for all of them, as a search by drawing needs.

エクスポート

名前種類概要
DrawingMatch型What findByDrawing gives for a kanji: the kanji, and how far its strokes are from the drawn ones (0 is the same, and about 0.1 a careful hand).
findByDrawing関数The kanji whose strokes are nearest to what was drawn, nearest first.
loadAllStrokes関数The strokes of every kanji the table has, about 1.1 MB gzipped in 57 pieces, as a search by drawing needs them.
loadStrokes関数The strokes of the kanji in a text, fetched: one piece of about 20 kB gzipped for each place they are in.
PackedStrokes型The table of the strokes as the data file holds it: where it was made from, the release, and for each kanji its paths, apart by "|".
pathPoints関数Points along a path: its curves cut into steps straight pieces each.
Point型A point of a drawing or of a stroke: x then y, in the units of whoever drew it.
STROKE_BOX定数The side of the square KanjiVG draws in.
StrokeOrderOptions型How a drawing of the strokes looks and moves.
strokeOrderSvg関数The strokes as an SVG, text a page can put in an element or a server can send: each stroke is a path, and with animate each is written in its turn with CSS that the SVG carries, so that it needs no script and works where an <img> does not.
strokesOf関数The strokes of a kanji in the order they are written, each as an SVG path.

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

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