diff options
-rw-r--r-- | en/Lightproof.py | 5 | ||||
-rw-r--r-- | hu_HU/Lightproof.py | 6 | ||||
-rw-r--r-- | pt_BR/Lightproof.py | 6 | ||||
-rw-r--r-- | ru_RU/Lightproof.py | 6 |
4 files changed, 23 insertions, 0 deletions
diff --git a/en/Lightproof.py b/en/Lightproof.py index e2974fd..e7cde2f 100644 --- a/en/Lightproof.py +++ b/en/Lightproof.py @@ -77,6 +77,11 @@ 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) if len(rProperties) > 0 and rProperties[0].Name == "Update": try: import lightproof_compile_en diff --git a/hu_HU/Lightproof.py b/hu_HU/Lightproof.py index 74af535..e5936b8 100644 --- a/hu_HU/Lightproof.py +++ b/hu_HU/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_hu_HU 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 diff --git a/ru_RU/Lightproof.py b/ru_RU/Lightproof.py index 229b704..4af25f8 100644 --- a/ru_RU/Lightproof.py +++ b/ru_RU/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_ru_RU |