summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-12-29 17:46:56 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2019-12-31 15:07:26 +0100
commit6a37bc154b80e261e6d10d383de73da6ffa1e9d9 (patch)
tree16642194c2fb6dbb1b62682971afd5aa7bd6d66c /editeng
parenta17eca1559d2dc07b88eeb836f794f43ef7ca0ce (diff)
tdf#59666 AutoCorrect: don't capitalize single Greek letters
in automatic sentence capitalization (except in Greek texts), to keep the requested lower case scientific and mathematical symbols. Change-Id: I0c658bb69fb90e7159665939f85f1fd99477c730 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85955 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org> (cherry picked from commit 04ef45a6dd7692c6ee08769c4ac4a0e92a0b64b8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86042 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/svxacorr.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index b0d163865289..10f91239625a 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -895,6 +895,10 @@ void SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
lcl_IsInAsciiArr( ".-)>", *pDelim ) )
return;
+ // tdf#59666 don't capitalize single Greek letters (except in Greek texts)
+ if ( 1 == pDelim - pWordStt && 0x03B1 <= *pWordStt && *pWordStt <= 0x03C9 && eLang != LANGUAGE_GREEK )
+ return;
+
if( !bAtStart ) // Still no beginning of a paragraph?
{
if (NonFieldWordDelim(*pStr))