-
Notifications
You must be signed in to change notification settings - Fork 0
/
d.htm
executable file
·69 lines (58 loc) · 1.74 KB
/
d.htm
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
<html>
<head>
<title>QWERTY to Dvorak translator</title>
</head>
<body>
<h3>QWERTY to Dvorak translator</h3>
<h4><a href="http://www.andrewdurham.com/files/d.htm">andrewdurham.com/files/d.htm</a></h4>
<script language="Javascript">
<!--
// PL
// You may use, modify etc this code as you wish. I hope it works.
//each character in the top row is translated to the character in the bottom row
//if using a \, double it up
var skey="aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ-_=+[{]};:',<.>/?"
var dkey="aAxXjJeE.>uUiIdDcChHtTnNmMbBrRlL'_pPoOyYgGkK,<qQfF;:[{]}/?=+sS-wWvVzZ"
function keypr(){
if (document.formt.imm.checked) {
trans();
//if (document.formt.dest.createTextRange) {
//var range = document.formt.dest.createTextRange();
//range.collapse(false);
//range.select();
//}
}
}
function trans(){
document.formt.dest.value=transta(document.formt.src.value);
}
function transta(srctext){
var assmstr;
assmstr="";
for (cnt=0;cnt<srctext.length;cnt++){
assmstr=assmstr + transchar(srctext.charAt(cnt));
}
return assmstr;
}
function transchar(srchar){
var tchar;
tchar="";
tchar = dkey.charAt(skey.indexOf(srchar))
if (tchar=="") {
tchar = srchar;
}
return tchar;
}
//-->
</script>
</font>
<form name="formt">
<font size="2">1) Use a regular (QWERTY) keyboard/keymap 2) In left box, type
with Dvorak fingering. 3) Get regular words in right box 4) From there,
copy and paste! <b>Note:</b> Program switches _ and " symbols. <input name="imm" value="imm" checked="checked" type="checkbox"><br>
<textarea name="src" rows="24" cols="28" onkeyup="keypr()" wrap="virtual"></textarea>
<textarea name="dest" rows="24" cols="28" wrap="virtual"></textarea>
</font>
</form>
</body>
</html>