From ea1898dded26316e2e73adfb409224e864ffaa8b Mon Sep 17 00:00:00 2001 From: Egmont Koblinger Date: Wed, 22 Mar 2017 21:27:30 -0400 Subject: localedata: hu_HU: fix multiple sorting bugs (bug 18934) Fix the incorrect sorting order of a digraph and its geminated variant, regression introduced by a faulty fix to bug 13547 in commit b008d4c85619a753e441d7f473ba8af0db400bd6. Fix two inconsistencies in sorting unusual capitalization of digraphs (bug #18587). Enable DIACRIT_FORWARD to work around bug #17750. Sort foreign accents after the Hungarian ones. Add extensive unittests containing all the examples from The Rules of Hungarian Orthography and many more, including explanatory comments. --- localedata/locales/hu_HU | 286 +++++++++++++++++++++++------------------------ 1 file changed, 143 insertions(+), 143 deletions(-) (limited to 'localedata/locales') diff --git a/localedata/locales/hu_HU b/localedata/locales/hu_HU index 898d293b18..31c59ea194 100644 --- a/localedata/locales/hu_HU +++ b/localedata/locales/hu_HU @@ -22,7 +22,7 @@ escape_char / % - made all days abbreviations same lenght by appending spaces % Email: srtxg@chanae.alphanet.ch % -% Further changes by Egmont Koblinger, 2002/Jan/06, 2012/Jan/03, 2015/Sep/03 +% Further changes by Egmont Koblinger during 2002-2017: % - fixed tons of remaining bugs in alphabetical order % - turned month names and similar stuff to lowercase % - other small bugfixes @@ -64,6 +64,7 @@ category "i18n:2012";LC_MEASUREMENT END LC_IDENTIFICATION LC_COLLATE +define DIACRIT_FORWARD copy "iso14651_t1" %% a b c cs d dz dzs e f g gy h i j k l ly m n ny o o: p q @@ -77,15 +78,18 @@ copy "iso14651_t1" %% dzs+dzs becomes ddzs, and so on. %% However, c+cs is also spelled as ccs, you need to speak %% the language to tell which one is the case. -%% Tokenize ccs as , and sort the tokens as -%% a b c c_or_cs cs d... This effectively assumes cs+cs -%% which is more frequent than c+cs, but guarantees that the -%% strings ccs and cscs don't collate as equal. +%% Tokenize ccs as since this is much more frequent +%% than , but apply SINGLE-OR-COMPOUND and COMPOUND +%% to the tokens so that the strings ccs and cscs don't collate +%% as equal. +%% The same goes for all other compound consonants. collating-symbol collating-symbol -collating-symbol +collating-symbol +collating-symbol + collating-symbol collating-element from "" collating-element from "" @@ -100,7 +104,6 @@ collating-element from "" collating-element from "" collating-element from "" -collating-symbol collating-symbol collating-element from "" collating-element from "" @@ -115,7 +118,6 @@ collating-element from "" collating-element from "" collating-element from "" -collating-symbol collating-symbol collating-element from "" collating-element from "" @@ -142,7 +144,6 @@ collating-element from "" collating-element from "" collating-element from "" -collating-symbol collating-symbol collating-element from "" collating-element from "" @@ -157,7 +158,6 @@ collating-element from "" collating-element from "" collating-element from "" -collating-symbol collating-symbol collating-element from "" collating-element from "" @@ -172,7 +172,6 @@ collating-element from "" collating-element from "" collating-element from "" -collating-symbol collating-symbol collating-element from "" collating-element from "" @@ -187,7 +186,6 @@ collating-element from "" collating-element from "" collating-element from "" -collating-symbol collating-symbol collating-element from "" collating-element from "" @@ -202,7 +200,6 @@ collating-element from "" collating-element from "" collating-element from "" -collating-symbol collating-symbol collating-element from "" collating-element from "" @@ -217,7 +214,6 @@ collating-element from "" collating-element from "" collating-element from "" -collating-symbol collating-symbol collating-element from "" collating-element from "" @@ -232,8 +228,10 @@ collating-element from "" collating-element from "" collating-element from "" +collating-symbol collating-symbol collating-symbol +collating-symbol collating-symbol collating-symbol collating-symbol @@ -244,6 +242,7 @@ collating-symbol collating-symbol reorder-after + @@ -252,42 +251,38 @@ reorder-after reorder-after + reorder-after - reorder-after - - reorder-after - reorder-after - reorder-after - reorder-after reorder-after - reorder-after - reorder-after reorder-after - +reorder-after + + + reorder-after ;;;IGNORE ;;;IGNORE @@ -300,152 +295,157 @@ reorder-after ;;;IGNORE ;;;IGNORE +reorder-after + + + + reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-after - ;;;IGNORE - ;;;IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE - "";"";"";IGNORE + ;;;IGNORE + ;;;IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE + "";"";"";IGNORE reorder-end -- cgit v1.2.1