-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUnicode.html
136 lines (135 loc) · 6.12 KB
/
Unicode.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
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ckb" dir="rtl" >
<head>
<title>Kurdînûs 2019</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta name="viewport" content= "width=device-width, initial-scale=1.0">
<meta name="keywords" content="kurdish,kurdish transliteration,kurdish alphabet converter,kurdish normalizer,kurdinus,کوردی نووس,کوردینوس,کوردینووس,پەڵک,یونیکۆد,یوونکۆد,گۆڕینی ئەلفوبێ,تایپی کوردی,تەختەکلیلی کوردی,کوردی" />
<meta name="description" content="بەرنامەیەک بۆ تایپ، گۆڕینی ئەلفوبێ و ستاندارد کردنی خاڵبەندی و یوونیکۆدی کورد" />
<link rel="stylesheet" href="kurdinus.css">
</head>
<body onload="initialize();" style="direction: rtl;">
<noscript>
<div class="error">
<h1>وێبگەڕەکەت ناهێڵێت سکریپتەکان کار بکەن</h1>
<p>ئەگەر Internet Explorer بە کار دێنیت، لەسەر Allow Blocked Content دا کلیک بکە.</p>
<a href="http://www.enable-javascript.com/" target="_blank">How to enable JavaScript in your browser</a>
</div>
</noscript>
<!--[if lt IE 8]>
<style type="text/css">
#main { width: 570px; }
.max #main { width: 98%; }
</style>
<![endif]-->
<div class="title">
<b><a href="http://kurdinus.com/" target="_self">Kurdînûs 2019</a></b>
<div style="font-size:16px;" class="navbar">
<div class="nav-item"><a href="Type.html">تایپ</a></div>
<div class="nav-item"><a href="Transliterate.html">گۆڕینیئەلفوبێ</a></div>
<div class="nav-item"><a href="Normalize.html">خاوێنکردنەوە</a></div>
<div class="nav-item active">بەیوونیکۆدکردن</div>
</div>
</div>
<div id="TabUnicode" class="selectedTab">
<div class="navbar">
<div id="itemAliK" onclick="return ChangeFontType('AliK')">Ali-K</div>
<div id="itemAliWeb" onclick="return ChangeFontType('AliWeb')">Ali-Web</div>
<div id="itemKDylan" onclick="return ChangeFontType('KDylan')">K-Dylan</div>
</div>
<textarea id="inputUnicode" placeholder="دەقی فۆنتی نایوونیکۆد بخەرە ئێرە" spellcheck="false"
onblur="Font2Unicode()" onkeyup="Font2Unicode()" onmousedown="Font2Unicode()" onmouseup="Font2Unicode()"></textarea>
<div class="textout"><pre id="outputUnicode"></pre></div>
<div id="btnCopyUnicode" onclick="CopyOutput()">کۆپی</div>
<div id="btnClearUnicode" onclick="clearAll()">سڕینەوە</div>
<div class="option">
جۆری ژمارەکان:
<select id="NumTypeUnicode" onchange="Font2Unicode()">
<option value="Arabic" selected=selected>٠١٢٣٤٥٦٧٨٩</option>
<option value="Latin">0123456789</option>
<option value="NoChange">وەک خۆی بمێنێتەوە</option>
</select>
</div>
</div>
<div id="footer">
© 2019 Aso Mahmudi <br />
<a href="http://www.kurdinus.com/" target="_blank">Kurdinus.com</a>
– <a href="https://www.facebook.com/kurdinus/" target="_blank">Facebook</a>
– <a href="https://www.github.com/aso-mehmudi/kurdinus/" target="_blank">GitHub</a>
</div>
<script src="Kurdinus.js"></script>
<script type="text/javascript">
function initialize(){
ChangeFontType('AliK');
document.getElementById('btnCopyUnicode').className = 'hidden';;
document.getElementById('btnClearUnicode').className = 'hidden';
document.getElementById('outputUnicode').innerHTML = '';
document.getElementById('outputUnicode').className = 'hidden';
Font2Unicode();
}
function ChangeFontType(type) {
if (type == 'AliK') {
document.getElementById('itemAliK').className = 'nav-item active';
document.getElementById('itemAliWeb').className = 'nav-item';
document.getElementById('itemKDylan').className = 'nav-item';
Font2Unicode();
}
if (type == 'AliWeb') {
document.getElementById('itemAliK').className = 'nav-item';
document.getElementById('itemAliWeb').className = 'nav-item active';
document.getElementById('itemKDylan').className = 'nav-item';
Font2Unicode();
}
if (type == 'KDylan') {
document.getElementById('itemAliK').className = 'nav-item';
document.getElementById('itemAliWeb').className = 'nav-item';
document.getElementById('itemKDylan').className = 'nav-item active';
Font2Unicode();
}
}
function CopyOutput() {
var text = document.getElementById('outputUnicode');
if (document.body.createTextRange) { //ms
var range = document.body.createTextRange();
range.moveToElementText(text);
range.select();
} else if (window.getSelection) { //all others
var selection = window.getSelection();
range = document.createRange();
range.selectNodeContents(text);
selection.removeAllRanges();
selection.addRange(range);
}
document.execCommand("copy");
}
function Font2Unicode() {
if (document.getElementById('inputUnicode').value != ''){
var text = document.getElementById('inputUnicode').value;
if(document.getElementById('itemAliK').className == "nav-item active"){
text = ConvertFont2Unicode(text, 'AliK');
}
if(document.getElementById('itemAliWeb').className == "nav-item active"){
text = ConvertFont2Unicode(text, 'AliWeb');
}
if(document.getElementById('itemKDylan').className == "nav-item active"){
text = ConvertFont2Unicode(text, 'Dylan');
}
text = UnifyNumbers(text, document.getElementById('NumTypeUnicode').value);
document.getElementById('outputUnicode').className = "pre";
document.getElementById('outputUnicode').innerHTML = text;
document.getElementById('btnCopyUnicode').className = 'btn-danger';
document.getElementById('btnClearUnicode').className ='btn-light';
} else {
clearAll('Unicode');
};
};
function clearAll() {
document.getElementById('inputUnicode').value = '';
document.getElementById('outputUnicode').innerHTML = '';
document.getElementById('outputUnicode').className = 'hidden';
document.getElementById('btnCopyUnicode').className = 'hidden';
document.getElementById('btnClearUnicode').className = 'hidden';
};
</script>
</body>
</html>