Skip to content

Commit c47e72f

Browse files
authored
Add files via upload
1 parent 4992193 commit c47e72f

32 files changed

+25416
-0
lines changed

adlam.html

Lines changed: 463 additions & 0 deletions
Large diffs are not rendered by default.

adlambraille.html

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<html>
2+
<head>
3+
<style>
4+
h1,h2{
5+
text-align: center;
6+
}
7+
textarea{
8+
margin-left: 5%;
9+
margin-right: 5%;
10+
width: 39%;
11+
font-size: 24px;
12+
height: 600px;
13+
resize: none;
14+
}
15+
*{
16+
font-family: 'Verdana';
17+
}
18+
</style>
19+
<script>
20+
document.addEventListener('DOMContentLoaded', function(){
21+
var typingTimer
22+
var doneTypingInterval = 1000
23+
var $inuk = document.getElementById("inuk")
24+
var $braille = document.getElementById("braille")
25+
$inuk.addEventListener('keyup', inukFunction)
26+
function inukFunction () {
27+
inuk = $inuk.value.toUpperCase()
28+
29+
for(e of Object.keys(inukKey)){
30+
var myRegExp = new RegExp(e, 'g')
31+
inuk = inuk.replace(myRegExp, inukKey[e])
32+
}
33+
$braille.value = "" + inuk
34+
}
35+
36+
inukKey = {
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+
}, false);
105+
</script>
106+
</head>
107+
<body>
108+
<h1>Adlam to Braille</h1>
109+
<textarea id="inuk" placeholder="enter Adlam text"></textarea>
110+
<textarea contenteditable="false" id="braille" placeholder="output here"></textarea>
111+
</body>
112+
</html>

0 commit comments

Comments
 (0)