From 1787948f9a80e7f39c0d67869ff56d22223df584 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Tue, 27 Jul 2021 19:19:00 +0200 Subject: Portuguese Brasil lightproof: fix "Flags not at the start of the expression" Change-Id: If1888a167f2efe6ee54e72e4adf6ee9ab851b590 Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/119569 Tested-by: Olivier Hallot Reviewed-by: Olivier Hallot --- pt_BR/pythonpath/lightproof_impl_pt_BR.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pt_BR/pythonpath/lightproof_impl_pt_BR.py b/pt_BR/pythonpath/lightproof_impl_pt_BR.py index d3a72a1..1b0d8fb 100644 --- a/pt_BR/pythonpath/lightproof_impl_pt_BR.py +++ b/pt_BR/pythonpath/lightproof_impl_pt_BR.py @@ -243,10 +243,10 @@ paralcap = re.compile(u"(?u)^[a-z].*[.?!] [A-Z].*[.?!][)\u201d]?$") # Tenta corrigir erros de identificacao da regra de capiatizacao # erroscap = re.compile("(?i)\\.([A-Z])") -erroscap = re.compile("((?i)\\.([A-Z\xc0\xc1\xc2\xc3\xc7\xc9\xca\xcd\xd3\xd4\xd5\xda])|\\.\\[|\\.\\(|\\.\\)|\\?\\)|\\!\\)|[a-z]\\))") -erroscapa = re.compile("((?i)[.?!]\\, ([a-z\xe1\xe2\xe3\xe7\xe9\xea\xf3\xf4\xf5\xfa]+))") -erroscapb = re.compile("((?i)[a-z]\\))") -erroscapc = re.compile("((?i)[.?!][\"\u2019\u201d])") +erroscap = re.compile("(?i)\\.([A-Z\xc0\xc1\xc2\xc3\xc7\xc9\xca\xcd\xd3\xd4\xd5\xda])|\\.\\[|\\.\\(|\\.\\)|\\?\\)|\\!\\)|[a-z]\\)") +erroscapa = re.compile("(?i)[.?!]\\, ([a-z\xe1\xe2\xe3\xe7\xe9\xea\xf3\xf4\xf5\xfa]+)") +erroscapb = re.compile("(?i)[a-z]\\)") +erroscapc = re.compile("(?i)[.?!][\"\u2019\u201d]") # Tenta corrigir erros de identificacao parentese de fechamento errosprnt = re.compile(u"(?u)^([a-z]|[ivxl]+)\\)") -- cgit