Index: gc_lang/fr/webext/content_scripts/panel_gc.css ================================================================== --- gc_lang/fr/webext/content_scripts/panel_gc.css +++ gc_lang/fr/webext/content_scripts/panel_gc.css @@ -208,11 +208,12 @@ /* ERRORS */ mark.grammalecte_error, -mark.grammalecte_spellerror { +mark.grammalecte_spellerror, +mark.grammalecte_maybe_spellerror { margin: 0; padding: 0; cursor: pointer; border-radius: 2px; background-color: hsl(240, 0%, 80%); /* default color */ @@ -225,20 +226,27 @@ text-shadow: unset; text-align: left; hyphens: none; } mark.grammalecte_error:hover, -mark.grammalecte_spellerror:hover { +mark.grammalecte_spellerror:hover, +mark.grammalecte_maybe_spellerror:hover { opacity: .9; box-shadow: 0px 0px 0px 3px hsla(0, 0%, 50%, 0.25); } mark.grammalecte_spellerror { background-color: hsl(0, 100%, 95%); color: hsl(0, 80%, 20%); border-bottom: solid 2px hsl(0, 100%, 50%); } +mark.grammalecte_maybe_spellerror { + background-color: hsla(0, 100%, 100%, 0); + color: hsl(0, 80%, 0%); + border-bottom: solid 2px hsl(0, 100%, 50%); +} + mark.grammalecte_error_corrected, mark.grammalecte_error_ignored { margin: 0; padding: 0; Index: gc_lang/fr/webext/content_scripts/panel_gc.js ================================================================== --- gc_lang/fr/webext/content_scripts/panel_gc.js +++ gc_lang/fr/webext/content_scripts/panel_gc.js @@ -369,11 +369,15 @@ xNodeErr.style.backgroundColor = `hsl(${sHue}, ${sSat}%, 85%)`; xNodeErr.style.borderBottom = `solid 2px hsl(${sHue}, ${sSat}%, ${sLum}%)`; } } else { - xNodeErr.className = "grammalecte_spellerror"; + if (sUnderlined.search(/^[A-ZÀ-ÖØ-ߌ][a-zà-öø-ÿff-st]/) !== -1) { + xNodeErr.className = "grammalecte_maybe_spellerror"; + } else { + xNodeErr.className = "grammalecte_spellerror"; + } } return xNodeErr; } _blockParagraph (xParagraph) {