Grammalecte  Diff

Differences From Artifact [f5b1b8c491]:

To Artifact [d511603a82]:


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
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





+
+










-
-
-
+
+
+


-
-
-
-
-
+
+
+
+
+
+
+
+
+





-
+





-
+
-
-
-
-
+
+


"""
Grammar checker default options
"""

# generated code, do not edit

import traceback

def getUI (sLang):
    "returns dictionary of UI labels"
    if sLang in _dOptLabel:
        return _dOptLabel[sLang]
    return _dOptLabel["fr"]


def getOptions (sContext="Python"):
    "returns dictionary of options"
    if sContext in dOpt:
        return dOpt[sContext]
    return dOpt["Python"]
    if sContext in _dOpt:
        return _dOpt[sContext]
    return _dOpt["Python"]


def getOptionsColors (sContext="Python"):
    "returns dictionary of options"
    if sContext in dOptColor:
        return dOptColor[sContext]
    return dOptColor["Python"]
def getOptionsColors (sTheme="Default", sColorType="aRGB"):
    "returns dictionary of options colors"
    dOptColor = _dOptColor[sTheme]  if sTheme in _dOptColor  else  _dOptColor["Default"]
    dColorType = _dColorType[sColorType]  if sColorType in _dColorType  else _dColorType["aRGB"]
    try:
        return {  sOpt: dColorType[sColor] for sOpt, sColor in dOptColor.items() }
    except:
        traceback.print_exc()
        return {}


lStructOpt = ${lStructOpt}


dOpt = {
_dOpt = {
    "Python": ${dOptPython},
    "Server": ${dOptServer},
    "Writer": ${dOptWriter}
}

dOptColor = {
_dColorType= ${dColorType}
    "Python": ${dOptColorPython},
    "Server": ${dOptColorServer},
    "Writer": ${dOptColorWriter}
}

_dOptColor = ${dOptColor}

_dOptLabel = ${dOptLabel}