diff options
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index fc89820415a5..b0d163865289 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1287,6 +1287,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 ] )); } |