summaryrefslogtreecommitdiff
path: root/support/optexcount/src/keywords.py
blob: e8604d751bc7adacfc809eb659f02c53ca235b41 (plain)
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
48
"""
List of known keywords that has got some arguments
"O" - strOke argument
"W" - argument Without brackets
"S" - argument in Square brackets
"P" - argument in Parentheses
"C" - argument in Curly brackets
"""
keywords_list = {
    "\\ii": ["W", "W"],
    "\\label": ["S"],
    "\\ref": ["S"],
    "\\pgref": ["S"],
    "\\caption": ["0"],
    "\\begmulti": ["W"],
    "\\cite": ["S"],
    "\\rcite": ["S"],
    "\\bib": ["S"],
    "\\usebib": ["O", "P", "W"],
    "\\load": ["S"],
    "\\fontfam": ["S"],
    "\\typosize": ["S"],
    "\\typoscale": ["S"],
    "\\thefontsize": ["S"],
    "\\thefontscale": ["S"],
    "\\inspic": ["W"],
    "\\table": ["C", "C"],
    "\\hyperlinks": ["C", "C"],
    "\\outlines": ["C"],
    "\\magscale": ["S"],
    "\\margins": ["O", "W", "P", "W"],
    "\\style": ["W"],
    "\\url": ["C"],
    "\\loadmath": ["C"],
    "\\everytt": ["C"],
    "\\eqmark": ["S"]
}

"""
List of keywords that introduce some floats, we want to be counted in section table/floats/figures
Pay attention! This keyword MUST be introduced in keyword_list too, otherwise it won't count words properly!
"""
floats_keywords = ["\\table", "\\inspic"]

"""
List of keywords of logos
"""
logos = ["\\TeX", "\\OpTeX", "\\LuaTeX", "\\XeTeX", "\\OPmac", "\\CS", "\\csplain"]