summaryrefslogtreecommitdiff
path: root/pt_BR/Lightproof.py
diff options
context:
space:
mode:
authorOlivier R <olivier.noreply@gmail.com>2014-08-22 15:55:06 +0200
committerLászló Németh <nemeth@numbertext.org>2014-08-22 15:55:06 +0200
commit080424980483bcc29a3556cf1a681c45cd5c50fc (patch)
treea65de1834c02338fde85668de5f3297604260fc5 /pt_BR/Lightproof.py
parent4e468c8b15cb93fd2b30c9645563a43bddc643b2 (diff)
Lightproof: restore paragraph based proofreading
Instead of the sentences suggested by the incomplete sentence boundary detection of LibreOffice (enabled in version 4), Lightproof works on full paragraph text again, allowing more precise analysis of the text. See http://nabble.documentfoundation.org/Grammar-checker-Undocumented-change-in-the-API-for-LO-4-td4030639.html Change-Id: Ifc967e5b3f27da5b0edeebdb73b8f0b97c938280
Diffstat (limited to 'pt_BR/Lightproof.py')
-rw-r--r--pt_BR/Lightproof.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pt_BR/Lightproof.py b/pt_BR/Lightproof.py
index 1090ca2..44f6934 100644
--- a/pt_BR/Lightproof.py
+++ b/pt_BR/Lightproof.py
@@ -77,6 +77,12 @@ class Lightproof( unohelper.Base, XProofreader, XServiceInfo, XServiceName, XSer
aRes.aProperties = ()
aRes.xProofreader = self
aRes.aErrors = ()
+ # PATCH FOR LO 4
+ # Fix for http://nabble.documentfoundation.org/Grammar-checker-Undocumented-change-in-the-API-for-LO-4-td4030639.html
+ if nStartOfSentencePos != 0:
+ return aRes
+ aRes.nStartOfNextSentencePosition = len(rText)
+ # END OF PATCH
if len(rProperties) > 0 and rProperties[0].Name == "Update":
try:
import lightproof_compile_pt_BR
pport LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-04-15 09:37:33 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-04-15 09:38:51 +0200
commit504a9575e7bebe29528c60686a6ad64f9ba81c8b (patch)
tree106af383074d7523244ea3fc3a4aac01933ce5fd /cppuhelper
parent11473832b5717cb3222ce72baee885bc9e8e2386 (diff)
xmloff: fix loplugin:simplifyconstruct warning
Change-Id: Iab32f67f911157c5d7c0db8f36ea638576cfd0bf