summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-07 12:20:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-07 12:21:15 +0100
commit9b69085c5da49aa64c531b27d078a3f4a353103c (patch)
tree758f8296b7119d70ad7fbdc4419107cc5e493a4d /i18npool
parent5e19849479ee25e1ed1c7965588ce5497831614b (diff)
Related: #i80412# add regression test for Indic language cursoring
Change-Id: Ia1cc6ade8d2122abf5469ec521b2883961121a04
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/qa/cppunit/test_breakiterator.cxx21
-rw-r--r--i18npool/source/breakiterator/data/README14
2 files changed, 21 insertions, 14 deletions
diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx
index f8f4d7157693..c00b086b8bcf 100644
--- a/i18npool/qa/cppunit/test_breakiterator.cxx
+++ b/i18npool/qa/cppunit/test_breakiterator.cxx
@@ -570,8 +570,9 @@ void TestBreakIterator::testWordBoundaries()
}
}
-//See http://qa.openoffice.org/issues/show_bug.cgi?id=111152
//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
void TestBreakIterator::testGraphemeIteration()
{
lang::Locale aLocale;
@@ -681,6 +682,24 @@ void TestBreakIterator::testGraphemeIteration()
CPPUNIT_ASSERT_MESSAGE("Should be considered 1 grapheme", nGraphemeCount == 1);
}
+
+ aLocale.Language = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("hi"));
+ aLocale.Country = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IN"));
+
+ {
+ const sal_Unicode SHA_VOWELSIGNII[] = { 0x936, 0x940 };
+ rtl::OUString aTest(SHA_VOWELSIGNII, SAL_N_ELEMENTS(SHA_VOWELSIGNII));
+
+ 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(SHA_VOWELSIGNII));
+ nPos = m_xBreak->previousCharacters(aTest, SAL_N_ELEMENTS(SHA_VOWELSIGNII), aLocale,
+ i18n::CharacterIteratorMode::SKIPCELL, 1, nDone);
+ CPPUNIT_ASSERT_MESSAGE("Should skip full grapheme", nPos == 0);
+ }
}
//A test to ensure that certain ranges and codepoints that are categorized as
diff --git a/i18npool/source/breakiterator/data/README b/i18npool/source/breakiterator/data/README
index 22136e7ba822..a4dc9e826d2d 100644
--- a/i18npool/source/breakiterator/data/README
+++ b/i18npool/source/breakiterator/data/README
@@ -23,19 +23,6 @@ Date: Thu Aug 6 18:13:57 2009 +0000
CWS-TOOLING: integrate CWS tl73
2009-07-31 15:29:33 +0200 tl r274535 : #i64400# dash/hyphen should not break words
-commit 4e1fd2fa161708049f1c3b6039659d0bf4f4539e
-Author: Jens-Heiner Rechtien <hr@openoffice.org>
-Date: Tue Jan 6 12:54:16 2009 +0000
-
- 2008-12-03 16:14:17 +0100 erack r264797 : #i93694# update script+language -> unicode digit mapping; patch from <hdu>
- 2008-11-25 02:01:18 +0100 erack r264270 : #i83349# apply remaining parts of the patch, now that we use ICU 4.0; contributed by <kstribley>
-
-commit 16b796fcce6430448535e3692f624cb469380442
-Author: Release Engineers <releng@openoffice.org>
-Date: Thu Oct 2 13:51:29 2008 +0000
-
- #i80412#
-
commit 9964a76ef58786bba47d409970512d7ded6c8889
Author: Rüdiger Timm <rt@openoffice.org>
Date: Wed Jul 2 07:53:05 2008 +0000
@@ -549,6 +536,7 @@ Date: Mon Mar 8 16:17:05 2004 +0000
done, regression tests added:
+#i80412# indic cursoring
#i107843# em-dash/en-dash breakiterator fix for spell checking
#i103552# Japanese word for 'shutdown' added to ja.dic
#i113785# ligatures for spell checking will no longer break words