-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
41 lines (39 loc) · 1.7 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Transliteration Example</title>
<style>
body {
white-space: pre-wrap;
}
</style>
</head>
<body>
<span></span>
<script src="sanscript/sanscript.js"></script>
<script>
input = `तपस्स्वाध्यायनिरतं तपस्वी वाग्विदां वरम् ।
नारदं परिपप्रच्छ वाल्मीकिर्मुनिपुङ्गवम् ।।1.1.1।।
`
output = Sanscript.t(input, 'devanagari','telugu')
document.querySelector('span').innerHTML += output+`<br>telugu<hr>`
output = Sanscript.t(input, 'devanagari','hk')
document.querySelector('span').innerHTML += output+`<br>hk<hr>`
output = Sanscript.t(input, 'devanagari','itrans')
document.querySelector('span').innerHTML += output+`<br>itrans<hr>`
output = Sanscript.t(input, 'devanagari','iso')
document.querySelector('span').innerHTML += output+`<br>iso<hr>`
output = Sanscript.t(input, 'devanagari','tamil')
document.querySelector('span').innerHTML += output+`<br>tamil<hr>`
output = Sanscript.t(input, 'devanagari','kannada')
document.querySelector('span').innerHTML += output+`<br>kannada<hr>`
output = Sanscript.t(input, 'devanagari','malayalam')
document.querySelector('span').innerHTML += output+`<br>malayalam<hr>`
output = Sanscript.t(input, 'devanagari','bengali')
document.querySelector('span').innerHTML += output+`<br>bengali<hr>`
output = Sanscript.t(input, 'devanagari','gujarati')
document.querySelector('span').innerHTML += output+`gujarati<hr>`
</script>
</body>