Comment: | [tb] option to disable checking after signature |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | tb | new_feature |
Files: | files | file ages | folders |
SHA3-256: |
e6caebb339188e1da953b210ea9e56eb |
User & Date: | olr on 2017-05-12 16:46:33 |
Other Links: | manifest | tags |
2017-05-13
| ||
07:35 | [fr] processeur de texte: dans ces cas-là check-in: 6838ca1ac2 user: olr tags: trunk, fr | |
2017-05-12
| ||
16:46 | [tb] option to disable checking after signature check-in: e6caebb339 user: olr tags: trunk, tb, new_feature | |
13:02 | [fr] avoir été + ppas check-in: b15bb95578 user: olr tags: trunk, fr | |
Modified gc_lang/fr/tb/content/editor.js from [982eed5aea] to [71421bf6bc].
︙ | ︙ | |||
21 22 23 24 25 26 27 | // recursive function try { 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 !== "") { | > | > > > > > | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | // recursive function try { 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 !== "") { //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); } } } } catch (e) { |
︙ | ︙ |
Modified gc_lang/fr/tb/content/options.xul from [4daa0434f3] to [4546c76788].
1 2 3 4 5 6 7 8 9 | <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <!DOCTYPE prefwindow SYSTEM "chrome://grammarchecker/locale/options.dtd"> <prefwindow id="grammarcheckerPreferences" title="&prefwindow.title;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | | > > | < < < > | < < < | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <!DOCTYPE prefwindow SYSTEM "chrome://grammarchecker/locale/options.dtd"> <prefwindow id="grammarcheckerPreferences" title="&prefwindow.title;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="pane1" label="&pane1.title;"> <dialogheader id="grammalecte-title" title="&pane1.title;" description="" /> <preferences> <preference id="check_signature" name="extensions.grammarchecker.bCheckSignature" type="bool" /> <!--<preference id="gc_options" name="extensions.grammarchecker.sGCOptions" type="string" /> <preference id="tf_options" name="extensions.grammarchecker.sTFOptions" type="string" /> <preference id="mothertongue" name="extensions.grammarchecker.mothertongue" type="string"/>--> </preferences> <checkbox label="&check_signature.label;" accesskey="&check_signature.accesskey;" preference="check_signature"/> <!--<label accesskey="&gc_options.accesskey;" control="texturlpref1">&gc_options.label;</label><textbox id="texturlpref1" preference="gc_options"/> <label accesskey="&tf_options.accesskey;" control="texturlpref2">&tf_options.label;</label><textbox id="texturlpref2" preference="tf_options"/> <label accesskey="&mothertongue.accesskey;" control="textmothertongue">&mothertongue.label;</label><textbox id="textmothertongue" preference="mothertongue"/>--> <!--<description>&panel.description;</description>--> </prefpane> </prefwindow> |
Modified gc_lang/fr/tb/content/overlay.js from [e9c7e6f275] to [7e9dfcab6d].
︙ | ︙ | |||
488 489 490 491 492 493 494 495 496 497 498 499 500 501 | ).catch( function (aCaught) { echo('Error', aCaught); } ); }, onOpenSpellOptions: function (e) { this.openDialog("chrome://grammarchecker/content/spell_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"); }, onAbout: function (e) { | > > > | 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 | ).catch( function (aCaught) { echo('Error', aCaught); } ); }, 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"); }, onAbout: function (e) { |
︙ | ︙ |
Modified gc_lang/fr/tb/content/overlay.xul from [839d7e1171] to [f4f8642995].
︙ | ︙ | |||
42 43 44 45 46 47 48 49 50 51 52 53 54 55 | <menupopup id="gl-toolbar-popup"> <menuitem id="gl-item-conj" class="menuitem-iconic" label="&grammalectemenu.textformatter;" oncommand="oTextFormatter.onOpenPanel(event);"/> <menuitem id="gl-item-conj" class="menuitem-iconic" label="&grammalectemenu.conjugueur;" oncommand="oGrammarChecker.onOpenConjugueur(event);"/> <menuseparator/> <menuitem id="gl-item-analyze" class="menuitem-iconic" label="&grammalectemenu.start;" oncommand="oGrammarChecker.onParseText(event);"/> <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.gc_options;" onclick="oGrammarChecker.onOpenGCOptions(event);"/> <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.spell_options;" onclick="oGrammarChecker.onOpenSpellOptions(event);"/> <menuseparator/> <menuitem id="gl-item-about" class="menuitem-iconic" label="&grammalectemenu.about;" oncommand="oGrammarChecker.onAbout(event);"/> </menupopup> </toolbarbutton> </toolbarpalette> | > | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | <menupopup id="gl-toolbar-popup"> <menuitem id="gl-item-conj" class="menuitem-iconic" label="&grammalectemenu.textformatter;" oncommand="oTextFormatter.onOpenPanel(event);"/> <menuitem id="gl-item-conj" class="menuitem-iconic" label="&grammalectemenu.conjugueur;" oncommand="oGrammarChecker.onOpenConjugueur(event);"/> <menuseparator/> <menuitem id="gl-item-analyze" class="menuitem-iconic" label="&grammalectemenu.start;" oncommand="oGrammarChecker.onParseText(event);"/> <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.gc_options;" onclick="oGrammarChecker.onOpenGCOptions(event);"/> <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.spell_options;" onclick="oGrammarChecker.onOpenSpellOptions(event);"/> <menuitem id="gl-item-options" class="menuitem-iconic" label="&grammalectemenu.other_options;" onclick="oGrammarChecker.onOpenOptions(event);"/> <menuseparator/> <menuitem id="gl-item-about" class="menuitem-iconic" label="&grammalectemenu.about;" oncommand="oGrammarChecker.onAbout(event);"/> </menupopup> </toolbarbutton> </toolbarpalette> |
︙ | ︙ |
Modified gc_lang/fr/tb/defaults/preferences/grammarchecker.js from [cf9e139e0c] to [be777f5bf3].
1 2 3 4 5 6 7 8 9 10 | pref("extensions.grammarchecker.urlpref1", "http://localhost:8081"); pref("extensions.grammarchecker.urlpref2", "https://languagetool.org:8081/"); pref("extensions.grammarchecker.langpref", "en"); pref("extensions.grammarchecker.mothertongue", ""); pref("extensions.grammarchecker.sGCOptions", ""); pref("extensions.grammarchecker.sTFOptions", ""); pref("extensions.grammarchecker.bDictModern", false); pref("extensions.grammarchecker.bDictClassic", true); pref("extensions.grammarchecker.bDictReform", false); pref("extensions.grammarchecker.bDictClassicReform", false); | > | 1 2 3 4 5 6 7 8 9 10 11 | pref("extensions.grammarchecker.urlpref1", "http://localhost:8081"); pref("extensions.grammarchecker.urlpref2", "https://languagetool.org:8081/"); pref("extensions.grammarchecker.langpref", "en"); pref("extensions.grammarchecker.mothertongue", ""); pref("extensions.grammarchecker.sGCOptions", ""); 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); |
Modified gc_lang/fr/tb/install.rdf from [95227f9159] to [c98ee16b92].
1 2 3 4 5 6 7 8 9 10 11 | <?xml version="1.0" encoding="UTF-8"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <em:id>${tb_identifier}</em:id> <em:name>${tb_name}</em:name> <em:type>2</em:type> <em:version>${version}</em:version> <em:creator>${author}</em:creator> <em:description>${description}</em:description> <em:homepageURL>${link}</em:homepageURL> | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <?xml version="1.0" encoding="UTF-8"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <em:id>${tb_identifier}</em:id> <em:name>${tb_name}</em:name> <em:type>2</em:type> <em:version>${version}</em:version> <em:creator>${author}</em:creator> <em:description>${description}</em:description> <em:homepageURL>${link}</em:homepageURL> <em:optionsURL>chrome://grammarchecker/content/options.xul</em:optionsURL> <em:unpack>true</em:unpack> <em:targetApplication> <Description> <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id> <!-- thunderbird --> <em:minVersion>45.8.0</em:minVersion> <em:maxVersion>55.*</em:maxVersion> |
︙ | ︙ |
Modified gc_lang/fr/tb/locale/en/options.dtd from [b6958607cd] to [071253db94].
1 | <!ENTITY prefwindow.title "Grammalecte · Options"> | | | < < < < < < | | | 1 2 3 4 5 6 7 | <!ENTITY prefwindow.title "Grammalecte · Options"> <!ENTITY pane1.title "Other options"> <!ENTITY pane1.description "Options are available in the menu Grammalecte in composing windows."> <!ENTITY mothertongue.label "Mother tongue:"> <!ENTITY mothertongue.accesskey "M"> <!ENTITY check_signature.label "Check signature text (in text mode)"> <!ENTITY check_signature.accesskey "C"> |
Modified gc_lang/fr/tb/locale/en/overlay.dtd from [eb2ccc3642] to [4ffe30eb77].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!ENTITY grammarchecker.button.label "Grammar"> <!ENTITY grammarchecker.accesskey "G"> <!ENTITY grammarchecker.tooltip "Grammar checking"> <!ENTITY grammalectemenu.textformatter "Text formatter…"> <!ENTITY grammalectemenu.conjugueur "Conjugation tool…"> <!ENTITY grammalectemenu.start "Proofread the text…"> <!ENTITY grammalectemenu.spell_options "Spelling options…"> <!ENTITY grammalectemenu.gc_options "Grammar options…"> <!ENTITY grammalectemenu.about "About Grammalecte…"> <!ENTITY detected_mistakes "Detected mistakes"> <!ENTITY textformatter "Text Formatter"> <!ENTITY automated_replacements "Automated replacements"> <!ENTITY tf.button.default "Default"> | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!ENTITY grammarchecker.button.label "Grammar"> <!ENTITY grammarchecker.accesskey "G"> <!ENTITY grammarchecker.tooltip "Grammar checking"> <!ENTITY grammalectemenu.textformatter "Text formatter…"> <!ENTITY grammalectemenu.conjugueur "Conjugation tool…"> <!ENTITY grammalectemenu.start "Proofread the text…"> <!ENTITY grammalectemenu.spell_options "Spelling options…"> <!ENTITY grammalectemenu.gc_options "Grammar options…"> <!ENTITY grammalectemenu.other_options "Other options…"> <!ENTITY grammalectemenu.about "About Grammalecte…"> <!ENTITY detected_mistakes "Detected mistakes"> <!ENTITY textformatter "Text Formatter"> <!ENTITY automated_replacements "Automated replacements"> <!ENTITY tf.button.default "Default"> |
︙ | ︙ |
Modified gc_lang/fr/tb/locale/fr/options.dtd from [e61e5be36a] to [a50c0f39f8].
1 | <!ENTITY prefwindow.title "Grammalecte · Options"> | | | < < < < < < | | | 1 2 3 4 5 6 7 | <!ENTITY prefwindow.title "Grammalecte · Options"> <!ENTITY pane1.title "Autres options"> <!ENTITY pane1.description "Les options sont disponibles dans le menu Grammalecte des fenêtres de rédaction."> <!ENTITY mothertongue.label "Langue maternelle:"> <!ENTITY mothertongue.accesskey "M"> <!ENTITY check_signature.label "Vérifier le texte de la signature (en mode texte)"> <!ENTITY check_signature.accesskey "V"> |
Modified gc_lang/fr/tb/locale/fr/overlay.dtd from [803c279517] to [7124c1cfff].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!ENTITY grammarchecker.button.label "Grammaire"> <!ENTITY grammarchecker.accesskey "G"> <!ENTITY grammarchecker.tooltip "Correction grammaticale"> <!ENTITY grammalectemenu.textformatter "Formateur de texte…"> <!ENTITY grammalectemenu.conjugueur "Conjugueur…"> <!ENTITY grammalectemenu.start "Analyser le texte…"> <!ENTITY grammalectemenu.spell_options "Options orthographiques…"> <!ENTITY grammalectemenu.gc_options "Options grammaticales…"> <!ENTITY grammalectemenu.about "À propos de Grammalecte…"> <!ENTITY detected_mistakes "Erreurs détectées"> <!ENTITY textformatter "Formateur de texte"> <!ENTITY automated_replacements "Remplacements automatisés"> <!ENTITY tf.button.default "Par défaut"> | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!ENTITY grammarchecker.button.label "Grammaire"> <!ENTITY grammarchecker.accesskey "G"> <!ENTITY grammarchecker.tooltip "Correction grammaticale"> <!ENTITY grammalectemenu.textformatter "Formateur de texte…"> <!ENTITY grammalectemenu.conjugueur "Conjugueur…"> <!ENTITY grammalectemenu.start "Analyser le texte…"> <!ENTITY grammalectemenu.spell_options "Options orthographiques…"> <!ENTITY grammalectemenu.gc_options "Options grammaticales…"> <!ENTITY grammalectemenu.other_options "Autres options…"> <!ENTITY grammalectemenu.about "À propos de Grammalecte…"> <!ENTITY detected_mistakes "Erreurs détectées"> <!ENTITY textformatter "Formateur de texte"> <!ENTITY automated_replacements "Remplacements automatisés"> <!ENTITY tf.button.default "Par défaut"> |
︙ | ︙ |