forked from OdiaWikimedia/Converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Shreelipi - Unicode Odia Converter.htm
377 lines (288 loc) · 12.1 KB
/
Shreelipi - Unicode Odia Converter.htm
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="author" content="Subhashish Panigrahi">
<meta name="Description" content="Shreelipi" -="" unicode="" odia="" converter="">
<meta name="Author1" content="Subhashish" panigrahi="">
<meta name="Author2" content="Shitikantha" dash="">
<meta name="Author3" content="Manoj" sahukar="">
<title>Shreelipi - Unicode Odia Converter</title>
<script type="text/javascript">
function convert_to_unicode()
{
var array_one = new Array(
">" , " ।" ,
"ÿ" , "" , //blank
"" , "" ,
"ç§" , "§ç" ,
"" , "{" ,
"{ç " , "ç{" ,
"{ç" , "ç{" ,
"ôæ" , "æô" ,
" {# " , "#{" ,
"{#" , "#{" ,
"¿â" , "â¿" ,
"" , " " ,
" " , " " ,
"1" , "୧" ,
"2" , "୨" ,
"3" , "୩" ,
"4" , "୪" ,
"5" , "୫" ,
"6" , "୬" ,
"7" , "୭" ,
"8" , "୮" ,
"9" , "୯" ,
"0" , "୦" ,
"þ#" , "ତ୍ମ" ,
"Œ", "ତ୍ପ",
"”", "ଦ୍ଦ",
"b" , "ଚ୍ଛ" ,
"t" , "ଟ୍ଟ" ,
"" , "ଦ୍ଦ" ,
"" , "ତ୍ମ" ,
"" , "ତ୍କ" ,
"û" , "ତ୍ସ" ,
"" , "ତ୍ତ୍ଵ" ,
"½" , "୍ମ" ,
"" , "ଦ୍ଭ" , // dbha
"¸" , "ମ୍ପ" , //mpa
"¹" , "ମ୍ଫ" , // mpha
"¼" , "ମ୍ମ" , //mma
"Ú" , "ସ୍ତ୍ର" ,
"Í" , "ଷ୍କ" ,
"O" , "କ୍ସ" ,
"Ð" , "ଷ୍ଣ" ,
"À" , "ର" ,
"à" , "ଲ" ,
"Ü" , "ହ" ,
"" , "ତ୍ତ" ,
"L" , "କ" , // ka
"Q" , "ଖ" , // kha
"S" , "ଗ" , // ga
"W" , "ଘ" , // gha
"`" , "ଚ" , // ca
"a" , "ଚ୍ଚ" , // cc (dwitiya)
"d" , "ଛ" , // cha
"f" , "ଜ" , // ja
"l" , "ଝ" , // jha
"s" , "ଟ" , // Ta
"v" , "ଠ" , // Tha
"Ý" , "ଡ଼" , // Da (bindu)
"x" , "ଡ" , // Da
"Þ" , "ଢ଼" , // Dha (bindu)
"|" , "ଢ" , // Dha
"~" , "ଣ" , // Na
"" , "ଣ୍ଣ" , // NNa
"" , "ତ" , // ta
"†" , "ତ" , //ta
"$" , "ଥ" , // tha
"" , "ଦ" , // da
"’" , "ଦ" , // da
"" , "ଧ" , // dha
"™" , "ଧ" , // dha (new)
"" , "ନ" , // na
"œ" , "ନ" , // na (new)
"oe" , "ନ" , // na
"¨" , "ପ" , // pa
"" , "ପ" , //pa
"ü" , "ଫ" , // pha
"¯" , "ବ" , // da
"μ" , "ଭ" , // bha
"µ" , "ଭ" , // bha
"þ" , "ମ" , // ma
"" , "ମ" , // ma
"¾" , "ଯ" , // ja (antastha)
"Á" , "ଳ" ,
"É" , "ଶ" , // Sa (talabya)
"" , "ଶ" , // Sa (talabya)
"Ì" , "ଷ" , // Sa (murdhanya)
"Ó" , "ସ" , // Sa
"ä" , "କ୍ଷ" , // khya
"j" , "ଜ୍ଞ" , // Gya
"o" , "ଞ୍ଚ" , // nca
"p" , "ଞ୍ଛ" , // ncha
"¢" , "ନ୍ଦ" , // nda
"£" , "ନ୍ଦ" , // nda
"¤" , "ନ୍ଧ" , // ndha
"ƒ" , "ଣ୍ଡ" , // nDa
"º" , "ମ୍ବ" , //mba
"»" , "ମ୍ଭ" , // mbh
"±" , "ବ୍ଦ" , // bda
"" , "ଦ୍ଧ" , // bdha
"²", "ବ୍ଧ" , // bdha
"¡" , "ନ୍ଥ" , // nth
"×" , "ସ୍ଥ" , //sth
"" , "ନ୍ନ" , //nn
"" , "ଧ୍ୟ" , // dhya
"š" , "ଧ୍ୟ" , // dhya
"ø" , "÷ë" ,
"÷" , "୍ର" , // reph
"¿" , "୍ୟ" , // ja phala
"´" , "୍ୱ" , // ba phala
"Ô" , "ସ୍କ" , // ska
"§" , "୍ନ" , // na phala
"ü" , "ଫ" , // pha
"u" , "ଫ" , // Ta phala
"Û" , "୍ସ" ,
"Ÿ" , "ନ୍ନ" , // nna
"•" , "ଦ୍ଧ" , // ddha
"ˆ" , "ତ୍ତ" , // tta
";" , "ନ୍ତ" , // nta
"" , "ଣ୍ଡ" , // NDa
" ß" , "ୟ" , // ya
"ß" , "ୟ" , // ya
"Ö" , "ସ୍ତ" , // sta
"N" , "କ୍ତ" , // kta
"¦" , "ନ୍ତ୍ର" , // ntr
"g" , "ଜ୍ଜ" , // jja
"©" , "ପ୍ତ" , // pta
"‡" , "ତ୍କ" , //tka
"Š" , "ତ୍ମ" , //tma
"‚" , "ଣ୍ଣ" , //NNa (dwitiya)
"Z" , "ଙ୍କ" ,
"\\" , "ଙ୍ଖ" , // nkha
"\è" , "ଙ୍ଗ" , // nga
"q" , "ଞ୍ଜ" , // nja
"+" , "ଣ୍ଟ" , // NTa
"Î" , "ଷ୍ଟ" , // STa
"Ê" , "ଶ୍ଚ" , // Sca
"Ï" , "ଷ୍ଠ" , // Lpa
"Å" , "ଳ୍ପ" , // Lpa
"Ñ" , "ଷ୍ପ" , // Spa (murdhanya)
"Ø" , "ସ୍ପ" , // spa
"Ù" , "ସ୍ପ" , // spa
" æ" , "ା" , // aa kara
"æ" , "ା" , // aa kara
"" , "ା" , // aa kara
" ା", " ।", // purnached
" ç" , "ି" , // i kara
"ÿ]" , "ିଁ" , // i kara
"ç" , "ି" , // i kara
"" , "ି" , // i kara
//"#" , "ି" , // i kara --manoj
"ê" , "ୀ" , // I kara
"" , "ୀ" , // I kara
" ë" , "ୁ" , // u kara
"ë" , "ୁ" , // u kara
"" , "ୁ" , // u kara
"í" , "ୂ" , // u kara
"õ " , "ୃ" , // u kara
"õ" , "ୃ" , // R kara
"ô" , "ଁ" , // Anuswara
"" , "ଃ" , // bisarga
"…" , "ଃ" , // bisarga
"ú" , "୍" , // halanta
"ó" , "ଂ" , // chandrabindu
"]" , "ିଁ" , // i kara
"â" , "୍ଲ" , // la
"È" , "୍ଳ" , // La
"úÿ" , "୍" , //ka halanta zero-width non joiner
' ̄',"ବ",
'̄',"ବ",
' ́',"୍ୱ",
'́',"୍ୱ",
'̈','ପ',
"A" , "ଅ" , // a
"" , "ଅ" , // a
"ଅା" , "ଆ" , // aa
"B" , "ଇ" , // i
"" , "ଇ" , // i
"D" , "ଉ" , // u
"" , "ଉ" , // u
"E" , "ଊ" , // U
"J" , "ଋ" , // R
"F" , "ଏ" , // e
"G" , "ଐ" , // ai
"" , "ଐ" , // ai
"H" , "ଓ" , // o
"I" , "ଔ" , // au
"K" , "ଔ" ) // au
//**********************************************
var array_one_length = array_one.length ;
var modified_substring = document.getElementById("legacy_text").value ;
document.getElementById("unicode_text").value = "Conversion in progress.." ;
//****************************************************
// Break the long text into small bunches of chunk_size characters each.
//****************************************************
var text_size = modified_substring.length ;
var processed_text = '' ; //blank
var cond1 = 0 ; var cond2 = 0 ; var chale_chalo = 1 ;
var chunk_size = 6000; // this charecter long text will be processed in one go.
while ( chale_chalo == 1 )
{
cond1 = cond2 ;
if ( cond2 < ( text_size - chunk_size ) )
{
cond2 += chunk_size ;
// while (document.getElementById("legacy_text").value.charAt ( cond2 ) != ' ') {cond2--;}
//This was making problem if there is no 'space' in the whole document.
}
else { cond2 = text_size ; chale_chalo = 0 }
var modified_substring = document.getElementById("legacy_text").value.substring ( cond1, cond2 ) ;
Replace_Symbols( ) ;
var processed_text = processed_text + modified_substring ;
document.getElementById("unicode_text").value = "Conversion in progress.." + '\n\n' + 'Conversion of ' + cond2 + ' charecters out of ' + text_size + ' completed.' ;
}
document.getElementById("unicode_text").value = processed_text ;
// --------------------------------------------------
function Replace_Symbols( )
{
//substitute array_two elements in place of corresponding array_one elements
if ( modified_substring != "" ) // if stringto be converted is non-blank then no need of any processing.
{
for ( input_symbol_idx = 0; input_symbol_idx < array_one_length-1; input_symbol_idx = input_symbol_idx + 2 )
{
//******************************************************
idx = 0 ; // index of the symbol being searched for replacement
while (idx != -1 ) //while-00
{
modified_substring = modified_substring.replace( array_one[ input_symbol_idx ] , array_one[input_symbol_idx+1] )
idx = modified_substring.indexOf( array_one[input_symbol_idx] )
} // end of while-00 loop
} // end of for loop
// see if the following needs to include more letters than [କସ]
//modified_substring = modified_substring.replace( /([କସ])([ú])/g , "ତ୍$1" ) ;
// following statements for adjusting postion of e, ai, o and au maatraas.
modified_substring = modified_substring.replace( /([{])([କଖଗଘଙଚଛଜଝଞଟଠଡଡ଼ଢଢ଼ଣତଥଦଧନପଫବଭମଯରଲଳବଶଷସହକ୍ଷଜ୍ଞୟ])/g , "$2$1" ) ;
modified_substring = modified_substring.replace( /([{])([୍])([କଖଗଘଙଚଛଜଝଞଟଠଡଡ଼ଢଢ଼ଣତଥଦଧନପଫବଭମଯରଲଳବଶଷସହକ୍ଷଜ୍ଞୟ])/g , "$2$3$1" ) ;
modified_substring = modified_substring.replace( /([{])([୍])([କଖଗଘଙଚଛଜଝଞଟଠଡଡ଼ଢଢ଼ଣତଥଦଧନପଫବଭମଯରଲଳବଶଷସହକ୍ଷଜ୍ଞୟ])/g , "$2$3$1" ) ;
modified_substring = modified_substring.replace( /{ð/g , "ୈ" ) ;
modified_substring = modified_substring.replace( /{ା/g , "ୋ" ) ;
modified_substring = modified_substring.replace( /{ò/g , "ୌ" ) ;
modified_substring = modified_substring.replace( /{/g , "େ" ) ;
//following three statement for adjusting position of reph ie, half r .
modified_substring = modified_substring.replace( /([କଖଗଘଚଛଜଝଟଠଡଡ଼ଢଢ଼ଣତଥଦଧନପଫବଭମଯରଲଳଵଶଷସହକ୍ଷଜ୍ଞୟ])([ାିୀୁୂୃେୈୋୌଂଁ]*)ö/g , "ö$1$2" ) ;
modified_substring = modified_substring.replace( /([କଖଗଘଚଛଜଝଟଠଡଡ଼ଢଢ଼ଣତଥଦଧନପଫବଭମଯରଲଳଵଶଷସହକ୍ଷଜ୍ଞୟ])([୍])ö/g , "ö$1$2" ) ;
modified_substring = modified_substring.replace( /ö/g , "ର୍" ) ;
modified_substring = modified_substring.replace( /([ଂଁ])([ାିୀୁୂୃେୈୋୌ])/g , "$2$1" ) ;
//following three statement for adjusting position of reph and i .
modified_substring = modified_substring.replace( /([କଖଗଘଚଛଜଝଟଠଡଡ଼ଢଢ଼ଣତଥଦଧନପଫବଭମଯରଲଳଵଶଷସହକ୍ଷଜ୍ଞୟ])([ାିୀୁୂୃେୈୋୌଂଁ]*)}/g , "}$1$2ି" ) ;
modified_substring = modified_substring.replace( /([କଖଗଘଚଛଜଝଟଠଡଡ଼ଢଢ଼ଣତଥଦଧନପଫବଭମଯରଲଳଵଶଷସହକ୍ଷଜ୍ଞୟ])([୍])}/g , "}$1$2" ) ;
modified_substring = modified_substring.replace( /}/g , "ର୍" ) ;
modified_substring = modified_substring.replace( /ˆ/g , "ତ୍ତ" ) ;
} // end of IF statement meant to supress processing of blank string.
} // end of the function Replace_Symbols
} // end of convert_to_unicode function
</script>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
</head>
<body style="tab-interval:36.0pt" bgcolor="#D3D3D3">
<div class="Section1">
<p style="text-align:center" align="center"><font size="5" face="sans-serif"><b><span style="color:#316E89"> Shreelipi - Unicode Odia converter </span></b></font><br><font face="sans-serif">Copy Shreelipi text and paste below</font></p>
<form name="form1">
<p style="text-align:center" align="center"><textarea rows="10" cols="110%" name="TextToConvert" id="legacy_text"></textarea></p>
<p style="text-align:center" align="center">
<input name="converter" id="converter" value=" CONVERT " style="width:90px;float:center;background-color:#4AAAD1;color:#FFFFFF;font-weight:bold;margin-left:4px;padding:8px;" accesskey="c" title="convert" onclick="convert_to_unicode();" type="button"><br><br>
<align=center style="text-align:center"><font size="3" face="sans-serif">Converted Unicode text below<br>
<font size="2" face="sans-serif"><span style="color:#606060">You can copy and use the text below in Facebook, E-mail, blogs, websites and <a href="https://or.wikipedia.org/wiki/WP:CS">ODIA WIKIPEDIA.</a></span></font>
<textarea rows="30%" cols="110%" name="ConvertedText" id="unicode_text"></textarea><o:p></o:p></font></align=center></p><font size="3" face="sans-serif">
<p style="text-align:center" align="center"><span style="color:#515151"><font size="2">Designed by <a href="https://or.wikipedia.org/wiki/User:%E0%AC%B6%E0%AC%BF%E0%AC%A4%E0%AC%BF%E0%AC%95%E0%AC%A3%E0%AD%8D%E0%AC%A0%20%E0%AC%A6%E0%AC%BE%E0%AC%B6" target="_blank" title="Reach to me">Shitikantha Dash</a> and <a href="https://meta.wikimedia.org/wiki/User:Psubhashish" target="_blank" title="Reach to me">Subhashish Panigrahi</a>. Maintained by <a href="http://in.linkedin.com/in/manojsahukar/" target="_blank" title="Reach to me">Manoj Sahukar</a>. Under CC-BY-SA 3.0. Inspired by Rebati converter by Srujanika.<br><a href="https://22bc339da9ca3e2462414546a715752e4c2c5e0d.googledrive.com/host/0B5rBGd680WZFemVLa3RxY0preE0/AkrutiUnicode" target="_blank" title="Click here"> Click here</a><a> for Akruti Sarala-Unicode converter.</a></font></span></p><a>
</a></font></form></div><font size="3" face="sans-serif"><a>
</a></font></body></html>