Computing Distances Between Japanese Kanji from Stroke Order and Pen Movements
DOI:
https://doi.org/10.15475/calcip.2026.2.5Keywords:
Kanji, Japanese writing system, Chinese writing system, Japanese characters, Chinese characters, character comparisonAbstract
KanjiVG provides vector drawings of Japanese kanji in which individual strokes are stored separately and in their prescribed order. This information makes it possible to compare characters not only as static images, but also as sequences of drawing movements. This article introduces a straightforward way to calculate distances between kanji using their SVG paths. Each stroke is represented by a small set of points, and the movements between successive strokes are recorded. A sequence-alignment procedure then compares the resulting representations, allowing characters with different stroke counts to be compared. The method is illustrated with a short JavaScript implementation applied to six characters from a fixed KanjiVG release. In this small set, each character's nearest neighbor is its intended visually similar partner (未/末, 木/本, 日/目), and the optimal alignments identify the strokes that distinguish the members of each pair. The procedure is intended as an accessible starting point for exploring stroke-based character similarity, rather than as a validated model of human visual perception.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Copyright remains with the author.

This work is licensed under a Creative Commons Attribution 4.0 International License.
As a general rule, all articles in this journal are published with CC-BY Attribution 4.0 License.