From 5e56e937c9144e70a16793d2c5aa22d1bd0b2c18 Mon Sep 17 00:00:00 2001 From: Mike FABIAN Date: Thu, 30 Nov 2017 12:13:02 +0100 Subject: 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. --- localedata/locales/hr_HR | 106 +++++++++++++++++++++-------------------------- 1 file changed, 47 insertions(+), 59 deletions(-) (limited to 'localedata/locales/hr_HR') diff --git a/localedata/locales/hr_HR b/localedata/locales/hr_HR index 184364288c..a3b3a75387 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 -- cgit v1.2.3