From: Mike FABIAN Date: Thu, 30 Nov 2017 11:13:02 +0000 (+0100) Subject: hr_HR locale: fix collation and expand collation test file X-Git-Tag: glibc-2.27~383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e56e937c9144e70a16793d2c5aa22d1bd0b2c18;p=thirdparty%2Fglibc.git hr_HR locale: fix collation and expand collation test file * localedata/locales/hr_HR (LC_COLLATE): Fix collation to make test case pass. * localedata/hr_HR.UTF-8.in: Add more test strings. --- diff --git a/ChangeLog b/ChangeLog index a3c2c750bbf..44f46d2dc6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-11-30 Mike FABIAN + + * localedata/locales/hr_HR (LC_COLLATE): Fix collation + to make test case pass. + * localedata/hr_HR.UTF-8.in: Add more test strings. + 2017-11-30 Mike FABIAN * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580] diff --git a/localedata/hr_HR.UTF-8.in b/localedata/hr_HR.UTF-8.in index c33ee6a614e..72f04bd7f07 100644 --- a/localedata/hr_HR.UTF-8.in +++ b/localedata/hr_HR.UTF-8.in @@ -6,7 +6,23 @@ cvrčić ćutjeti Dalekovidan disharmoničan +dza +ĎŽ +dž +dž +dŽ +Dž +Dž +DŽ +DŽ +dža +džepni +džepni +dŽepni +Džepni Džepni +DŽepni +DŽepni Džersej DŽezistički džip @@ -18,14 +34,25 @@ Edicija Lakovjeran limunčić lJekovito +ljenivac +ljenivac +Ljenivac Ljenivac +LJenivac +LJenivac Ljepljiv ljeskov ljetni LJutiti Mačić natočiti +njedra +njedra nJedra +Njedra +Njedra +NJedra +NJedra NJegovateljica Njemački njihalo diff --git a/localedata/locales/hr_HR b/localedata/locales/hr_HR index 184364288cf..a3b3a75387e 100644 --- a/localedata/locales/hr_HR +++ b/localedata/locales/hr_HR @@ -67,8 +67,16 @@ END LC_CTYPE LC_COLLATE copy "iso14651_t1" -% define collating elements which should be considered -% as if they are digraphs while collating +% CLDR collation rules for Croatian +% (see: https://unicode.org/cldr/trac/browser/trunk/common/collation/hr.xml): +% &C<č<<<Č<ć<<<Ć +% &D from "" collating-element from "" collating-element from "" - -% {}, {} and {} -% make č, ć, dž, đ, lj, nj, š and ž distinct letters collating-symbol collating-symbol collating-symbol @@ -103,13 +108,10 @@ collating-symbol collating-symbol collating-symbol -% order them as: -% a b c č ć d dž đ e f g h i j k l lj m n nj o p r s š t u v z ž - reorder-after - +reorder-after reorder-after @@ -121,58 +123,44 @@ reorder-after reorder-after -% c č ć -reorder-after - ;;;IGNORE - ;;;IGNORE -reorder-after - ;;;IGNORE - ;;;IGNORE - -% d, dž and đ -% give collating elements collating value of dž -reorder-after - "";"";"";IGNORE - "";"";"";IGNORE - ;;;IGNORE -reorder-after - "";"";"";IGNORE -reorder-after - "";"";"";IGNORE - ;;;IGNORE - -% give collating elements collating value of lj -reorder-after - "";"";"";IGNORE - "";"";"";IGNORE -reorder-after - "";"";"";IGNORE -reorder-after - "";"";"";IGNORE - -% give collating elements collating value of nj -reorder-after - "";"";"";IGNORE - "";"";"";IGNORE -reorder-after - "";"";"";IGNORE -reorder-after - "";"";"";IGNORE - -% s š -reorder-after - ;;;IGNORE -reorder-after - ;;;IGNORE - -% z ž -reorder-after - ;;;IGNORE -reorder-after - ;;;IGNORE + ;;;IGNORE % č + ;;;IGNORE % Č + ;;;IGNORE % ć + ;;;IGNORE % Ć + + "";"";"";IGNORE % dž + "";"";"";IGNORE % dž + "";"";"";IGNORE % dŽ + "";"";"";IGNORE % Dž + "";"";"";IGNORE % Dž + "";"";"";IGNORE % DŽ + "";"";"";IGNORE % DŽ + ;;;IGNORE % đ + ;;;IGNORE % Đ + + "";"";"";IGNORE % lj + "";"";"";IGNORE % lj + "";"";"";IGNORE % lJ + "";"";"";IGNORE % Lj + "";"";"";IGNORE % Lj + "";"";"";IGNORE % LJ + "";"";"";IGNORE % LJ + + "";"";"";IGNORE % nj + "";"";"";IGNORE % nj + "";"";"";IGNORE % nJ + "";"";"";IGNORE % Nj + "";"";"";IGNORE % Nj + "";"";"";IGNORE % NJ + "";"";"";IGNORE % NJ + + ;;;IGNORE % š + ;;;IGNORE % Š + + ;;;IGNORE % ž + ;;;IGNORE % Ž reorder-end - END LC_COLLATE LC_MESSAGES