From e5fb5f390ed905d3a498c453987a9ec46417aa20 Mon Sep 17 00:00:00 2001 From: dl11 Date: Sun, 7 Nov 2021 17:05:55 +0100 Subject: [PATCH] LD Simple Fix --- apps/reader/tex_parser.cpp | 28 ++++++++++++++++++++++++++++ apps/reader/tex_parser.h | 29 ----------------------------- 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/apps/reader/tex_parser.cpp b/apps/reader/tex_parser.cpp index 2c5da6b9b..f23ebea7d 100644 --- a/apps/reader/tex_parser.cpp +++ b/apps/reader/tex_parser.cpp @@ -3,6 +3,34 @@ namespace Reader { +// List of available Symbols + static char const * k_SymbolsCommands[] = { + "times", "div", "forall", "partial", "exists", "pm", "approx", "infty", "neq", "equiv", "leq", "geq", + "leftarrow", "uparrow", "rightarrow", "downarrow", "leftrightarrow", "updownarrow", "Leftarrow", "Uparrow", "Rightarrow", "Downarrow", + "Alpha", "Beta", "Gamma", "Delta", "Epsilon", "Zeta", "Eta", "Theta", "Iota", "Kappa", "Lambda", + "Mu", "Nu", "Xi", "Omicron", "Pi", "Rho", "Sigma", "Tau", "Upsilon", "Phi", "Chi", "Psi","Omega", + "alpha", "beta", "gamma", "delta", "epsilon", "zeta", "eta", "theta", "iota", "kappa", "lambda", + "mu", "nu", "xi", "omicron", "pi", "rho", "sigma", "tau", "upsilon", "phi", "chi", "psi", "omega", + }; + + //List of the available Symbol's CodePoints in the same order of the Symbol's list + static uint32_t const k_SymbolsCodePoints[] = { + 0xd7, 0xf7, 0x2200, 0x2202, 0x2203, 0xb1, 0x2248, 0x221e, 0x2260, 0x2261, 0x2264, 0x2265, + 0x2190, 0x2191, 0x2192, 0x2193, 0x2194, 0x2195, 0x21d0, 0x21d1, 0x21d2, 0x21d3, + 0x391, 0x392, 0x393, 0x394, 0x395, 0x396, 0x397, 0x398, 0x399, 0x39a, 0x39b, + 0x39c, 0x39d, 0x39e, 0x39f, 0x3a0, 0x3a1, 0x3a3, 0x3a4, 0x3a5, 0x3a6, 0x3a7, 0x3a8, 0x3a9, + 0x3b1, 0x3b2, 0x3b3, 0x3b4, 0x3b5, 0x3b6, 0x3b7, 0x3b8, 0x3b9, 0x3ba, 0x3bb, + 0x3bc, 0x3bd, 0x3be, 0x3bf, 0x3c0, 0x3c1, 0x3c3, 0x3c4, 0x3c5, 0x3c6, 0x3c7, 0x3c8, 0x3c9 + }; + + // List of available Function Commands that don't require a specific handling + static char const * k_FunctionCommands[] = { + "arcos", "arcsin", "arctan", "arg", "cos", "cosh", "cot", "coth", + "csc", "deg", "det", "dim", "exp", "gcd", "hom", "inf", + "ker", "lg", "lim", "liminf", "limsup", "ln", "log", "max", + "min", "Pr", "sec", "sin", "sinh", "sup", "tan", "tanh" + }; + TexParser::TexParser(const char * text, const char * endOfText) : m_text(text), m_endOfText(endOfText), diff --git a/apps/reader/tex_parser.h b/apps/reader/tex_parser.h index edb049673..e62c8413b 100644 --- a/apps/reader/tex_parser.h +++ b/apps/reader/tex_parser.h @@ -36,35 +36,6 @@ private: static constexpr int const k_NumberOfSymbols = 70; static constexpr int const k_NumberOfFunctionCommands = 32; - - // List of available Symbols - static constexpr char const * k_SymbolsCommands[k_NumberOfSymbols] = { - "times", "div", "forall", "partial", "exists", "pm", "approx", "infty", "neq", "equiv", "leq", "geq", - "leftarrow", "uparrow", "rightarrow", "downarrow", "leftrightarrow", "updownarrow", "Leftarrow", "Uparrow", "Rightarrow", "Downarrow", - "Alpha", "Beta", "Gamma", "Delta", "Epsilon", "Zeta", "Eta", "Theta", "Iota", "Kappa", "Lambda", - "Mu", "Nu", "Xi", "Omicron", "Pi", "Rho", "Sigma", "Tau", "Upsilon", "Phi", "Chi", "Psi","Omega", - "alpha", "beta", "gamma", "delta", "epsilon", "zeta", "eta", "theta", "iota", "kappa", "lambda", - "mu", "nu", "xi", "omicron", "pi", "rho", "sigma", "tau", "upsilon", "phi", "chi", "psi", "omega", - }; - - //List of the available Symbol's CodePoints in the same order of the Symbol's list - static constexpr uint32_t const k_SymbolsCodePoints[k_NumberOfSymbols] = { - 0xd7, 0xf7, 0x2200, 0x2202, 0x2203, 0xb1, 0x2248, 0x221e, 0x2260, 0x2261, 0x2264, 0x2265, - 0x2190, 0x2191, 0x2192, 0x2193, 0x2194, 0x2195, 0x21d0, 0x21d1, 0x21d2, 0x21d3, - 0x391, 0x392, 0x393, 0x394, 0x395, 0x396, 0x397, 0x398, 0x399, 0x39a, 0x39b, - 0x39c, 0x39d, 0x39e, 0x39f, 0x3a0, 0x3a1, 0x3a3, 0x3a4, 0x3a5, 0x3a6, 0x3a7, 0x3a8, 0x3a9, - 0x3b1, 0x3b2, 0x3b3, 0x3b4, 0x3b5, 0x3b6, 0x3b7, 0x3b8, 0x3b9, 0x3ba, 0x3bb, - 0x3bc, 0x3bd, 0x3be, 0x3bf, 0x3c0, 0x3c1, 0x3c3, 0x3c4, 0x3c5, 0x3c6, 0x3c7, 0x3c8, 0x3c9 - }; - - // List of available Function Commands that don't require a specific handling - static constexpr char const * k_FunctionCommands[k_NumberOfFunctionCommands] = { - "arcos", "arcsin", "arctan", "arg", "cos", "cosh", "cot", "coth", - "csc", "deg", "det", "dim", "exp", "gcd", "hom", "inf", - "ker", "lg", "lim", "liminf", "limsup", "ln", "log", "max", - "min", "Pr", "sec", "sin", "sinh", "sup", "tan", "tanh" - }; - }; }