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/hr_HR.UTF-8.in | 27 ++++++++++++ localedata/locales/hr_HR | 106 ++++++++++++++++++++-------------------------- 2 files changed, 74 insertions(+), 59 deletions(-) (limited to 'localedata') diff --git a/localedata/hr_HR.UTF-8.in b/localedata/hr_HR.UTF-8.in index c33ee6a..72f04bd 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 1843642..a3b3a75 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.1