-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
88 lines (88 loc) · 4.69 KB
/
index.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
82
83
84
85
86
87
88
<!DOCTYPE html>
<html>
<head>
<title>mí soakue</title>
<link href="fonts/NotoSans-Regular.ttf" rel="preload" as="font" crossorigin />
<link href="noto.css" rel="stylesheet" />
<link href="iosevka.css" rel="stylesheet" />
<link href="style.css" rel="stylesheet" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="nuifuaq.png" type="image/png" />
</head>
<body>
<h1>mí soakue / </h1>
<p><a href="https://github.com/berrymot/soakue">github</a></p>
<input
type="text" id="search" name="search"
autocomplete="off" spellcheck="false" size="1"
placeholder="chum lao jí pó tóakue" disabled
/>
<span id="btns">
<button type="reset" id="clear">sıajòaı</button>
<button type="button" id="english">toìqlızuno</button>
</span>
<span id="len"></span>
<div id="res"></div>
<div id="bottom"></div>
<div id="howto">
<h2>about</h2>
<p>this updates every day. it used to update every 6 hours, but github actions scheduling is not very precise.</p>
<p>the fonts here are mostly in Noto, except the font for Tangut (which is by BabelStone) and the Deranı one (Iosevka modified by Laqme+Kıa).</p>
<p>kuaq kıe jí mí Sofıa lä soa muoja já ka :3</p>
<h2>operators</h2>
<p><code>= head</code> searches just the words themselves. there are a couple fancy things you can do with this:</p>
<div class="indent"><p>
<code>*</code> matches anything (or nothing, i.e. it's <code>/.*/</code>)<br />
<code>?</code> matches any single letter, <code>/[aeıoumpbfntdczsrljꝡqkg'h]|[ncs]h/i</code><br />
<code>CVFQ</code> match their <a href="https://toaq.net/refgram/phonology">refgram</a> definitions (note
that <code>VV</code> ⊋ <code>F</code>)<br />
<code>R</code> matches a raku</code><br />
<code>_</code> matches a space<br />
<code>()[]|</code> work like in <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#writing_a_regular_expression_pattern">regex</a>
</p></div>
<div class="indent"><p>
<code>i</code> → <code>ı</code>, <code>vw</code> → <code>ꝡ</code>, <code>x</code> → <code>'</code><br />
<code>.</code> → <code>◌̣</code><br />
<code>1234</code> → <code>◌̀◌́◌̈◌̂</code>
</p></div>
<p><code>~</code> is similar but will also match word-internally: <code>~◌</code> = <code>=*◌*</code></p>
<p><code>@ user</code> searches word authors</p>
<p><code># id</code> finds the word with id <i>x</i></p>
<p><code>/ arity</code> finds definitions with <i>x</i> slots</p>
<p><code>$ scope</code> shows words defined under a particular language code</p>
<p><code>! - not</code> negate a query, e.g. <code>-@official</code></p>
<p><code>^ score</code> finds definitions with at least +<i>x</i> votes. you can do <code>!^</code> for less than <i>x</i>, and <code>^=</code> for exactly <i>x</i>.</p>
<h2>things you can't do here</h2>
<p>anything that requires logging in</p>
</div>
<script src="data/toakue.js"></script>
<script src="helper.js"></script>
<script src="events.js"></script>
<script>
$`search`.removeAttribute("disabled");
$`search`.setAttribute("placeholder", "joaıteoq");
worker = new Worker("worker.js");
worker.addEventListener("message", function (e) {
res = e.data;
if (res.err) {
$`res`.innerHTML = res.err;
$`bottom`.innerHTML = "";
return;
}
$`res`.innerHTML = "";
$`len`.innerHTML = "joaıse\u{00a0}<b>" + res.length + "</b>\u{00a0}raı";
page = 0;
load(res, page);
checkLength();
});
function updateFromQuery() {
var par = new URLSearchParams(window.location.search);
navigate(par.get("q") ?? "", false);
$`search`.focus();
}
window.addEventListener("DOMContentLoaded", updateFromQuery);
window.addEventListener("popstate", updateFromQuery);
</script>
</body>
</html>