Grammalecte  Check-in [a786c60bab]

Overview
Comment:[core][js] function g_meta()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | core
Files: files | file ages | folders
SHA3-256: a786c60babe0fea6b2e6bd2d50aace8d303cceec379cfc7bd2019ecb08f28592
User & Date: olr on 2020-11-25 19:54:15
Other Links: manifest | tags
Context
2020-11-25
20:50
[graphspell][fr][fx] rename tokens check-in: 6aae160f81 user: olr tags: trunk, fr, fx, graphspell
19:54
[core][js] function g_meta() check-in: a786c60bab user: olr tags: trunk, core
18:26
[fr] mise à jour du dictionnaire check-in: 303694c201 user: olr tags: trunk, fr
Changes

Modified gc_core/js/lang_core/gc_functions.js from [9add95291e] to [2b92bbcf40].

318
319
320
321
322
323
324




325
326
327
328
329
330
331
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335







+
+
+
+







    }
    return false;
}

function g_tag (oToken, sTag) {
    return oToken.hasOwnProperty("aTags") && oToken["aTags"].has(sTag);
}

function g_meta (oToken, sType) {
    return oToken["sType"] == sType;
}

function g_space_between_tokens (oToken1, oToken2, nMin, nMax=null) {
    let nSpace = oToken2["nStart"] - oToken1["nEnd"]
    if (nSpace < nMin) {
        return false;
    }
    if (nMax !== null && nSpace > nMax) {