Parent Directory | Revision Log
added new combobox implementation by Matko Andjelinic together with example implementation in php
1 | // This is Text translatecent for ISO-8859-2 implemented in JavaScript |
2 | // by Dobrica Pavlinusic, dpavlin@rot13.org |
3 | // |
4 | // you must have define charset in head like this: |
5 | // meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" |
6 | |
7 | function JSCombo_translate(text) { |
8 | return text.replace(/[¡ÁÂÃÄ]/g,'A' |
9 | ).replace(/[ÆÇÈ]/g,'C' |
10 | ).replace(/[ÏÐ]/g,'D' |
11 | ).replace(/[ÉÊËÌ]/g,'E' |
12 | ).replace(/[ÍÎ]/g,'I' |
13 | ).replace(/[£¥Å]/g,'L' |
14 | ).replace(/[ÑÒ]/g,'N' |
15 | ).replace(/[ÓÔÕÖ]/g,'O' |
16 | ).replace(/[ÀØ]/g,'R' |
17 | ).replace(/[¦©ª]/g,'S' |
18 | ).replace(/[«Þ]/g,'T' |
19 | ).replace(/[ÙÚÛÜ]/g,'U' |
20 | ).replace(/[Ý]/g,'Y' |
21 | ).replace(/[¬®¯]/g,'Z' |
22 | ).replace(/[±áâãä]/g,'a' |
23 | ).replace(/[æçè]/g,'c' |
24 | ).replace(/[ïð]/g,'d' |
25 | ).replace(/[éêëì]/g,'e' |
26 | ).replace(/[íî]/g,'i' |
27 | ).replace(/[³µå]/g,'l' |
28 | ).replace(/[ñò]/g,'n' |
29 | ).replace(/[óôõö]/g,'o' |
30 | ).replace(/[àø]/g,'r' |
31 | ).replace(/[¶¹º]/g,'s' |
32 | ).replace(/[»þ]/g,'t' |
33 | ).replace(/[ùúûü]/g,'u' |
34 | ).replace(/[ý]/g,'y' |
35 | ).replace(/[¼¾¿]/g,'z' |
36 | ); |
37 | } |
38 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |