[Libreoffice-commits] .: i18npool/qa i18npool/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 7 04:22:27 PDT 2012


 i18npool/qa/cppunit/test_breakiterator.cxx |   21 ++++++++++++++++++++-
 i18npool/source/breakiterator/data/README  |   14 +-------------
 2 files changed, 21 insertions(+), 14 deletions(-)

New commits:
commit 9b69085c5da49aa64c531b27d078a3f4a353103c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 7 12:20:24 2012 +0100

    Related: #i80412# add regression test for Indic language cursoring
    
    Change-Id: Ia1cc6ade8d2122abf5469ec521b2883961121a04

diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx
index f8f4d71..c00b086 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 22136e7..a4dc9e8 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 at 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 at openoffice.org>
-Date:   Thu Oct 2 13:51:29 2008 +0000
-
-    #i80412#
-
 commit 9964a76ef58786bba47d409970512d7ded6c8889
 Author: Rüdiger Timm <rt at 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


More information about the Libreoffice-commits mailing list