ratex-parser 0.1.1

LaTeX parser for RaTeX
Documentation
{
  "regex": {
    "empty": "^$",
    "else": "^.",
    "else2": "^.",
    "space": "^\\s",
    "space A": "^\\s(?=[A-Z\\\\$])",
    "space$": "^\\s$",
    "a-z": "^[a-z]",
    "x": "^x",
    "x$": "^x$",
    "i$": "^i$",
    "letters": "^(?:[a-zA-Z\\u03B1-\\u03C9\\u0391-\\u03A9?@]|(?:\\\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\\s+|\\{\\}|(?![a-zA-Z]))))+",
    "\\greek": "^\\\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\\s+|\\{\\}|(?![a-zA-Z]))",
    "one lowercase latin letter $": "^(?:([a-z])(?:$|[^a-zA-Z]))$",
    "$one lowercase latin letter$ $": "^\\$(?:([a-z])(?:$|[^a-zA-Z]))\\$$",
    "one lowercase greek letter $": "^(?:\\$?[\\u03B1-\\u03C9]\\$?|\\$?\\\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\\s*\\$?)(?:\\s+|\\{\\}|(?![a-zA-Z]))$",
    "digits": "^[0-9]+",
    "-9.,9": "^[+\\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\\.[0-9]+))",
    "-9.,9 no missing 0": "^[+\\-]?[0-9]+(?:[.,][0-9]+)?",
    "_{(state of aggregation)}$": "^_\\{(\\([a-z]{1,3}\\))\\}",
    "{[(": "^(?:\\\\\\{|\\[|\\()",
    ")]}": "^(?:\\)|\\]|\\\\\\})",
    ", ": "^[,;]\\s*",
    ",": "^[,;]",
    ".": "^[.]",
    ". ": "^([.\\u22C5\\u00B7\\u2022])\\s*",
    "...": "^\\.\\.\\.(?=$|[^.])",
    "* ": "^([*])\\s*",
    "^a": "^\\^([0-9]+|[^\\\\_])",
    "^\\x": "^\\^(\\\\[a-zA-Z]+)\\s*",
    "^(-1)": "^\\^(-?\\d+)",
    "'": "^'",
    "_9": "^_([+\\-]?[0-9]+|[^\\\\])",
    "_\\x": "^_(\\\\[a-zA-Z]+)\\s*",
    "^_": "^(?:\\^(?=_)|\\_(?=\\^)|[\\^_]$)",
    "{}": "^\\{\\}",
    "=<>": "^[=<>]",
    "#": "^[#\\u2261]",
    "+": "^\\+",
    "-$": "^-(?=[\\s_},;\\]/]|$|\\([a-z]+\\))",
    "-9": "^-(?=[0-9])",
    "- orbital overlap": "^-(?=(?:[spd]|sp)(?:$|[\\s,;\\)\\]\\}]))",
    "-": "^-",
    "pm-operator": "^(?:\\\\pm|\\$\\\\pm\\$|\\+-|\\+\\/-)",
    "operator": "^(?:\\+|(?:[\\-=<>]|<<|>>|\\\\approx|\\$\\\\approx\\$)(?=\\s|$|-?[0-9]))",
    "arrowUpDown": "^(?:v|\\(v\\)|\\^|\\(\\^\\))(?=$|[\\s,;\\)\\]\\}])",
    "->": "^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\\u2192\\u27F6\\u21CC])",
    "CMT": "^[CMT](?=\\[)",
    "1st-level escape": "^(&|\\\\\\\\|\\\\hline)\\s*",
    "\\,": "^(?:\\\\[,\\ ;:])",
    "\\ca": "^\\\\ca(?:\\s+|(?![a-zA-Z]))",
    "\\x": "^(?:\\\\[a-zA-Z]+\\s*|\\\\[_&{}%])",
    "orbital": "^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])",
    "others": "^[\\/~|]",
    "oxidation$": "^(?:[+-][IVX]+|\\\\pm\\s*0|\\$\\\\pm\\$\\s*0)$",
    "d-oxidation$": "^(?:[+-]?\\s?[IVX]+|\\\\pm\\s*0|\\$\\\\pm\\$\\s*0)$",
    "roman numeral": "^[IVX]+",
    "1/2$": "^[+\\-]?(?:[0-9]+|\\$[a-z]\\$|[a-z])\\/[0-9]+(?:\\$[a-z]\\$|[a-z])?$",
    "(KV letters),": "^(?:[A-Z][a-z]{0,2}|i)(?=,)",
    "uprightEntities": "^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])",
    "/": "^\\s*(\\/)\\s*",
    "//": "^\\s*(\\/\\/)\\s*",
    "*": "^\\s*[*.]\\s*"
  },
  "functionKeys": [
    "$(...)$",
    "$...$",
    "${(...)}$",
    "(-)(9)^(-9)",
    "(-)(9.,9)(e)(99)",
    "[(...)]",
    "\\bond{(...)}",
    "\\ce{(...)}",
    "\\color(...){(...)}2",
    "\\color{(...)}0",
    "\\color{(...)}{(...)}1",
    "\\frac{(...)}",
    "\\overset{(...)}",
    "\\underbrace{(...)}",
    "\\underset{(...)}",
    "\\x{}",
    "\\x{}{}",
    "^($...$)",
    "^\\x{}",
    "^\\x{}{}",
    "^{(...)}",
    "_($...$)",
    "_\\x{}",
    "_\\x{}{}",
    "_{(...)}",
    "amount",
    "amount2",
    "formula$",
    "state of aggregation $",
    "{(...)}",
    "{...}"
  ]
}