summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18npool/qa/cppunit/test_breakiterator.cxx16
-rw-r--r--i18npool/source/breakiterator/data/README8
2 files changed, 17 insertions, 7 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx
index c00b086b8bcf..aa4e9438c1b0 100644
--- a/i18npool/qa/cppunit/test_breakiterator.cxx
+++ b/i18npool/qa/cppunit/test_breakiterator.cxx
@@ -573,6 +573,7 @@ void TestBreakIterator::testWordBoundaries()
//See https://bugs.freedesktop.org/show_bug.cgi?id=40292
//See https://issues.apache.org/ooo/show_bug.cgi?id=80412
//See https://issues.apache.org/ooo/show_bug.cgi?id=111152
+//See https://issues.apache.org/ooo/show_bug.cgi?id=50172
void TestBreakIterator::testGraphemeIteration()
{
lang::Locale aLocale;
@@ -640,6 +641,21 @@ void TestBreakIterator::testGraphemeIteration()
}
{
+ const sal_Unicode KA_VOWELSIGNU[] = { 0x0B95, 0x0BC1 };
+ rtl::OUString aTest(KA_VOWELSIGNU, SAL_N_ELEMENTS(KA_VOWELSIGNU));
+
+ sal_Int32 nDone=0;
+ sal_Int32 nPos = 0;
+
+ nPos = m_xBreak->nextCharacters(aTest, 0, aLocale,
+ i18n::CharacterIteratorMode::SKIPCELL, 1, nDone);
+ CPPUNIT_ASSERT_MESSAGE("Should skip full grapheme", nPos == SAL_N_ELEMENTS(KA_VOWELSIGNU));
+ nPos = m_xBreak->previousCharacters(aTest, SAL_N_ELEMENTS(KA_VOWELSIGNU), aLocale,
+ i18n::CharacterIteratorMode::SKIPCELL, 1, nDone);
+ CPPUNIT_ASSERT_MESSAGE("Should skip full grapheme", nPos == 0);
+ }
+
+ {
const sal_Unicode CA_VOWELSIGNI_TA_VIRAMA_TA_VOWELSIGNI_RA_VOWELSIGNAI[] =
{ 0x0B9A, 0x0BBF, 0x0BA4, 0x0BCD, 0x0BA4, 0x0BBF, 0x0BB0, 0x0BC8 };
rtl::OUString aTest(CA_VOWELSIGNI_TA_VIRAMA_TA_VOWELSIGNI_RA_VOWELSIGNAI,
diff --git a/i18npool/source/breakiterator/data/README b/i18npool/source/breakiterator/data/README
index a4dc9e826d2d..2b4e7cd6f20c 100644
--- a/i18npool/source/breakiterator/data/README
+++ b/i18npool/source/breakiterator/data/README
@@ -378,13 +378,6 @@ Date: Mon Oct 17 14:43:17 2005 +0000
INTEGRATION: CWS i18n20 (1.1.2); FILE ADDED
2005/09/22 23:47:49 khong 1.1.2.1: #i51661# add quotation mark as middle letter for Hebrew in word breakiterator rule.
-commit 268567aa88a991e055c41d9115bccce951f7e308
-Author: RĂ¼diger Timm <rt@openoffice.org>
-Date: Mon Oct 17 14:42:47 2005 +0000
-
- INTEGRATION: CWS i18n20 (1.1.2); FILE ADDED
- 2005/08/26 23:33:38 khong 1.1.2.1: #i50172# add cell breakiterator rule for Tamil
-
commit a428a8927006a10ccfe7182e6fe5a8b677281eca
Author: RĂ¼diger Timm <rt@openoffice.org>
Date: Mon Oct 17 14:42:30 2005 +0000
@@ -536,6 +529,7 @@ Date: Mon Mar 8 16:17:05 2004 +0000
done, regression tests added:
+#i50172# add cell breakiterator rule for Tamil
#i80412# indic cursoring
#i107843# em-dash/en-dash breakiterator fix for spell checking
#i103552# Japanese word for 'shutdown' added to ja.dic