-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexample.html
81 lines (73 loc) · 3.14 KB
/
example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1">
<title>JLect Japanese Handwriting Recognition Tool (JLect JHR)</title>
<meta name="author" content="Zachary Read">
<link rel="stylesheet" href="example-style.css">
</head>
<body>
<header>
<h1>JLect Japanese Handwriting Recognition Tool (JLect JHR)</h1>
</header>
<main>
<h2>Find a kanji by drawing</h2>
<p>This page provides an example of how the JLect JHR library can be integrated onto your site.</p>
<h2>Handwritten Kanji Search</h2>
<p>Start drawing a Japanese character in the canvas below. The tool will begin outputting matches based on stroke order.</p>
<div id="canvas-table">
<div id="canvas-drawbox">
<div><canvas id="can" width="301" height="301"></canvas></div>
<div><input type="button" value="Clear" id="jhr-clear" size="23"><input type="button" value="Undo" id="jhr-undo" size="23"></div>
</div>
<div id="handwriting-results">
<h3>Near match:</h3>
<!-- Results based on all characters starting with
the same strokes as drawn on the canvas. -->
<div id="jhr-guess"></div>
<h3>Partial match:</h3>
<!-- Results based on the first three characters
and the number of drawn strokes on the canvas. -->
<div id="jhr-slength" lang="ja"></div>
<h3>Fuzzy match:</h3>
<!-- Results based on all characters containing
the same number of horizontal and vertical strokes,
without regard to order or diagonal strokes. -->
<div id="jhr-fuzzy" lang="ja"></div>
<h3>Similarity match:</h3>
<!-- Results based on all characters containing
the same set of strokes as drawn on the canvas. -->
<div id="jhr-similarity" lang="ja"></div>
<h3>Wrong order match:</h3>
<!-- Results based on the characters with exact matching
number of stroke types, without regard to order. -->
<div id="jhr-wrongorder" lang="ja"></div>
</div>
</div>
<div>
<input type="button" value="Generate random CJK character" size="23" id="jhr-generate-random-cjk">
<div id="jhr-random-cjk" lang="ja"></div>
</div>
<div>
<h2>Supplemental data</h2>
<div>Angles: <span id="jhr-angles"></span></div>
<div>Direction: <span id="jhr-direction"></span></div>
<div>Overlap: <span id="jhr-overlap"></span></div>
<div>Saver: <span id="jhr-saver"></span></div>
</div>
<div>
<h2>Code repository</h2>
<p><a href="https://github.com/ZacharyRead/jlect-jhr">Check out the repository on Github!</a></p>
</div>
</main>
<footer>
<nav>
<a href="https://github.com/ZacharyRead/jlect-jhr">Code repository</a> |
<a href="https://github.com/ZacharyRead/jlect-jhr#jlect-japanese-handwriting-recognition-tool-jlect-jhr">Readme</a> |
<a href="https://github.com/ZacharyRead/jlect-jhr#license">License</a> |
<a href="https://github.com/ZacharyRead/jlect-jhr/issues">Issue tracker</a>
</nav>
</footer>
<script charset="UTF-8" src="jlect-jhr.full.js?20240407-1852"></script>
</body>
</html>