Hi,
I almost submitted abstract overflowing in characters, because we do not count
quotes in statistics.
Attached is the patch fixing it.
Just to make sure, isn't some of the types below to be counted as more than 1
character?
* e ``english'' (`inner quotation')
* s ''swedish'' ('inner quotation')
* g ,,german`` (,inner quotation`)
* p ,,polish'' (,inner quotation')
* c <<swiss>> (<inner quotation>)
* a >>danish<< (>inner quotation<)
* q "plain" ('inner quotation')
* b `british' (``inner quotation'')
* w >>swedishg>> ('inner quotation') ["g" = Guillemets]
* f <<french>> (``inner quotation'')
* i <<frenchin>> (<<inner quotation>>) ["in" = Imprimerie Nationale]
* r <<russian>> (,,inner quotation``)
* j [U+300C]cjk[U+300D] ([U+300E]inner quotation[U+300F]) [CORNER
BRACKETS]
* k [U+300A]cjkangle[U+300B] ([U+3008]inner quotation[U+3009]) [ANGLE
BRACKETS]
* h ,,hungarian'' (>>inner quotation<<)
* x dynamic style (inherits document settings)
Pavel
diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp
index 6fcc755d81..4c073da227 100644
--- a/src/insets/InsetQuotes.cpp
+++ b/src/insets/InsetQuotes.cpp
@@ -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
diff --git a/src/insets/InsetQuotes.h b/src/insets/InsetQuotes.h
index 5541af4a67..bebe9f1ec0 100644
--- a/src/insets/InsetQuotes.h
+++ b/src/insets/InsetQuotes.h
@@ -173,6 +173,8 @@ public:
/// Returns the current quote type
std::string getType() const;
+ ///
+ std::pair<int, int> isWords() const override;
private:
///
--
lyx-devel mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-devel