summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-12-29 12:34:34 +0100
committerLászló Németh <nemeth@numbertext.org>2019-12-29 16:36:06 +0100
commit8039c9eb27170a162830f0ecd2086010a7a5858f (patch)
treed0520fefab6d1dc271ad543115cf210641675545 /editeng/source
parentbde382a2568147c1a5eec0cb885856cd5aaae3ad (diff)
tdf#38394 AutoCorrect: fix ’« in French l’« word »
instead of using the bad ’" -> ’» autocorrection. Change-Id: I48adbb2e8ca8e786c7835ff186d4580e856cf3c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85945 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/misc/svxacorr.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index f6db80ba0a25..b023c34ade72 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1282,6 +1282,15 @@ void SvxAutoCorrect::DoAutoCorrect( SvxAutoCorrDoc& rDoc, const OUString& rTxt,
lcl_IsInAsciiArr( "([{", cPrev ) ||
( cEmDash == cPrev ) ||
( cEnDash == cPrev );
+ // tdf#38394 use opening quotation mark << in French l'<<word>>
+ if ( !bSingle && !bSttQuote && cPrev == cApostrophe &&
+ (nInsPos == 2 || (nInsPos > 2 && IsWordDelim( rTxt[ nInsPos-3 ] ))) )
+ {
+ const LanguageType eLang = GetDocLanguage( rDoc, nInsPos );
+ if ( primary(eLang) == primary(LANGUAGE_FRENCH) )
+ bSttQuote = true;
+ }
+ // tdf#108423 for capitalization of English i'm
b_iApostrophe = bSingle && ( cPrev == 'i' ) &&
(( nInsPos == 1 ) || IsWordDelim( rTxt[ nInsPos-2 ] ));
}