File: match

package info (click to toggle)
kanjidraw 0.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,912 kB
  • sloc: python: 556; makefile: 35; sh: 22
file content (9 lines) | stat: -rw-r--r-- 244 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/bash
set -ex
export LC_ALL=C.UTF-8
strokes='[[137.7, 17.85, 33.15, 243.525], [91.8, 107.7375, 224.4, 228.8625]]'
best_match="$(python3 -c "
from kanjidraw.lib import matches
print(next(matches($strokes))[1])
")"
test "$best_match" = 人