File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 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 >
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 >
53+ < textarea id =output style ="width: 90%; height: 600px; "> </ textarea > </ p >
54+
55+ </ body >
56+ </ html >
You can’t perform that action at this time.
0 commit comments