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/
This commit is contained in:
Jean-Marc Lasgouttes 2020-06-25 23:31:42 +02:00
parent 9fe1ed4d68
commit 3c4e567d44
11 changed files with 15 additions and 15 deletions

View 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

View 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);

View 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

View 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.

View 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;

View 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());

View 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

View 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;

View 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,

View 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;

View File

@ -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"