13Type offline handwriting shape data Modified by 13Type on 2026-09-30. handwriting-shapes.bin is derivative DATA redistributed under the unaltered Arphic Public License in ARPHICPL.TXT. Recipients may copy, redistribute and modify this data under that license. The data is provided without warranty. The independently written Swift matcher is not upstream recognition code. Upstream: Make Me a Hanzi (graphics.txt only; dictionary.txt is not used). https://github.com/skishore/makemeahanzi Revision: bddc96d41bef78427ed0e034e9f7e31d71fd1b92 Exact source: https://raw.githubusercontent.com/skishore/makemeahanzi/bddc96d41bef78427ed0e034e9f7e31d71fd1b92/graphics.txt Source graphical data derives from Arphic PL KaitiM GB and Arphic PL UKai. Copyright (C) 1999 Arphic Technology Co., Ltd. Original upstream license routing: Upstream-COPYING.txt. Changes: discarded SVG outlines; flipped the median y-axis; normalized each character to a centered square while preserving its aspect ratio; resampled each stroke to eight arc-length points; computed an 8x8 spatial feature; quantized values to bytes; converted the result to the format below. The modification notice is also embedded in the binary itself. Reproduction script: Tools/build-handwriting-templates.py in the 13Type repo. This derivative data, license and provenance must be freely available to third parties before distributing a build (e.g. the public source-data download prepared under Distribution/mac-site/open-source/handwriting). Binary v1 format, all integers little endian: - 8-byte signature/version: 31 33 48 57 01 08 08 00. - UInt32 character count; UInt32 UTF-8 modification-notice byte length; that many notice bytes. - Each record: UInt32 Unicode scalar, UInt8 stroke count, 3 reserved bytes, 64 bytes of unit-L2 spatial features scaled by 255, then strokeCount * 16 bytes of normalized x,y point pairs (8 pairs per stroke, scaled by 255). This is a nearest-shape candidate fallback, not a trained recognition model. Templates contain common simplified and traditional characters. Upstream stroke order follows PRC conventions; the matcher allows stroke reordering. Unusual cursive writing, joined strokes and characters outside the data may still need a trained digital-ink recognizer. No measured accuracy is claimed.