Skip to content

Commit ad5ee3b

Browse files
committed
+ _make_conjunct_list
1 parent b8bb3ac commit ad5ee3b

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

_tools/_make_conjunct_list.html

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Make shape list</title>
6+
7+
<!-- creates a list of transcription entries for a picker from a space-separated list of characters/char sequences -->
8+
9+
<script type="text/javascript">
10+
11+
/*
12+
example input
13+
14+
ட ப ய ம ௴ ழ ௶/்டி டீ பு யு மீ மு மூ ழு ழூ
15+
ர ஈ ா ௩ ங ந ௫ ௺ ௹/ர் ரி ரீ ஙு நு நூ ரு ரூ நீ
16+
17+
*/
18+
19+
function makeList (charlist, virama) {
20+
var chars, out
21+
22+
charlist = charlist.trim()
23+
chars = charlist.split(' ')
24+
out = ''
25+
for (let c=0; c<chars.length; c++) {
26+
for (let i=0; i<chars.length; i++) out += chars[c] + virama + chars[i] + ' '
27+
out += '\n'
28+
}
29+
return out
30+
}
31+
32+
33+
34+
35+
36+
37+
38+
</script>
39+
<style>
40+
p, input, #character, #inputArea { font-size: 200%; }
41+
</style>
42+
</head>
43+
44+
<body>
45+
<p>Make matrix of conjunct forms</p>
46+
<p style="font-size: 16px">Add a comma-separated list of the consonants.</p>
47+
<p>&nbsp;
48+
<textarea dir=ltr id=inputArea style="width: 90%; height: 200px;"></textarea></p>
49+
<p style="font-size: 16px">Add the virama: <input type="text" id="virama"></p>
50+
<p><button type=submit onClick="document. getElementById('output').value = makeList(document.getElementById('inputArea').value, document.getElementById('virama').value); document. getElementById('output').select(); return false;">Create list!</button></p>
51+
52+
<p>&nbsp;
53+
<textarea id=output style="width: 90%; height: 600px;"></textarea></p>
54+
55+
</body>
56+
</html>

0 commit comments

Comments
 (0)