From f1c01bab89b634ee798270ab3b7c89457d3da218 Mon Sep 17 00:00:00 2001 From: TiagoSantos Date: Mon, 10 Jul 2017 23:16:34 +0100 Subject: [PATCH] [pt] performance improvement attempt * see performance test result from 2017-07-07 for reference. * revert if no significant performance improvements are achieved. * this makes this rule's underlining and suggestion odd, but it may be worth the compromise --- .../org/languagetool/rules/pt/grammar.xml | 42 +++++++++++-------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/grammar.xml b/languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/grammar.xml index 5105a8003d42..83c0414fb6da 100644 --- a/languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/grammar.xml +++ b/languagetool-language-modules/pt/src/main/resources/org/languagetool/rules/pt/grammar.xml @@ -5800,32 +5800,38 @@ title="Easy editing stylesheet" ?> - [.] - [.] - [.] - [.] - [.] - - - [.] - [.] - [.] + . + . + . + . + . - [.][.][.][.] + + . + . + . + . + Pontuação duplicada A situação financeira era estável.... + + . + . + . + - [.] - [.] + . + . Pontuação duplicada . A situação financeira era estável.. + A situação financeira era estável... @@ -20600,13 +20606,13 @@ TODO Write better examples - \b(\p{L}+) ([!?:;,….]) + (\p{L}) ([!?:;,….]) Remova o espaço antes da pontuação. \1\2 - Como é que isto me escapou ! - Existem duas estratégias possíveis : aproveitar o que existe ou reinventar a roda. - Como é que isto me escapou ! - Existem duas estratégias possíveis: aproveitar o que existe ou reinventar a roda . + Como é que isto me escapou ! + Existem duas estratégias possíveis : aproveitar o que existe ou reinventar a roda. + Como é que isto me escapou ! + Existem duas estratégias possíveis: aproveitar o que existe ou reinventar a roda .