Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
152 lines (145 loc) · 9.58 KB
/
Copy pathindex.html
File metadata and controls
152 lines (145 loc) · 9.58 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!doctype html>
<html lang="kn">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>ಕೈಬರಹ ಸಂಚಯ — Kaibaraha Sanchaya</title>
<meta name="description" content="Write with a stylus, finger, mouse or touchpad and get editable Unicode text in Kannada and other languages. A Sanchaya project.">
<meta name="theme-color" content="#ffffff">
<link rel="icon" type="image/png" href="img/favicon-32x32.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+Kannada:wght@400;600&display=swap">
<link rel="stylesheet" href="vendor/jquery.ime/css/jquery.ime.css">
<link rel="stylesheet" href="css/app.css?v=20261127-tracing">
<script>
// Deployment settings — the only place to edit when hosting.
window.KAIBARAHA_CONFIG = {
defaultLang: 'kn',
googleEndpoint: 'https://inputtools.google.com/request?ime=handwriting&app=sanchaya&cs=1&oe=UTF-8',
sanchayaEndpoint: null, // e.g. 'https://kaibaraha-api.sanchaya.net/request' — same JSON as Google; preferred when set
engineOrder: ['sanchaya', 'native', 'google', 'tesseract'], // “Auto” tries these in order
debounceMs: 250, // pause after a stroke before live recognition
autoCommitMs: 1500, // idle time before a word is accepted and the pad clears (0 = manual)
autoSpace: true, // add a space after each committed word
maxCandidates: 8,
imePath: 'vendor/jquery.ime/'
};
</script>
</head>
<body>
<nav class="topnav">
<a class="brand" href="./" aria-label="ಕೈಬರಹ ಸಂಚಯ home">
<img src="img/app-icon-light.png" alt="ಸಂಚಯ" class="nav-logo">
<span class="nav-tagline">ಕೈಬರಹ ಸಂಚಯ — ಕೈಬರಹದಿಂದ ಯುನಿಕೋಡ್ ಪಠ್ಯಕ್ಕೆ</span>
</a>
<div class="menu-items">
<a href="#how">ತಂತ್ರಜ್ಞಾನ</a>
<a href="https://fonts.sanchaya.net/" target="_blank" rel="noopener">ಫಾಂಟ್ಸ್ ಸಂಚಯ</a>
<a href="https://converter.sanchaya.net/" target="_blank" rel="noopener">Converter</a>
<a href="https://sanchaya.org/" target="_blank" rel="noopener">ಸಂಚಯ</a>
</div>
</nav>
<main class="wrap">
<header class="hero">
<h1>ಕೈಬರಹ ಸಂಚಯ</h1>
<p class="lead">ಬರೆಯಿರಿ — ಯುನಿಕೋಡ್ ಪಠ್ಯ ತಕ್ಷಣ ಮೂಡುತ್ತದೆ. Write with a stylus, finger, mouse or touchpad; each word is recognised as you write and lands in the text box as editable Unicode. Fix anything with the candidate list or the built-in transliteration keyboard — no Kannada keyboard needed.</p>
</header>
<section class="toolbar" aria-label="Settings">
<label>ಭಾಷೆ / Language <select id="lang"></select></label>
<label>Engine <select id="engine"><option value="auto">Auto (best available)</option></select></label>
<label>Auto-accept <select id="autocommit">
<option value="0">Off — tap ✓</option><option value="1000">1 s</option><option value="1500">1.5 s</option><option value="2500">2.5 s</option><option value="4000">4 s</option>
</select></label>
<label>Pen <input id="width" type="range" min="2" max="14" value="5"></label>
</section>
<section class="grid">
<div class="card">
<div class="cardhead">
<h2>ಕೈಬರಹ / Write</h2>
<div class="tools">
<button class="btn" id="undo" title="Undo last stroke">↶ Undo</button>
<button class="btn" id="clear" title="Clear the pad">Clear</button>
</div>
</div>
<div class="reference-tools" aria-label="Manuscript reference image">
<div class="reference-intro">
<label class="btn upload-btn" for="reference-upload">+ Add manuscript</label>
<input class="file-input" id="reference-upload" type="file" accept="image/*">
<span id="reference-name" class="reference-name">Trace over an inscription, palm leaf or document</span>
</div>
<div class="reference-controls" id="reference-controls" hidden>
<div class="mode-switch" aria-label="Canvas mode">
<button class="mode-btn active" id="trace-mode" type="button" aria-pressed="true">✎ Trace</button>
<button class="mode-btn" id="pan-mode" type="button" aria-pressed="false">✥ Pan</button>
</div>
<label>Zoom <input id="reference-zoom" type="range" min="50" max="300" value="100"><output id="reference-zoom-value">100%</output></label>
<label>Rotate <input id="reference-rotation" type="range" min="-180" max="180" value="0"><output id="reference-rotation-value">0°</output></label>
<label>Opacity <input id="reference-opacity" type="range" min="10" max="100" value="72"><output id="reference-opacity-value">72%</output></label>
<label>Contrast <input id="reference-contrast" type="range" min="50" max="250" value="120"><output id="reference-contrast-value">120%</output></label>
<button class="btn compact" id="reference-reset" type="button">Reset view</button>
<button class="btn compact danger" id="reference-remove" type="button">Remove</button>
</div>
<p class="reference-privacy" id="reference-privacy">The image stays in this browser. Recognition receives only the strokes you draw.</p>
</div>
<div class="paper trace-mode" id="paper">
<img class="reference-image" id="reference-image" alt="Uploaded manuscript reference" hidden>
<canvas id="pad" aria-label="Handwriting pad"></canvas>
<div class="hint" id="hint">ಇಲ್ಲಿ ಬರೆಯಿರಿ… <span id="samples"></span></div>
</div>
<div class="candidates" id="candidates" aria-live="polite"></div>
<div class="keys" aria-label="Edit keys">
<button class="btn" id="backspace" title="Backspace">⌫</button>
<button class="btn grow" id="space" title="Space">Space</button>
<button class="btn" id="newline" title="New line">↵</button>
<button class="btn primary" id="commit" title="Accept word">✓ Accept</button>
</div>
<div class="status"><span><span class="dot" id="dot"></span><span id="status">Ready — mouse, touch & stylus</span></span><span id="strokeCount">0 strokes</span></div>
</div>
<aside class="card">
<div class="cardhead"><h2>ಪಠ್ಯ / Unicode text</h2></div>
<div class="result">
<textarea id="output" class="output" placeholder="ಗುರುತಿಸಿದ ಪಠ್ಯ ಇಲ್ಲಿ ಕಾಣಿಸುತ್ತದೆ…" spellcheck="false"></textarea>
<p class="muted small">Type to correct: the keyboard icon on the text box picks an input method (Transliteration, KGP/Nudi, InScript…). <kbd>Ctrl</kbd>+<kbd>M</kbd> toggles it.</p>
<div class="actions">
<button class="btn primary" id="copy">Copy</button>
<button class="btn" id="download">Download .txt</button>
<button class="btn" id="cleartext">Clear text</button>
</div>
</div>
</aside>
</section>
<section class="how" id="how">
<h2>ಇದು ಹೇಗೆ ಕೆಲಸ ಮಾಡುತ್ತದೆ / How it works</h2>
<ol class="pipeline">
<li><b>Capture</b><span>Pointer Events record every stroke as <code>x, y, time, pressure</code> — finger, mouse, touchpad or stylus.</span></li>
<li><b>Trace a source</b><span>Add a local inscription or palm-leaf image, align it with pan, zoom and rotation, then trace above it. The image never enters recognition.</span></li>
<li><b>Recognise live</b><span>A quarter-second after each stroke the ink (not a picture) goes to a recognizer; the best guess replaces the word in the text box.</span></li>
<li><b>Choose</b><span>Alternatives appear as chips, native-script results first. Tapping one fixes the word, even after it is accepted.</span></li>
<li><b>Correct</b><span>jquery.ime gives transliteration and Indic layouts inside the text box, so corrections need no installed keyboard.</span></li>
</ol>
<div class="engines">
<div><b>On-device</b><span>W3C Handwriting Recognition API — private, used automatically where the browser supports it.</span></div>
<div><b>Online</b><span>Stroke-based recognition over a small JSON protocol (Google Input Tools today; a Sanchaya-hosted model can replace it without UI changes).</span></div>
<div><b>Offline fallback</b><span>Tesseract OCR on the rendered ink — works without the network, lower accuracy.</span></div>
</div>
</section>
</main>
<footer class="site-footer">
<div class="footer-links">
<a href="https://fonts.sanchaya.net/" target="_blank" rel="noopener">ಫಾಂಟ್ಸ್ ಸಂಚಯ</a>
<a href="https://sanchaya.org/" target="_blank" rel="noopener">ಸಂಚಯ</a>
<a href="https://sanchifoundation.org/" target="_blank" rel="noopener">ಸಂಚಿ ಫೌಂಡೇಶನ್</a>
</div>
<div class="footer-copyright">© 2026 ಸಂಚಯ ಮತ್ತು ಸಂಚಿ ಫೌಂಡೇಶನ್</div>
</footer>
<script src="vendor/jquery-3.7.1.min.js"></script>
<script src="vendor/jquery.ime/src/jquery.ime.js"></script>
<script src="vendor/jquery.ime/src/jquery.ime.selector.js"></script>
<script src="vendor/jquery.ime/src/jquery.ime.preferences.js"></script>
<script src="vendor/jquery.ime/src/jquery.ime.inputmethods.js"></script>
<script src="js/core.js"></script>
<script src="js/languages.js"></script>
<script src="js/recognizers.js"></script>
<script src="js/app.js?v=20261127-tracing"></script>
</body>
</html>