forked from JoshuaGrams/steno-jig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
two-key.html
51 lines (42 loc) · 1.72 KB
/
two-key.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Steno Jig</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script src="type-jig.js"></script>
<script src="steno-display.js"></script>
<script src="word-sets.js"></script>
<script src="plover-translations.js"></script>
<link rel="stylesheet" type="text/css" href="font-roboto.css">
</head>
<body>
<div id="lesson">
<h3 class="center">(Mostly) Two-Key Sentences</h3>
<p class="wrapper">To capitalize the first word, hit <code>KPA</code> or <code>KPA*</code>,
or tell plover to start capitalized (Configure -> Output -> Start
Capitalized). If your keyboard has conflicts with the longer strokes (like
<code>TP-PL</code> for period), you can hold one key and press the others
in succesion.</p>
<div class="scroll-margin"><div id="strokes"></div></div>
<div class="scroll-bounds"><div id="exercise" style="white-space: nowrap"></div></div>
<div id="answer" class="answer scroll-margin" contenteditable="true"><span class="prompt">Type here...</span></div>
<p id="clock" class="clock"></p>
<p id="error-log"></p>
</div>
<script>
var words = TypeJig.WordSets.twoKeySentences;
var translations = TypeJig.shortestTranslations(TypeJig.Translations.Plover);
var extra = {
"?": "H-F", "charge": "KH", "every": "EF", "perfect": "P-F",
"recall": "R-L", "that": "HA", "tuberculosis": "T-B",
"from": "PR", "reason": "R-P", "on": "OB", "we": "WE",
"who": "HO", "kilograms": "K-G/-S"
};
for(key in extra) translations[key] = extra[key];
var hints = new StenoDisplay('strokes', translations, true);
var exercise = new TypeJig.Exercise(words);
var jig = new TypeJig(exercise, 'exercise', 'answer', 'clock', hints);
</script>
</body>
</html>