diff options
author | László Németh <nemeth@numbertext.org> | 2020-06-02 10:12:27 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-06-02 18:40:38 +0200 |
commit | 967d1ba1f2a3f551c23ba4d9902632a0dc581224 (patch) | |
tree | 31dc57fa7f89b93dc21aa054006ff946fee5213b /sw/qa | |
parent | da64ec8c8a91db6a6ec9657898f081d5ee67e739 (diff) |
tdf#132301 AutoCorrect: fix ’« in French qu’« word »
instead of using the bad ’" -> ’» autocorrection.
Also limit this for abbreviated single-letter form of
French words ce, de, je, la, le, ne, me, te, se and si.
See commit 8039c9eb27170a162830f0ecd2086010a7a5858f
(tdf#38394 AutoCorrect: fix ’« in French l’« word »).
Change-Id: I1761365d90ae3af3c9ab47a3a82bf0abbe1b32be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95345
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index 92c4201bce24..bb0d12aa7804 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -7186,6 +7186,12 @@ void SwUiWriterTest::testTdf38394() sal_uLong nIndex = pWrtShell->GetCursor()->GetNode().GetIndex(); OUString sReplaced(u"l\u2019« "); CPPUNIT_ASSERT_EQUAL(sReplaced, static_cast<SwTextNode*>(pDoc->GetNodes()[nIndex])->GetText()); + // tdf#132301 autocorrect of qu'« + pWrtShell->Insert(u" qu\u2019"); + pWrtShell->AutoCorrect(corr, cChar); + nIndex = pWrtShell->GetCursor()->GetNode().GetIndex(); + sReplaced += u" qu\u2019« "; + CPPUNIT_ASSERT_EQUAL(sReplaced, static_cast<SwTextNode*>(pDoc->GetNodes()[nIndex])->GetText()); } void SwUiWriterTest::testTdf59666() |