node-sword-interface 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/node_sword_cli.cpp
CHANGED
|
@@ -29,14 +29,16 @@ void show_repos(RepositoryInterface& repoInterface)
|
|
|
29
29
|
|
|
30
30
|
void show_modules(RepositoryInterface& repoInterface)
|
|
31
31
|
{
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
string repo = "CrossWire";
|
|
33
|
+
cout << "DICT MODULES of " << repo << ":" << endl;
|
|
34
|
+
vector<SWModule*> modules = repoInterface.getRepoModulesByLang(repo, "en", ModuleType::dict);
|
|
35
|
+
|
|
34
36
|
for (unsigned int i = 0; i < modules.size(); i++) {
|
|
35
37
|
SWModule* currentModule = modules[i];
|
|
36
38
|
|
|
37
39
|
cout << currentModule->getName();
|
|
38
40
|
|
|
39
|
-
if (currentModule->getConfigEntry("Abbreviation")) {
|
|
41
|
+
/*if (currentModule->getConfigEntry("Abbreviation")) {
|
|
40
42
|
string moduleShortcut = currentModule->getConfigEntry("Abbreviation");
|
|
41
43
|
cout << " " << moduleShortcut;
|
|
42
44
|
}
|
|
@@ -47,10 +49,10 @@ void show_modules(RepositoryInterface& repoInterface)
|
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
string moduleVersion = currentModule->getConfigEntry("Version");
|
|
50
|
-
cout << " " << moduleVersion << " "
|
|
52
|
+
cout << " " << moduleVersion << " ";*/
|
|
51
53
|
|
|
52
|
-
string moduleLocked = currentModule->getConfigEntry("CipherKey") ? "LOCKED" : "";
|
|
53
|
-
cout << moduleLocked << " ";
|
|
54
|
+
//string moduleLocked = currentModule->getConfigEntry("CipherKey") ? "LOCKED" : "";
|
|
55
|
+
//cout << moduleLocked << " ";
|
|
54
56
|
|
|
55
57
|
/*ConfigEntMap::const_iterator begin = currentModule->getConfig().lower_bound("GlobalOptionFilter");
|
|
56
58
|
ConfigEntMap::const_iterator end = currentModule->getConfig().upper_bound("GlobalOptionFilter");
|
|
@@ -199,9 +201,9 @@ int main(int argc, char** argv)
|
|
|
199
201
|
|
|
200
202
|
//test_unlock_key(moduleInstaller, moduleStore, textProcessor);
|
|
201
203
|
|
|
202
|
-
/*show_repos(repoInterface)
|
|
204
|
+
/*show_repos(repoInterface);*/
|
|
203
205
|
|
|
204
|
-
show_modules(repoInterface)
|
|
206
|
+
show_modules(repoInterface);
|
|
205
207
|
|
|
206
208
|
/*int error = moduleInstaller.installModule("UKJV");
|
|
207
209
|
|
|
@@ -230,7 +232,7 @@ int main(int argc, char** argv)
|
|
|
230
232
|
|
|
231
233
|
//get_book_list(moduleHelper);
|
|
232
234
|
|
|
233
|
-
get_dict_key_list(dictHelper);
|
|
235
|
+
//get_dict_key_list(dictHelper);
|
|
234
236
|
|
|
235
237
|
//string translation = sword_facade.getSwordTranslation(string("/usr/share/sword/locales.d"), string("de"), string("locales"));
|
|
236
238
|
//cout << translation << endl;
|
|
@@ -230,9 +230,9 @@ vector<SWModule*> RepositoryInterface::getAllRepoModules(string repoName, Module
|
|
|
230
230
|
SWModule* currentModule = it->second;
|
|
231
231
|
string currentModuleType = currentModule->getType();
|
|
232
232
|
|
|
233
|
-
if (moduleType == ModuleType::dict && !this->_moduleHelper.moduleHasStrongsKeys(currentModule)) {
|
|
233
|
+
/*if (moduleType == ModuleType::dict && !this->_moduleHelper.moduleHasStrongsKeys(currentModule)) {
|
|
234
234
|
continue;
|
|
235
|
-
}
|
|
235
|
+
}*/
|
|
236
236
|
|
|
237
237
|
if (moduleTypeString == "ANY" || currentModuleType == moduleTypeString) {
|
|
238
238
|
modules.push_back(currentModule);
|