commit f2c3a6ff150ea75a754fa26f587018dd5a055a33
Author: Thibaut Cuvelier <[email protected]>
Date: Thu Feb 6 22:00:45 2025 +0100
Rename latexkeys::MathMLtype to avoid using upper case.
---
src/mathed/InsetMathSymbol.cpp | 8 ++++----
src/mathed/MacroTable.cpp | 2 +-
src/mathed/MathParser.cpp | 2 +-
src/mathed/MathParser.h | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/mathed/InsetMathSymbol.cpp b/src/mathed/InsetMathSymbol.cpp
index 29b2734f8e..e690e2b6d8 100644
--- a/src/mathed/InsetMathSymbol.cpp
+++ b/src/mathed/InsetMathSymbol.cpp
@@ -162,18 +162,18 @@ void InsetMathSymbol::mathmlize(MathMLStream & ms) const
{
// FIXME We may need to do more interesting things
// with MathMLtype.
- ms << MTagInline(sym_->MathMLtype());
+ ms << MTagInline(sym_->mathml_type());
if (sym_->xmlname == "x") {
// unknown so far
ms << name();
- } else if (strcmp(sym_->MathMLtype(), "mi") == 0) {
+ } else if (strcmp(sym_->mathml_type(), "mi") == 0) {
// If it's a character or a Greek letter (i.e. "mi"), map to a
font.
ms << StartRespectFont() << sym_->xmlname << StopRespectFont();
} else {
// Operators do not have font variants.
ms << sym_->xmlname;
}
- ms << ETagInline(sym_->MathMLtype());
+ ms << ETagInline(sym_->mathml_type());
}
@@ -181,7 +181,7 @@ void InsetMathSymbol::htmlize(HtmlStream & os, bool
spacing) const
{
// FIXME We may need to do more interesting things
// with MathMLtype.
- char const * type = sym_->MathMLtype();
+ char const * type = sym_->mathml_type();
bool op = (std::string(type) == "mo");
if (sym_->xmlname == "x")
diff --git a/src/mathed/MacroTable.cpp b/src/mathed/MacroTable.cpp
index 2793728cf5..6fa3f1a135 100644
--- a/src/mathed/MacroTable.cpp
+++ b/src/mathed/MacroTable.cpp
@@ -131,7 +131,7 @@ docstring const MacroData::xmlname() const
char const * MacroData::MathMLtype() const
{
- return sym_ ? sym_->MathMLtype() : 0;
+ return sym_ ? sym_->mathml_type() : 0;
}
diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp
index 1c79aea592..8ab1ebed58 100644
--- a/src/mathed/MathParser.cpp
+++ b/src/mathed/MathParser.cpp
@@ -2142,7 +2142,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
// FIXME This will likely need some work.
-char const * latexkeys::MathMLtype() const
+char const * latexkeys::mathml_type() const
{
// Consider as identifier (mml:mi): ordinary and alphabetical
characters.
if (extra == "mathord" || extra == "mathalpha")
diff --git a/src/mathed/MathParser.h b/src/mathed/MathParser.h
index 67d616faba..33513dd1cb 100644
--- a/src/mathed/MathParser.h
+++ b/src/mathed/MathParser.h
@@ -33,7 +33,7 @@ public:
///
latexkeys() : hidden(false) {}
///
- char const * MathMLtype() const;
+ char const * mathml_type() const;
/// name of the macro or primitive
docstring name;
/// name of an inset that handles that macro
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs