diff options
author | László Németh <nemeth@numbertext.org> | 2019-12-29 17:46:56 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-12-31 12:52:04 +0100 |
commit | 04ef45a6dd7692c6ee08769c4ac4a0e92a0b64b8 (patch) | |
tree | af00dd4286bda1c815f1b73c4625d0e5231489a4 /editeng | |
parent | 4636a07f283753a4ddac279d4ef38385219ec423 (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>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index b023c34ade72..f1a682b6d5fd 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -890,6 +890,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)) |