]> git.lyx.org Git - lyx.git/commitdiff
Run codespell on src/mathed
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 25 Jun 2020 21:31:42 +0000 (23:31 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 25 Jun 2020 21:31:42 +0000 (23:31 +0200)
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
src/mathed/InsetMathGrid.h
src/mathed/InsetMathMacro.cpp
src/mathed/InsetMathMacroTemplate.h
src/mathed/InsetMathNest.cpp
src/mathed/MathData.cpp
src/mathed/MathExtern.cpp
src/mathed/MathParser.cpp
src/mathed/MathParser_flags.h
src/mathed/MathRow.h
src/mathed/texify

index b94eaf1fe8961abb39873e5f1b5de6e46474a37d..dc1e4c42f657543a01c7fd28de85eb4ad05162d2 100644 (file)
@@ -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
index 89c8e7f07911852590f83851a22e0574bc13eb8e..1c8efd1814fe3272e5af0410fb493a740349c694 100644 (file)
@@ -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);
index b536701d144d72034ae0cdaf59d973a496c5d2d0..72224f43752a3863486b8d4d1d56b8122fed9f44 100644 (file)
@@ -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
index 7bdb6a58747fd4b5b3047c8e08d90e58db72439f..bdba22143f7f6e0fa9b33e5cca85c6f68d434b62 100644 (file)
@@ -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.
index 44091f03200496a812da37f2bb694698aa8fca27..a94ce3351e2660ab56d61192c5f223a20a0566ac 100644 (file)
@@ -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;
index a2b044cac0d712592e11b2caef472344e7a32fbb..42aa3cbb9b15b6b4c6940cd9e6f175c1b6833538 100644 (file)
@@ -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());
index 46c544847a23c8fdf5bfc805422cd9315b6ab010..311b32389533edb494223d0c3ef8a01f3737b8ba 100644 (file)
@@ -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
index 00f7e99004fb25bf9c469190d27112c16c17567c..56ca6dbe2b8389fff6572c894c12a745b653d410 100644 (file)
@@ -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;
index fa9501abe3a0c65d5ba3cc2ef527a65619dbb3ed..ae516d11f9b0245f0fe55b4aaac43d377637955c 100644 (file)
@@ -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,
index e009b90d567979385a082a0caddda7367402bd98..6d1a410372b9582b7abeba5683d0d2253b45eedc 100644 (file)
@@ -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;
index 3df99f029102ea6557901c4c8d7db15d42e5d87c..5bb300e3955cea78b9075c82008da0f16c7b4c38 100755 (executable)
@@ -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"