forked from scruffian/javascripture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
greekReplaceAccents.html
111 lines (95 loc) · 3.85 KB
/
greekReplaceAccents.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
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="google" content="notranslate" />
<title>Javascripture</title>
<link rel="stylesheet" href="css/layout.css" />
<style id="bodyFontFamily"></style>
<style id="bodyFontSize"></style>
</head>
<body>
<script src="lib/jquery-2.0.3.min.js"></script>
<script>
var javascripture = {
data: {
hebrew: {}
},
modules: {}
};
</script>
<script src="data/greek4.js"></script>
<div id="result"></div>
<script>
$.each( javascripture.data.greek, function( bookName, chapters ) {
chapters.forEach( function( verses ) {
verses.forEach( function( words ) {
words.forEach( function( wordArray ) {
// as
wordArray[0] = wordArray[0].replace( /ᾶ/gi, 'α');
wordArray[0] = wordArray[0].replace( /ὰ/gi, 'α');
wordArray[0] = wordArray[0].replace( /ᾶ/gi, 'α');
wordArray[0] = wordArray[0].replace( /ἀ/gi, 'α');
wordArray[0] = wordArray[0].replace( /ά/gi, 'α');
// es
wordArray[0] = wordArray[0].replace( /ἐ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /ὲ/gi, 'ε');
// us
wordArray[0] = wordArray[0].replace( /ῦ/gi, 'υ');
wordArray[0] = wordArray[0].replace( /ύ/gi, 'υ');
wordArray[0] = wordArray[0].replace( /ὖ/gi, 'υ');
wordArray[0] = wordArray[0].replace( /ὐ/gi, 'υ');
// hs
wordArray[0] = wordArray[0].replace( /ὴ/gi, 'η');
wordArray[0] = wordArray[0].replace( /ῇ/gi, 'η');
wordArray[0] = wordArray[0].replace( /ἡ/gi, 'η');
wordArray[0] = wordArray[0].replace( /ἤ/gi, 'η');
wordArray[0] = wordArray[0].replace( /ἦ/gi, 'η');
wordArray[0] = wordArray[0].replace( /ἠ/gi, 'η');
// ws
wordArray[0] = wordArray[0].replace( /ὼ/gi, 'ω');
wordArray[0] = wordArray[0].replace( /ῶ/gi, 'ω');
// os
wordArray[0] = wordArray[0].replace( /ὸ/gi, 'ο');
// is
wordArray[0] = wordArray[0].replace( /ἶ/gi, 'ι');
wordArray[0] = wordArray[0].replace( /ἶ/gi, 'ι');
wordArray[0] = wordArray[0].replace( /ί/gi, 'ι');
wordArray[0] = wordArray[0].replace( /ὶ/gi, 'ι');
wordArray[0] = wordArray[0].replace( /ἴ/gi, 'ι');
/* wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');
wordArray[0] = wordArray[0].replace( /έ/gi, 'ε');*/
} );
});
});
} );
document.getElementById( 'result' ).innerHTML = JSON.stringify( javascripture.data.greek );
</script>
</body>
</html>