-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
201 lines (197 loc) · 10.7 KB
/
index.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
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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Transcription and Transliteration</title>
<meta charset="UTF-8"></meta>
<link rel="stylesheet" type="text/css" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"></link>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"></link>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"></link>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/virtual-keyboard/1.26.22/css/keyboard-basic.min.css"></link>
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/readable/bootstrap.min.css" rel="stylesheet" integrity="sha384-Li5uVfY2bSkD3WQyiHX8tJd0aMF91rMrQP5aAewFkHkVSTT2TmD2PehZeMmm7aiL" crossorigin="anonymous"></link>
<style>
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: "Noto Sans", "Noto Sans Ethiopic", "Noto Arabic", "Noto Sans Georgian", "Noto Sans Armenian", "Noto Sans Old South Arabian", "Noto Sans Coptic", sans-serif;
}
/*** Alt-Keys Popup extension (included in the keyboard.css file) ***/
/* clickable overlay on top of keyboard to hide the popup */
.ui-keyboard-overlay {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, 0.5);
}
/* the actual popup styling, class names from the css.container option
are also added */
.ui-keyboard-popup {
display: inline-block;
/* default buttons are 2em wide + .1em margin on either side (set in
.ui-keyboard-button definition); so use multiples of 2.2em for a
max-width if you don't want any extra white space on the sides,
e.g. 5 buttons * 2.2em = 11em, 6 buttons * 2.2em = 13.2em, etc
*/
max-width: 22em; /* 10 buttons */
}
.ui-keyboard {
border-radius: 0;
left: 0;
bottom: inherit;
position: fixed;
width: 50%;
}
</style>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.6.0/clipboard.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/virtual-keyboard/1.26.22/js/jquery.keyboard.js"></script>
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/virtual-keyboard/1.26.22/js/jquery.mousewheel.min.js"></script>
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/virtual-keyboard/1.26.22/js/jquery.keyboard.extension-typing.min.js"></script>
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/virtual-keyboard/1.26.22/js/jquery.keyboard.extension-altkeyspopup.min.js"></script>
<script type="application/javascript" src="diacriticskeyboard.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
</head>
<body>
<div class="col-md-12">
<h1>Transcription and transliteration</h1>
<ul class="lead">
<li>
<a href="#intro">Transcription transformation</a>
</li>
<li>
<a href="#introTr">Transliteration transformation</a>
</li>
</ul>
</div>
<div class="col-md-12">
<h2>Transcription transformation</h2>
<div class="row" id="intro">
<div class="col-md-6">
<p class="lead">Enter here text in old conventions like
<i>Mäḥalǝyä mäḥalǝy</i> or <i>Ǝsṭifanos</i> then click anywhere. </p>
<p class="lead">For cases like Ba-Ḫayla Mikāʾel you will be prompted to confirm
the substitution.</p>
</div>
<div class="col-md-6">
<p class="lead">This is the text with the current
transcription conventions, like <i>Maḥālǝya maḥālǝy</i> or <i>ʾƎsṭifānos</i>
</p>
</div>
</div>
<div class="row" id="text">
<div class="col-md-6">
<form>
<textarea class="form-control diacriticsb" name="enter" id="textinput" style="width: 100%; height: 300px"></textarea>
<a class="kbb btn btn-success">
<i class="fa fa-keyboard-o" aria-hidden="true"></i>
</a>
</form>
</div>
<div class="col-md-6">
<div class="col-md-10 " style="background-color:#e6f2ff; height: 300px">
<div class="col-md-12" id="result"></div>
</div>
<button class="btn btn-primary col-md-2" data-clipboard-target="#result">copy</button>
</div>
</div>
</div>
<div class="row" id="rules">
<div class="col-md-6">
<div class="col-md-12">
<hr></hr>
<h2>Rules applied</h2>
<ol class="lead">
<li>
<ul>
<li>ä <i class="fa fa-arrow-right" aria-hidden="true"></i> a</li>
<li>a <i class="fa fa-arrow-right" aria-hidden="true"></i> ā</li>
<li>ṣ́ <i class="fa fa-arrow-right" aria-hidden="true"></i> ḍ</li>
<li>ˀ <i class="fa fa-arrow-right" aria-hidden="true"></i> ʾ</li>
<li>ˁ <i class="fa fa-arrow-right" aria-hidden="true"></i> ʿ</li>
</ul>
</li>
<li>ʾ is added if the input starts with a vowel</li>
<li>If the first vowel is a in the old transcription this is kept as it
is.</li>
<li>For possible prepositions you will be asked if an hyphen is needed. The
following prepositions are recognized AFTER the first step is performed: <ul>
<li>wa</li>
<li>Wa</li>
<li>ba</li>
<li>Ba</li>
<li>ya</li>
<li>Ya</li>
<li>za</li>
<li>Za</li>
<li>la</li>
<li>La</li>
<li>ka</li>
<li>Ka</li>
<li>ʾǝm"</li>
</ul> The list can be expanded upon request <a href="https://github.com/BetaMasaheft/transliteration/issues/new" target="_blank">in a proper ticket</a>. </li>
<li>If the possible preposition is followed by two consonants it will be
assumed it is no preposition</li>
</ol>
<h2>Examples</h2>
<ul class="lead">
<li>Mäṣḥetä amin <i class="fa fa-arrow-right" aria-hidden="true"></i>
Maṣḥeta ʾamin </li>
<li> Śǝrʿatä abäw <i class="fa fa-arrow-right" aria-hidden="true"></i>
Śǝrʿāta ʾabaw</li>
<li> aʿǝban <i class="fa fa-arrow-right" aria-hidden="true"></i>
ʾaʿǝbān</li>
<li> ǝmqalatä <i class="fa fa-arrow-right" aria-hidden="true"></i>
ʾǝm-qālāta</li>
<li>Bärtolomewos <i class="fa fa-arrow-right" aria-hidden="true"></i>
Bartolomewos</li>
<li> Bärbara <i class="fa fa-arrow-right" aria-hidden="true"></i>
Barbārā</li>
</ul>
</div>
</div>
<div class="col-md-6">
<hr></hr>
<div class="alert alert-info fade in">
<a href="#" class="close" data-dismiss="alert" aria-label="close">close</a> More
rules are welcome! Please write a new ticket. <a href="https://github.com/BetaMasaheft/transliteration/issues/new" role="button" class="btn btn-primary" target="_blank">New Ticket</a>
</div>
</div>
</div>
<div class="col-md-12">
<h2>Transliteration</h2>
<div class="row" id="introTr">
<div class="col-md-6">
<p class="lead">Enter here fidal or transcription</p>
</div>
<div class="col-md-6">
<p class="lead">You will get here the other of the two.
</p>
</div>
</div>
<div class="row" id="textTr">
<div class="col-md-6">
<form>
<textarea class="form-control diacriticsa" id="inputtranslitteration" style="width: 100%; height: 300px" placeholder="Enter here transliteration"></textarea>
<a class="kba btn btn-success">
<i class="fa fa-keyboard-o" aria-hidden="true"></i>
</a>
<textarea class="form-control diacritics" id="inputfidel" style="width: 100%; height: 300px" placeholder="Enter here fidal"></textarea>
<a class="kb btn btn-success">
<i class="fa fa-keyboard-o" aria-hidden="true"></i>
</a>
</form>
</div>
<div class="col-md-6">
<div class="col-md-10 " style="background-color:#e6f2ff; height: 300px">
<div class="col-md-12" id="resultTr"></div>
</div>
<button class="btn btn-primary col-md-2" data-clipboard-target="#resultTr">copy</button>
<div class="col-md-10 " style="background-color:#e6f2ff; height: 300px">
<div class="col-md-12" id="resultNoShwa"></div>
</div>
<button class="btn btn-primary col-md-2" data-clipboard-target="#resultNoShwa">copy</button>
</div>
</div>
</div>
<script type="text/javascript" src="traslate.js"></script>
<script type="text/javascript" src="translitterator.js"></script>
</body>
</html>