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

pathPointsfunction

Points along a path: its curves cut into steps straight pieces each. Reads what KanjiVG writes: M, C and S, absolute and relative.

Import it

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

Definition

function pathPoints(path: string, steps?: number): Point[]

Parameters

NameTypeDescription
pathstring

An SVG path of a stroke.

steps (optional)number

How many pieces each curve is cut into. 6 unless given.

Returns

Point[]

The points, from where the stroke starts to where it ends.

Examples

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

console.log(pathPoints("M0,0c10,0,20,0,30,0", 3).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.