319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
|
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
|
-
+
-
+
|
//// Initialization
load: function (sContext="JavaScript", sPath="") {
try {
if (typeof(require) !== 'undefined') {
var ibdawg = require("resource://grammalecte/graphspell/ibdawg.js");
_oDict = new ibdawg.IBDAWG("${dic_name}.json");
_oDict = new ibdawg.IBDAWG("${dic_filename}.json");
} else {
_oDict = new IBDAWG("${dic_name}.json", sPath);
_oDict = new IBDAWG("${dic_filename}.json", sPath);
}
_sAppContext = sContext;
_dOptions = gc_options.getOptions(sContext).gl_shallowCopy(); // duplication necessary, to be able to reset to default
}
catch (e) {
helpers.logerror(e);
}
|