[LyX/master] Run codespell on src/mathed

Jean-Marc Lasgouttes lasgouttes at lyx.org
Thu Jun 25 21:23:20 UTC 2020


commit 3c4e567d44e48ccfbbd1e47e7a138bd782153bf2
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Thu Jun 25 23:31:42 2020 +0200

    Run codespell on src/mathed
    
    codespell -w -i 3 -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus,wit,nd,numer  src/mathed/
---
 src/mathed/BUGS                     |    2 +-
 src/mathed/InsetMathGrid.h          |    4 ++--
 src/mathed/InsetMathMacro.cpp       |    2 +-
 src/mathed/InsetMathMacroTemplate.h |    2 +-
 src/mathed/InsetMathNest.cpp        |    2 +-
 src/mathed/MathData.cpp             |    2 +-
 src/mathed/MathExtern.cpp           |    4 ++--
 src/mathed/MathParser.cpp           |    6 +++---
 src/mathed/MathParser_flags.h       |    2 +-
 src/mathed/MathRow.h                |    2 +-
 src/mathed/texify                   |    2 +-
 11 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/mathed/BUGS b/src/mathed/BUGS
index b94eaf1..dc1e4c4 100644
--- a/src/mathed/BUGS
+++ b/src/mathed/BUGS
@@ -68,4 +68,4 @@ I'd like is to let LyX know about TeX's scoping rules...
 
 Angus:
 
-- make math lables editable
+- make math labels editable
diff --git a/src/mathed/InsetMathGrid.h b/src/mathed/InsetMathGrid.h
index 89c8e7f..1c8efd1 100644
--- a/src/mathed/InsetMathGrid.h
+++ b/src/mathed/InsetMathGrid.h
@@ -45,7 +45,7 @@ public:
 		CellInfo();
 		/// multicolumn flag
 		Multicolumn multi;
-		/// special multi colums alignment
+		/// special multi columns alignment
 		docstring align;
 	};
 
@@ -95,7 +95,7 @@ public:
 	};
 
 public:
-	/// sets nrows and ncols to 1, vertical alingment to 'c'
+	/// sets nrows and ncols to 1, vertical alignment to 'c'
 	explicit InsetMathGrid(Buffer * buf);
 	/// Note: columns first!
 	InsetMathGrid(Buffer * buf, col_type m, row_type n);
diff --git a/src/mathed/InsetMathMacro.cpp b/src/mathed/InsetMathMacro.cpp
index b536701..72224f4 100644
--- a/src/mathed/InsetMathMacro.cpp
+++ b/src/mathed/InsetMathMacro.cpp
@@ -744,7 +744,7 @@ void InsetMathMacro::draw(PainterInfo & pi, int x, int y) const
 			pi.pain.text(x, y, from_ascii(":"), labelFont);
 			x += strw2;
 
-			// draw paramter
+			// draw parameter
 			cell(i).draw(pi, x, y);
 
 			// next line
diff --git a/src/mathed/InsetMathMacroTemplate.h b/src/mathed/InsetMathMacroTemplate.h
index 7bdb6a5..bdba221 100644
--- a/src/mathed/InsetMathMacroTemplate.h
+++ b/src/mathed/InsetMathMacroTemplate.h
@@ -48,7 +48,7 @@ public:
 	void write(std::ostream & os) const;
 	///
 	void write(WriteStream & os) const;
-	/// Output LaTeX code, but assume that the macro is not definied yet
+	/// Output LaTeX code, but assume that the macro is not defined yet
 	/// if overwriteRedefinition is true
 	int write(WriteStream & os, bool overwriteRedefinition) const;
 	/// Nothing happens. This is simply to suppress the default output.
diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp
index 44091f0..a94ce33 100644
--- a/src/mathed/InsetMathNest.cpp
+++ b/src/mathed/InsetMathNest.cpp
@@ -1404,7 +1404,7 @@ bool InsetMathNest::getStatus(Cursor & cur, FuncRequest const & cmd,
 	case LFUN_INSET_INSERT: {
 		// Don't test createMathInset_fromDialogStr(), since
 		// getStatus is not called with a valid reference and the
-		// dialog would not be applyable.
+		// dialog would not be applicable.
 		string const name = cmd.getArg(0);
 		flag.setEnabled(name == "ref" || name == "mathspace");
 		break;
diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp
index a2b044c..42aa3cb 100644
--- a/src/mathed/MathData.cpp
+++ b/src/mathed/MathData.cpp
@@ -322,7 +322,7 @@ void MathData::drawSelection(PainterInfo & pi, int const x, int const y) const
 	MathData const & c1 = inset->cell(s1.idx());
 
 	if (s1.idx() == s2.idx() && &c1 == this) {
-		// selection indide cell
+		// selection inside cell
 		Dimension const dim = bv->coordCache().getArrays().dim(&c1);
 		int const beg = c1.pos2x(bv, s1.pos());
 		int const end = c1.pos2x(bv, s2.pos());
diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp
index 46c5448..311b323 100644
--- a/src/mathed/MathExtern.cpp
+++ b/src/mathed/MathExtern.cpp
@@ -342,7 +342,7 @@ void replaceNested(
 
 
 //
-// split scripts into seperate super- and subscript insets. sub goes in
+// split scripts into separate super- and subscript insets. sub goes in
 // front of super...
 //
 
@@ -683,7 +683,7 @@ void extractIntegrals(MathData & ar, ExternalMath kind)
 		if (!testIntegral(*it))
 			continue;
 
-		// core ist part from behind the scripts to the 'd'
+		// core is part from behind the scripts to the 'd'
 		auto p = make_unique<InsetMathExInt>(buf, from_ascii("int"));
 
 		// handle scripts if available
diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp
index 00f7e99..56ca6db 100644
--- a/src/mathed/MathParser.cpp
+++ b/src/mathed/MathParser.cpp
@@ -158,7 +158,7 @@ docstring escapeSpecialChars(docstring const & str, bool textmode)
 
 /*!
  * Add the row \p cellrow to \p grid.
- * \returns wether the row could be added. Adding a row can fail for
+ * \returns whether the row could be added. Adding a row can fail for
  * environments like "equation" that have a fixed number of rows.
  */
 bool addRow(InsetMathGrid & grid, InsetMathGrid::row_type & cellrow,
@@ -193,7 +193,7 @@ bool addRow(InsetMathGrid & grid, InsetMathGrid::row_type & cellrow,
 
 /*!
  * Add the column \p cellcol to \p grid.
- * \returns wether the column could be added. Adding a column can fail for
+ * \returns whether the column could be added. Adding a column can fail for
  * environments like "eqnarray" that have a fixed number of columns.
  */
 bool addCol(InsetMathGrid & grid, InsetMathGrid::col_type & cellcol)
@@ -360,7 +360,7 @@ ostream & operator<<(ostream & os, Token const & t)
 {
 	if (!t.cs().empty()) {
 		docstring const & cs = t.cs();
-		// FIXME: For some strange reason, the stream operator instanciate
+		// FIXME: For some strange reason, the stream operator instantiate
 		// a new Token before outputting the contents of t.cs().
 		// Because of this the line
 		//     os << '\\' << cs;
diff --git a/src/mathed/MathParser_flags.h b/src/mathed/MathParser_flags.h
index fa9501a..ae516d1 100644
--- a/src/mathed/MathParser_flags.h
+++ b/src/mathed/MathParser_flags.h
@@ -23,7 +23,7 @@ enum flags {
 	TEXTMODE = 0x01,
 	/// Parse verbatim.
 	VERBATIM = 0x02,
-	/// Quiet operation (no warnigs or errors).
+	/// Quiet operation (no warnings or errors).
 	QUIET = 0x04,
 	/// Wrap unicode symbols in \text{}.
 	USETEXT = 0x08,
diff --git a/src/mathed/MathRow.h b/src/mathed/MathRow.h
index e009b90..6d1a410 100644
--- a/src/mathed/MathRow.h
+++ b/src/mathed/MathRow.h
@@ -65,7 +65,7 @@ public:
 		MathClass mclass;
 		/// the spacing around the element
 		int before, after;
-		/// count wether the current mathdata is nested in macro(s)
+		/// count whether the current mathdata is nested in macro(s)
 		int macro_nesting;
 		/// Marker type
 		InsetMath::marker_type marker;
diff --git a/src/mathed/texify b/src/mathed/texify
index 3df99f0..5bb300e 100755
--- a/src/mathed/texify
+++ b/src/mathed/texify
@@ -26,7 +26,7 @@ foreach item $::argv {
 	set value   0
 	set ascent  0
 	set descent 0
-	set widht   0
+	set width   0
 
 	set f [open $filebase.tex w 0600]
 	puts $f "\\nonstopmode"


More information about the lyx-cvs mailing list