-
Notifications
You must be signed in to change notification settings - Fork 3
/
latinTOyezidi.html
95 lines (93 loc) · 3.11 KB
/
latinTOyezidi.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
89
90
91
92
93
94
95
<html>
<head>
<style>
h1,h2{
text-align: center;
}
textarea{
margin-left: 5%;
margin-right: 5%;
width: 39%;
font-size: 24px;
height: 600px;
resize: none;
}
*{
font-family: 'Verdana';
}
@font-face {
font-family: YZIDI;
src: url(YZIDI.ttf);
}
#braille{
font-family: YZIDI, Verdana;
}
</style>
<title>Yezidi Transliterator</title>
<script>
document.addEventListener('DOMContentLoaded', function(){
var typingTimer
var doneTypingInterval = 1000
var $inuk = document.getElementById("inuk")
var $braille = document.getElementById("braille")
$inuk.addEventListener('keyup', inukFunction)
function inukFunction () {
inuk = $inuk.value.replace(/E/g, "𐺀").toLowerCase()
for(e of Object.keys(inukKey)){
var myRegExp = new RegExp(e, 'g')
inuk = inuk.replace(myRegExp, inukKey[e])
}
$braille.value = "" + inuk
}
inukKey = {
" e": " 𐺀",
" ê": " 𐺀𐺩",
"a'": "𐺗𐺀",
"ye": "𐺩",
"we": "𐺣",
"t'": "𐺄",
"a": "𐺀",
"b": "𐺁",
"c": "𐺆",
"ç'": "𐺈",
"ç": "𐺇",
"d": "𐺋",
"e": "𐺦",
"ê": "𐺩",
"f": "𐺙",
"g": "𐺟",
"h'": "𐺉",
"h": "𐺧",
"i": "",
"î": "𐺨",
"j": "𐺐",
"k": "𐺝",
"l": "𐺠",
"m": "𐺡",
"n": "𐺢",
"o": "𐺥",
"p'": "𐺃",
"p": "𐺂",
"q": "𐺜",
"r": "𐺍",
"s": "𐺑",
"ş": "𐺒",
"t": "𐺕",
"u": "𐺣",
"û": "𐺣𐺣",
"v": "𐺛", //?
"w": "𐺤",
"x": "𐺊",
"y": "𐺨",
"z": "𐺏",
"'": "𐺗",
}
}, false);
</script>
</head>
<body>
<h1>Yezidi Script Converter</h1>
<textarea spellcheck="false" id="inuk" placeholder="enter Latin text" style="direction:ltr"></textarea>
<textarea contenteditable="false" id="braille" placeholder="Yezidi script output here" style="direction:rtl"></textarea>
</body>
</html>