diff options
Diffstat (limited to 'Master/texmf-dist/source/support/optexcount/keywords.py')
-rw-r--r-- | Master/texmf-dist/source/support/optexcount/keywords.py | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/support/optexcount/keywords.py b/Master/texmf-dist/source/support/optexcount/keywords.py new file mode 100644 index 00000000000..e8604d751bc --- /dev/null +++ b/Master/texmf-dist/source/support/optexcount/keywords.py @@ -0,0 +1,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"]
\ No newline at end of file |