[LyX/master] Run codespell on src/insets
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Thu Jun 25 21:23:20 UTC 2020
commit 5d4e6dfb68cfa045e4929fc0b49a89a8f6686ab0
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Thu Jun 25 23:46:16 2020 +0200
Run codespell on src/insets
Command was
codespell -w -i 3 -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus,pres,pass-thru src/insets/
---
src/insets/Inset.h | 10 +++++-----
src/insets/InsetBibitem.cpp | 4 ++--
src/insets/InsetBibtex.cpp | 6 +++---
src/insets/InsetBox.cpp | 4 ++--
src/insets/InsetCitation.cpp | 2 +-
src/insets/InsetERT.h | 2 +-
src/insets/InsetFlex.h | 2 +-
src/insets/InsetFloat.cpp | 2 +-
src/insets/InsetFloat.h | 2 +-
src/insets/InsetFootlike.h | 2 +-
src/insets/InsetGraphics.h | 2 +-
src/insets/InsetGraphicsParams.cpp | 2 +-
src/insets/InsetIPA.h | 2 +-
src/insets/InsetInclude.cpp | 2 +-
src/insets/InsetIndex.h | 2 +-
src/insets/InsetInfo.h | 2 +-
src/insets/InsetLine.cpp | 4 ++--
src/insets/InsetListingsParams.cpp | 2 +-
src/insets/InsetListingsParams.h | 2 +-
src/insets/InsetNote.h | 2 +-
src/insets/InsetPhantom.h | 2 +-
src/insets/InsetPreview.h | 2 +-
src/insets/InsetQuotes.cpp | 2 +-
src/insets/InsetTOC.cpp | 2 +-
src/insets/InsetTabular.cpp | 6 +++---
src/insets/InsetTabular.h | 4 ++--
src/insets/InsetText.h | 2 +-
27 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/src/insets/Inset.h b/src/insets/Inset.h
index f70b3c7..c2a4bec 100644
--- a/src/insets/Inset.h
+++ b/src/insets/Inset.h
@@ -130,7 +130,7 @@ public:
/// initialize view for this inset.
/**
* This is typically used after this inset is created interactively.
- * Intented purpose is to sanitize internal state with regard to current
+ * Intended purpose is to sanitize internal state with regard to current
* Buffer.
**/
virtual void initView() {}
@@ -511,7 +511,7 @@ public:
virtual LyXAlignment contentAlignment() const { return LYX_ALIGN_NONE; }
/// should we break lines after this inset?
virtual bool isLineSeparator() const { return false; }
- /// should paragraph indendation be omitted in any case?
+ /// should paragraph indentation be omitted in any case?
virtual bool neverIndent() const { return false; }
/// dumps content to lyxerr
virtual void dump() const;
@@ -534,7 +534,7 @@ public:
virtual Text * getText(int /*num*/) const { return 0; }
/** Adds a LaTeX snippet to the Preview Loader for transformation
- * into a bitmap image. Does not start the laoding process.
+ * into a bitmap image. Does not start the loading process.
*
* Most insets have no interest in this capability, so the method
* defaults to empty.
@@ -605,7 +605,7 @@ public:
* are reset during editing operations.
* For copy/paste operations the language is never changed, since
* the language of a given text never changes if the text is
- * formatted differently, while other font attribues like size may
+ * formatted differently, while other font attributes like size may
* need to change if the text is copied from one environment to
* another one.
* If this method returns false no font attribute is reset.
@@ -650,7 +650,7 @@ protected:
/** The real dispatcher.
* Gets normally called from Cursor::dispatch(). Cursor::dispatch()
* assumes the common case of 'LFUN handled, need update'.
- * This has to be overriden by calling Cursor::undispatched() or
+ * This has to be overridden by calling Cursor::undispatched() or
* Cursor::noScreenUpdate() if appropriate.
* If you need to call the dispatch method of some inset directly
* you may have to explicitly request an update at that place. Don't
diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp
index 85c6a59..a3cdeac 100644
--- a/src/insets/InsetBibitem.cpp
+++ b/src/insets/InsetBibitem.cpp
@@ -232,7 +232,7 @@ docstring bibitemWidest(Buffer const & buffer, OutputParams const & runparams)
InsetBibitem const * bitem = nullptr;
- // FIXME: this font is used unitialized for now but should be set to
+ // FIXME: this font is used uninitialized for now but should be set to
// a proportional font. Here is what Georg Baum has to say about it:
/*
bibitemWidest() is supposed to find the bibitem with the widest label in the
@@ -347,7 +347,7 @@ docstring InsetBibitem::xhtml(XMLStream & xs, OutputParams const &) const
{
// FIXME XHTML
// XHTML 1.1 doesn't have the "name" attribute for <a>, so we have to use
- // the "id" atttribute to get the document to validate. Probably, we will
+ // the "id" attribute to get the document to validate. Probably, we will
// need to use "name" anyway, eventually, because some browsers do not
// handle jumping to ids. If we don't do that, though, we can just put the
// id into the span tag.
diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp
index 3bfc593..2e41a4f 100644
--- a/src/insets/InsetBibtex.cpp
+++ b/src/insets/InsetBibtex.cpp
@@ -454,7 +454,7 @@ namespace {
keepCase
};
- /// remove whitespace characters, read characer sequence
+ /// remove whitespace characters, read character sequence
/// not containing whitespace characters or characters in
/// delimChars, and remove further whitespace characters.
///
@@ -511,7 +511,7 @@ namespace {
/// read subsequent bibtex values that are delimited with a #-character.
/// Concatenate all parts and replace names with the associated string in
/// the variable strings.
- /// @return true if reading was successfull (all single parts were delimited
+ /// @return true if reading was successful (all single parts were delimited
/// correctly)
bool readValue(docstring & val, ifdocstream & ifs, const VarMap & strings) {
@@ -1062,7 +1062,7 @@ docstring InsetBibtex::xhtml(XMLStream & xs, OutputParams const &) const
// FIXME Right now, we are calling BibInfo::getInfo on the key,
// which will give us all the cross-referenced info. But for every
- // entry, so there's a lot of repitition. This should be fixed.
+ // entry, so there's a lot of repetition. This should be fixed.
xs << xml::StartTag("span", "class='bibtexinfo'")
<< XMLStream::ESCAPE_AND
<< bibinfo.getInfo(entry.key(), buffer(), ci)
diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp
index 0b2ab3e..3e8612d 100644
--- a/src/insets/InsetBox.cpp
+++ b/src/insets/InsetBox.cpp
@@ -189,7 +189,7 @@ void InsetBox::metrics(MetricsInfo & mi, Dimension & dim) const
if (hasFixedWidth())
mi.base.textwidth = mi.base.inPixels(params_.width);
InsetCollapsible::metrics(mi, dim);
- // retore textwidth.
+ // restore textwidth.
mi.base.textwidth = textwidth_backup;
}
@@ -281,7 +281,7 @@ void InsetBox::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.recordUndoInset(this);
if (change_type) {
params_.type = cmd.getArg(1);
- // set a makebox if there is no inner box but Frameless was exectued
+ // set a makebox if there is no inner box but Frameless was executed
// otherwise the result would be a non existent box (no inner AND outer box)
// (this was LyX bug 8712)
if (params_.type == "Frameless" && !params_.inner_box) {
diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp
index 0335b9c..744368d 100644
--- a/src/insets/InsetCitation.cpp
+++ b/src/insets/InsetCitation.cpp
@@ -588,7 +588,7 @@ void InsetCitation::forOutliner(docstring & os, size_t const, bool const) const
// engine, e.g. \cite[]{} for the basic engine.
void InsetCitation::latex(otexstream & os, OutputParams const & runparams) const
{
- // When this is a child compiled on its own, we use the childs
+ // When this is a child compiled on its own, we use the children
// own bibinfo, else the master's
BiblioInfo const & bi = runparams.is_child
? buffer().masterBibInfo() : buffer().bibInfo();
diff --git a/src/insets/InsetERT.h b/src/insets/InsetERT.h
index 6ef4376..1ee17b3 100644
--- a/src/insets/InsetERT.h
+++ b/src/insets/InsetERT.h
@@ -57,7 +57,7 @@ private:
docstring xhtml(XMLStream &, OutputParams const &) const;
///
void validate(LaTeXFeatures &) const {}
- /// should paragraph indendation be omitted in any case?
+ /// should paragraph indentation be omitted in any case?
bool neverIndent() const { return true; }
///
void doDispatch(Cursor & cur, FuncRequest & cmd);
diff --git a/src/insets/InsetFlex.h b/src/insets/InsetFlex.h
index f4d091a..da29da5 100644
--- a/src/insets/InsetFlex.h
+++ b/src/insets/InsetFlex.h
@@ -34,7 +34,7 @@ public:
InsetLayout::InsetDecoration decoration() const;
///
void write(std::ostream &) const;
- /// should paragraph indendation be omitted in any case?
+ /// should paragraph indentation be omitted in any case?
bool neverIndent() const { return true; }
///
bool hasSettings() const { return false; }
diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp
index a37b954..c1dc985 100644
--- a/src/insets/InsetFloat.cpp
+++ b/src/insets/InsetFloat.cpp
@@ -53,7 +53,7 @@ namespace lyx {
// classes we can support similar functionality in other formats
// (read DocBook).
// By using float.sty we will have the same handling for all floats, both
-// for those already in existance (table and figure) and all user created
+// for those already in existence (table and figure) and all user created
// ones¹. So suddenly we give the users the possibility of creating new
// kinds of floats on the fly. (and with a uniform look)
//
diff --git a/src/insets/InsetFloat.h b/src/insets/InsetFloat.h
index f58c89c..b43147e 100644
--- a/src/insets/InsetFloat.h
+++ b/src/insets/InsetFloat.h
@@ -104,7 +104,7 @@ private:
docstring xhtml(XMLStream &, OutputParams const &) const;
///
bool insetAllowed(InsetCode) const;
- /** returns false if, when outputing LaTeX, font changes should
+ /** returns false if, when outputting LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
bool inheritFont() const { return false; }
diff --git a/src/insets/InsetFootlike.h b/src/insets/InsetFootlike.h
index ce6f504..c7805a6 100644
--- a/src/insets/InsetFootlike.h
+++ b/src/insets/InsetFootlike.h
@@ -35,7 +35,7 @@ private:
void write(std::ostream & os) const;
///
bool insetAllowed(InsetCode) const;
- /** returns false if, when outputing LaTeX, font changes should
+ /** returns false if, when outputting LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
bool inheritFont() const { return false; }
diff --git a/src/insets/InsetGraphics.h b/src/insets/InsetGraphics.h
index 46a746b..8c07c0f 100644
--- a/src/insets/InsetGraphics.h
+++ b/src/insets/InsetGraphics.h
@@ -130,7 +130,7 @@ public:
std::string createLatexOptions(bool const ps) const;
/// Create length values for docbook export.
docstring toDocbookLength(Length const & len) const;
- /// Create the atributes for docbook export.
+ /// Create the attributes for docbook export.
docstring createDocBookAttributes() const;
/// Convert the file if needed, and return the location of the file.
/// This version is for use with LaTeX-style output.
diff --git a/src/insets/InsetGraphicsParams.cpp b/src/insets/InsetGraphicsParams.cpp
index c401065..9f55246 100644
--- a/src/insets/InsetGraphicsParams.cpp
+++ b/src/insets/InsetGraphicsParams.cpp
@@ -64,7 +64,7 @@ void InsetGraphicsParams::init()
{
filename.erase();
lyxscale = 100; // lyx scaling in percentage
- display = true; // may be overriden by display mode in preferences
+ display = true; // may be overridden by display mode in preferences
scale = string("100"); // output scaling in percentage
width = Length();
height = Length();
diff --git a/src/insets/InsetIPA.h b/src/insets/InsetIPA.h
index 003c1ba..35f2ea4 100644
--- a/src/insets/InsetIPA.h
+++ b/src/insets/InsetIPA.h
@@ -88,7 +88,7 @@ public:
protected:
/// Retrieves the preview state. Returns true if preview
- /// is enabled and the preview image is availabled.
+ /// is enabled and the preview image is available.
bool previewState(BufferView * bv) const;
/// Recreates the preview if preview is enabled.
void reloadPreview(DocIterator const & pos) const;
diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp
index 87d2e51..6eba05a 100644
--- a/src/insets/InsetInclude.cpp
+++ b/src/insets/InsetInclude.cpp
@@ -649,7 +649,7 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const
break;
}
case LISTINGS: {
- // Here, listings and minted have sligthly different behaviors.
+ // Here, listings and minted have slightly different behaviors.
// Using listings, it is always possible to have a caption,
// even for non-floats. Using minted, only floats can have a
// caption. So, with minted we use the following strategy.
diff --git a/src/insets/InsetIndex.h b/src/insets/InsetIndex.h
index a0ed8fd..01831d3 100644
--- a/src/insets/InsetIndex.h
+++ b/src/insets/InsetIndex.h
@@ -68,7 +68,7 @@ private:
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
///
void doDispatch(Cursor & cur, FuncRequest & cmd);
- /// should paragraph indendation be omitted in any case?
+ /// should paragraph indentation be omitted in any case?
bool neverIndent() const { return true; }
///
void addToToc(DocIterator const & di, bool output_active,
diff --git a/src/insets/InsetInfo.h b/src/insets/InsetInfo.h
index bed5744..c9fb838 100644
--- a/src/insets/InsetInfo.h
+++ b/src/insets/InsetInfo.h
@@ -207,7 +207,7 @@ public:
std::string contextMenu(BufferView const &, int, int) const;
///
std::string contextMenuName() const;
- /// should paragraph indendation be omitted in any case?
+ /// should paragraph indentation be omitted in any case?
bool neverIndent() const { return true; }
///
InsetInfoParams params() const { return params_; }
diff --git a/src/insets/InsetLine.cpp b/src/insets/InsetLine.cpp
index d76ba16..1688af3 100644
--- a/src/insets/InsetLine.cpp
+++ b/src/insets/InsetLine.cpp
@@ -143,8 +143,8 @@ void InsetLine::draw(PainterInfo & pi, int x, int y) const
Color Line_color = pi.base.font.realColor();
// the offset is a vertical one
- // the horizontal dimension must be corrected with the heigth because
- // of left and right border of the painted line for big heigth.
+ // the horizontal dimension must be corrected with the height because
+ // of left and right border of the painted line for big height.
pi.pain.line(x + height_/2 + 1,
y - offset_ - height_/2,
x + dim.wid - height_/2 - 2,
diff --git a/src/insets/InsetListingsParams.cpp b/src/insets/InsetListingsParams.cpp
index 06c05cb..2e2f4c6 100644
--- a/src/insets/InsetListingsParams.cpp
+++ b/src/insets/InsetListingsParams.cpp
@@ -55,7 +55,7 @@ public:
string const & i, docstring const & h)
: value_(v), onoff_(o), type_(t), info_(i), hint_(h)
{}
- /// Validate a paramater.
+ /// Validate a parameter.
/// \retval an empty string if \c par is valid.
/// \retval otherwise an explanation WRT to \c par invalidity.
docstring validate(string const & par) const;
diff --git a/src/insets/InsetListingsParams.h b/src/insets/InsetListingsParams.h
index ddcca62..90c5adb 100644
--- a/src/insets/InsetListingsParams.h
+++ b/src/insets/InsetListingsParams.h
@@ -97,7 +97,7 @@ private:
/// Do we have a param with the given \c key?
bool hasParam(std::string const & key) const;
- /// return the value for the given \c key, if avaible, else empty string
+ /// return the value for the given \c key, if available, else empty string
std::string getValue(std::string const & key) const;
/// key-value pairs of the parameters
diff --git a/src/insets/InsetNote.h b/src/insets/InsetNote.h
index c38d5d4..3c04a10 100644
--- a/src/insets/InsetNote.h
+++ b/src/insets/InsetNote.h
@@ -61,7 +61,7 @@ private:
InsetCode lyxCode() const { return NOTE_CODE; }
///
docstring layoutName() const;
- /** returns false if, when outputing LaTeX, font changes should
+ /** returns false if, when outputting LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
bool inheritFont() const { return params_.type == InsetNoteParams::Note; }
diff --git a/src/insets/InsetPhantom.h b/src/insets/InsetPhantom.h
index 9d36337..44ab078 100644
--- a/src/insets/InsetPhantom.h
+++ b/src/insets/InsetPhantom.h
@@ -80,7 +80,7 @@ private:
size_t max_length = INT_MAX) const;
///
int docbook(odocstream &, OutputParams const &) const;
- /// Makes no sense fof XHTML.
+ /// Makes no sense for XHTML.
docstring xhtml(XMLStream &, OutputParams const &) const;
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
diff --git a/src/insets/InsetPreview.h b/src/insets/InsetPreview.h
index 6a9d290..123d947 100644
--- a/src/insets/InsetPreview.h
+++ b/src/insets/InsetPreview.h
@@ -77,7 +77,7 @@ public:
protected:
/// Retrieves the preview state. Returns true if preview
- /// is enabled and the preview image is availabled.
+ /// is enabled and the preview image is available.
bool previewState(BufferView * bv) const;
/// Recreates the preview if preview is enabled.
void reloadPreview(DocIterator const & pos) const;
diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp
index aa2e41b..5818cd7 100644
--- a/src/insets/InsetQuotes.cpp
+++ b/src/insets/InsetQuotes.cpp
@@ -430,7 +430,7 @@ docstring InsetQuotesParams::getLaTeXQuote(char_type c, string const & op,
}
// The following are fakes
// This is just to get something symbolic
- // in encodings where this chars would not be used ayway
+ // in encodings where this chars would not be used anyway
case 0x300c: // LEFT CORNER BRACKET
res = "\\ensuremath{\\lceil}";
break;
diff --git a/src/insets/InsetTOC.cpp b/src/insets/InsetTOC.cpp
index a3739d7..c700e57 100644
--- a/src/insets/InsetTOC.cpp
+++ b/src/insets/InsetTOC.cpp
@@ -169,7 +169,7 @@ void InsetTOC::makeTOCWithDepth(XMLStream & xs,
continue;
// First, we need to manage increases and decreases of depth
- // If there's no depth to deal with, we artifically set it to 1.
+ // If there's no depth to deal with, we artificially set it to 1.
int const depth = it->depth();
// Ignore stuff above the tocdepth
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index a2d49ef..68fff9b 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -570,7 +570,7 @@ string const write_attribute(string const & name, Tabular::idx_type const & i)
template <>
string const write_attribute(string const & name, Length const & value)
{
- // we write only the value if we really have one same reson as above.
+ // we write only the value if we really have one same reason as above.
return value.zero() ? string() : write_attribute(name, value.asString());
}
@@ -1013,7 +1013,7 @@ void Tabular::updateIndexes()
continue;
}
cell_info[row][column].inset->toggleMultiCol(false);
- // columnofcell needs to be called before setting width and aligment
+ // columnofcell needs to be called before setting width and alignment
// multirow cells inherit the width from the column width
if (!isPartOfMultiRow(row, column)) {
columnofcell[i] = column;
@@ -1174,7 +1174,7 @@ bool Tabular::updateColumnWidths(MetricsInfo & mi)
int restwidth = -1;
if (!tab_width.zero()) {
restwidth = mi.base.inPixels(tab_width);
- // Substract the fixed widths from the table width
+ // Subtract the fixed widths from the table width
for (auto const w : max_pwidth)
restwidth -= w.second;
}
diff --git a/src/insets/InsetTabular.h b/src/insets/InsetTabular.h
index 2ee0614..abb5e40 100644
--- a/src/insets/InsetTabular.h
+++ b/src/insets/InsetTabular.h
@@ -116,7 +116,7 @@ private:
// FIXME: Here the thoughts from the comment above also apply.
///
LyXAlignment contentAlign;
- /// should paragraph indendation be omitted in any case?
+ /// should paragraph indentation be omitted in any case?
bool neverIndent() const { return true; }
///
LyXAlignment contentAlignment() const { return contentAlign; }
@@ -963,7 +963,7 @@ public:
bool canTrackChanges() const { return true; }
///
bool canPaintChange(BufferView const &) const { return true; }
- /** returns false if, when outputing LaTeX, font changes should
+ /** returns false if, when outputting LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
bool inheritFont() const { return false; }
diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h
index 0ad33a1..d50d555 100644
--- a/src/insets/InsetText.h
+++ b/src/insets/InsetText.h
@@ -206,7 +206,7 @@ public:
///
void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
/// returns the text to be used as tooltip
- /// \param prefix: a string that will preced the tooltip,
+ /// \param prefix: a string that will precede the tooltip,
/// e.g., "Index: ".
/// \param len: length of the resulting string
/// NOTE This routine is kind of slow. It's fine to use it within the
More information about the lyx-cvs
mailing list