Count quotes in document statistics as well.

Currently any quote counts as a single character.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg219697.html
This commit is contained in:
Pavel Sanda 2023-05-09 20:48:13 +02:00
parent 16da5ef010
commit 63ff4f4431
2 changed files with 9 additions and 0 deletions

View File

@ -1021,4 +1021,11 @@ string InsetQuotes::contextMenuName() const
return "context-quote";
}
pair<int, int> InsetQuotes::isWords() const
{
//one character from the statistics perspective
return std::pair<int,int>(1, 0);
}
} // namespace lyx

View File

@ -173,6 +173,8 @@ public:
/// Returns the current quote type
std::string getType() const;
///
std::pair<int, int> isWords() const override;
private:
///