Grammalecte  Diff

Differences From Artifact [7b6c2ffd4b]:

To Artifact [46602d3f85]:


9
10
11
12
13
14
15

16


17




18
19
20
21
22
23
24
9
10
11
12
13
14
15
16
17
18
19

20
21
22
23
24
25
26
27
28
29
30







+

+
+
-
+
+
+
+








if (typeof(require) !== 'undefined') {
    var helpers = require("resource://grammalecte/helpers.js");
    var gc_options = require("resource://grammalecte/${lang}/gc_options.js");
    var gc_rules = require("resource://grammalecte/${lang}/gc_rules.js");
    var cregex = require("resource://grammalecte/${lang}/cregex.js");
    var text = require("resource://grammalecte/text.js");
    var echo = helpers.echo;
}
else if (typeof(console) !== "undefined") {
    var echo = function (o) { console.log(o); return true; };

}
else {
    var echo = function () { return true; }
}

function capitalizeArray (aArray) {
    // can’t map on user defined function??
    let aNew = [];
    for (let i = 0; i < aArray.length; i = i + 1) {
        aNew[i] = aArray[i].gl_toCapitalize();
    }