-
Notifications
You must be signed in to change notification settings - Fork 29
/
global.settings.php
156 lines (115 loc) · 5.12 KB
/
global.settings.php
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
<?php
# PLEASE DO NOT REMOVE OR CHANGE THIS COPYRIGHT BLOCK
# ====================================================================
#
# Quran Analysis (www.qurananalysis.com). Full Semantic Search and Intelligence System for the Quran.
# Copyright (C) 2015 Karim Ouda
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# You can use Quran Analysis code, framework or corpora in your website
# or application (commercial/non-commercial) provided that you link
# back to www.qurananalysis.com and sufficient credits are given.
#
# ====================================================================
$MAIN_ROOT_PATH = dirname(__FILE__)."/";
error_reporting(E_ALL);
$BUILD_VERSION = "0.1.1";
$MAIN_JS_PATH = "/libs/js/main.js?bv=$BUILD_VERSION";
$JQUERY_PATH = "/libs/js/jquery/jquery-2.1.1.min.js";
$D3_PATH = "/libs/js/d3/d3.js";
$JQUERY_TAGCLOUD_PATH ="/libs/js/jquery.tagcloud.js";
$TINYSORT_PATH = "/libs/js/tinysort/tinysort.min.js";
$TINYSORT_JQ_PATH = "/libs/js/tinysort/jquery.tinysort.min.js";
/*
$HIGHCHARTS_PATH = "/libs/js/highcharts-4-0-1/js/highcharts.js";
$HIGHCHARTS_3D_PATH = "/libs/js/highcharts-4-0-1/js/highcharts-3d.js";
$HIGHCHARTS_EXPORTING_PATH = "/libs/js/highcharts-4-0-1/js/modules/exporting.js";
$JQUERY_UI_PATH = "/libs/jquery-ui-1-11-0-beta-1/ui/minified/jquery-ui.min.js";
$JQUERY_UI_CSS_PATH = "/libs/jquery-ui-1-11-0-beta-1/themes/base/minified/jquery-ui.min.css";
*/
mb_regex_encoding('UTF-8');
mb_internal_encoding("UTF-8");
$quranMetaDataFile = dirname(__FILE__)."/data/quran-data.xml";
$quranFileEN = dirname(__FILE__)."/data/translations/en.sahih";
$quranFileAR = dirname(__FILE__)."/data/quran-simple-clean.txt";
$quranFileUthmaniAR = dirname(__FILE__)."/data/quran-uthmani.txt";
$wordByWordTranslationFile = dirname(__FILE__)."/data/translations/word-by-word-english.txt";
$transliterationFile = dirname(__FILE__)."/data/transliteration/en.transliteration.txt";
$wordnetDir = dirname(__FILE__)."/data/wordnet/dict/";
$customTranslationTableFile = dirname(__FILE__)."/data/generated/translation.table";
$quranFileAR_XML = dirname(__FILE__)."/data/quran-simple-clean.xml";
$quranCorpusMorphologyFile = dirname(__FILE__)."/data/quranic-corpus-morphology-0.4.txt";
$quranaPronounResolutionConceptsFile = dirname(__FILE__)."/data/quran-pron/concepts.xml";
$quranaPronounResolutionDataFileTemplate = dirname(__FILE__)."/data/quran-pron/pronxml-%s.xml";
$qaOntologyFile = dirname(__FILE__)."/data/ontology/qa.ontology.v1.owl";
$qaOntologyNamespace = "http://qurananalysis.com/data/ontology/qa.ontology.v1.owl#";
$is_a_relation_name_ar = "هو";
$is_a_relation_name_en = "is a";
$thing_class_name_ar = "شيء";
$thing_class_name_en = "Thing";
$englishResourceFile = dirname(__FILE__)."/data/resources.en";
$arabicResourceFile = dirname(__FILE__)."/data/resources.ar";
$modelSources = array();
$supportedLanguages = array("EN","AR","AR_UTH");
$modelSources['AR']= array("type"=>"TXT","file"=>$quranFileAR);
$modelSources['AR_UTH']= array("type"=>"TXT","file"=>$quranFileUthmaniAR);
//$modelSources['AR']= array("type"=>"XML","file"=>$quranFileAR_XML);
$modelSources['EN']= array("type"=>"TXT","file"=>$quranFileEN);
$serializedModelFile = dirname(__FILE__)."/data/model.ser";
$pauseMarksFile = dirname(__FILE__)."/data/pause.marks";
$arabicStopWordsFile = dirname(__FILE__)."/data/quran-stop-words.strict.l1.ar";
$arabicStopWordsFileL2 = dirname(__FILE__)."/data/quran-stop-words.strict.l2.ar";
$englishStopWordsFile = dirname(__FILE__)."/data/english-stop-words.en";
$sajdahMark = "۩";
$saktaLatifaMark = "ۜ";
$numberOfVerses = 6236;
$numberOfSuras = 114;
$basmalaText = "بسم الله الرحمن الرحيم";
$basmalaTextUthmani = "بِّسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ";
$basmalaTextUthmani2 = "بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ";
$mandatoryStop = "ۘ";
## LOCATION SIGNIFICANT ##
require_once($MAIN_ROOT_PATH."/libs/core.lib.php");
require_once($MAIN_ROOT_PATH."/model.loader.php");
if ( isDevEnviroment() )
{
error_reporting(E_ERROR);
ini_set('display_errors', true);
function shutdown()
{
$isSevereError = false;
$errorArr = error_get_last();
if (!empty($errorArr) )
{
switch($errorArr['type'])
{
case E_ERROR:
//case E_USER_ERROR:
case E_CORE_ERROR:
case E_COMPILE_ERROR:
$isSevereError = true;
break;
default:
}
}
if ($isSevereError)
{
echo "SEVERE ERROR: ".$errorArr['message'];
preprint_r($errorArr);
}
}
register_shutdown_function('shutdown');
}
?>