Index: gc_lang/fr/tb/content/editor.js
==================================================================
--- gc_lang/fr/tb/content/editor.js
+++ gc_lang/fr/tb/content/editor.js
@@ -23,11 +23,17 @@
for (let xNode of xRootNode.childNodes) {
//echo("tag: " + xNode.tagName);
if (xNode.className !== "moz-cite-prefix" && xNode.tagName !== "BLOCKQUOTE"
&& (xNode.nodeType == Node.TEXT_NODE || (xNode.nodeType == Node.ELEMENT_NODE && !xNode.textContent.startsWith(">")))
&& xNode.textContent !== "") {
- if (xNode.tagName === undefined || this.lParsableNodes.includes(xNode.tagName)) {
+ //echo("<"+xNode.tagName+">["+xNode.textContent+"]");
+ if (xNode.tagName === undefined) {
+ if (!prefs.getBoolPref("bCheckSignature") && xNode.textContent.startsWith("-- ")) {
+ break;
+ }
+ yield xNode;
+ } else if (this.lParsableNodes.includes(xNode.tagName)) {
yield xNode;
} else if (this.lRootNodes.includes(xNode.tagName)) {
yield* this._getParsableNodes(xNode);
}
}
Index: gc_lang/fr/tb/content/options.xul
==================================================================
--- gc_lang/fr/tb/content/options.xul
+++ gc_lang/fr/tb/content/options.xul
@@ -5,23 +5,20 @@
-
+
+
-
+
+
-
+
+
- &panel.description;
+
Index: gc_lang/fr/tb/content/overlay.js
==================================================================
--- gc_lang/fr/tb/content/overlay.js
+++ gc_lang/fr/tb/content/overlay.js
@@ -490,10 +490,13 @@
);
},
onOpenSpellOptions: function (e) {
this.openDialog("chrome://grammarchecker/content/spell_options.xul", "", "chrome, dialog, modal, resizable=no");
},
+ onOpenOptions: function (e) {
+ this.openDialog("chrome://grammarchecker/content/options.xul", "", "chrome, dialog, modal, resizable=no");
+ },
onOpenTextFormatter: function (e) {
oTextFormatter.openPanel();
},
onOpenConjugueur: function (e) {
this.openDialog("chrome://grammarchecker/content/conjugueur.xul", "", "chrome, resizable=no");
Index: gc_lang/fr/tb/content/overlay.xul
==================================================================
--- gc_lang/fr/tb/content/overlay.xul
+++ gc_lang/fr/tb/content/overlay.xul
@@ -44,10 +44,11 @@
+
Index: gc_lang/fr/tb/defaults/preferences/grammarchecker.js
==================================================================
--- gc_lang/fr/tb/defaults/preferences/grammarchecker.js
+++ gc_lang/fr/tb/defaults/preferences/grammarchecker.js
@@ -6,5 +6,6 @@
pref("extensions.grammarchecker.sTFOptions", "");
pref("extensions.grammarchecker.bDictModern", false);
pref("extensions.grammarchecker.bDictClassic", true);
pref("extensions.grammarchecker.bDictReform", false);
pref("extensions.grammarchecker.bDictClassicReform", false);
+pref("extensions.grammarchecker.bCheckSignature", true);
Index: gc_lang/fr/tb/install.rdf
==================================================================
--- gc_lang/fr/tb/install.rdf
+++ gc_lang/fr/tb/install.rdf
@@ -7,11 +7,11 @@
2
${version}
${author}
${description}
${link}
-
+ chrome://grammarchecker/content/options.xul
true
{3550f703-e582-4d05-9a08-453d09bdfdc6}
Index: gc_lang/fr/tb/locale/en/options.dtd
==================================================================
--- gc_lang/fr/tb/locale/en/options.dtd
+++ gc_lang/fr/tb/locale/en/options.dtd
@@ -1,13 +1,7 @@
-
-
-
-
-
-
-
-
+
+
-
-
+
+
Index: gc_lang/fr/tb/locale/en/overlay.dtd
==================================================================
--- gc_lang/fr/tb/locale/en/overlay.dtd
+++ gc_lang/fr/tb/locale/en/overlay.dtd
@@ -5,10 +5,11 @@
+
Index: gc_lang/fr/tb/locale/fr/options.dtd
==================================================================
--- gc_lang/fr/tb/locale/fr/options.dtd
+++ gc_lang/fr/tb/locale/fr/options.dtd
@@ -1,13 +1,7 @@
-
-
-
-
-
-
-
-
+
+
-
-
+
+
Index: gc_lang/fr/tb/locale/fr/overlay.dtd
==================================================================
--- gc_lang/fr/tb/locale/fr/overlay.dtd
+++ gc_lang/fr/tb/locale/fr/overlay.dtd
@@ -5,10 +5,11 @@
+