Skip to the content

Jisho辞書

The words of JMdict looked up by reading, written form, English meaning, a kanji in them or romaji, in small pieces fetched as needed, safe by default or unfiltered with every sense's marks, and the school grades, JLPT levels, readings, meanings and look-alike pairs of 2,999 kanji, each table an entry point of its own.

Jisho is the Japanese word 辞書 for a dictionary: this one holds Japanese words and kanji. About the name

Contents

Reference · Stroke order from KanjiVG: draw it, and find a kanji by drawing it

strokesOffunction

The strokes of a kanji in the order they are written, each as an SVG path.

Import it

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

Definition

function strokesOf(table: PackedStrokes, kanji: string): readonly string[]

Parameters

NameTypeDescription
tablePackedStrokes

What loadStrokes or loadAllStrokes gave.

kanjistring

One kanji.

Returns

readonly string[]

The paths, one for each stroke; none for a kanji the table has no strokes for.

Examples

import { loadStrokes, strokesOf } from "@johnmorrisdotca/jisho/strokes";

console.log(strokesOf(await loadStrokes("日"), "日").length); // 4
4

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jisho 2.11.0.