diff options
author | Andriy Rysin <arysin@gmail.com> | 2015-05-26 23:51:18 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2015-05-26 23:51:18 +0530 |
commit | 6afb9c0175006c8060928537842364f83df6fc15 (patch) | |
tree | 5cd877f173fb513adc0b60a9a4b1002e72c8696d /localedata | |
parent | f09b8615418a02357eb8b1fcba88313aebcb53bf (diff) | |
download | glibc-6afb9c0175006c8060928537842364f83df6fc15.tar.gz glibc-6afb9c0175006c8060928537842364f83df6fc15.tar.xz glibc-6afb9c0175006c8060928537842364f83df6fc15.zip |
Fix sorting order for Ukrainian locale (BZ 17293)
In the introduction for the official orthography rules for Ukrainian language (http://spelling.ulif.org.ua/peredmova.htm) there's a note that only apostrophe does not affect order of the words when sorting. As could be seen from the official alphabet the soft sign (U+044C/U+042C) has its hard position and thus affects the order and also letters "е" and "є" (CYR-IE: U+0435/U+0415 and UKR-IE: U+0454/U+0404) have their own positions and should have separate place when sorting. This also corresponds to official Unicode collation chart for these letters: http://unicode.org/charts/collation/chart_Cyrillic.html
Diffstat (limited to 'localedata')
-rw-r--r-- | localedata/Makefile | 4 | ||||
-rw-r--r-- | localedata/locales/uk_UA | 66 | ||||
-rw-r--r-- | localedata/uk_UA.in | 56 |
3 files changed, 62 insertions, 64 deletions
diff --git a/localedata/Makefile b/localedata/Makefile index 305c87f9d3..ebf6ac99d9 100644 --- a/localedata/Makefile +++ b/localedata/Makefile @@ -37,7 +37,7 @@ test-srcs := collate-test xfrm-test tst-fmon tst-rpmatch tst-trans \ tst-ctype tst-langinfo tst-langinfo-static tst-numeric test-input := de_DE.ISO-8859-1 en_US.ISO-8859-1 da_DK.ISO-8859-1 \ hr_HR.ISO-8859-2 sv_SE.ISO-8859-1 tr_TR.UTF-8 fr_FR.UTF-8 \ - si_LK.UTF-8 + si_LK.UTF-8 uk_UA.UTF-8 test-input-data = $(addsuffix .in, $(basename $(test-input))) test-output := $(foreach s, .out .xout, \ $(addsuffix $s, $(basename $(test-input)))) @@ -106,7 +106,7 @@ LOCALES := de_DE.ISO-8859-1 de_DE.UTF-8 en_US.ANSI_X3.4-1968 \ hr_HR.ISO-8859-2 sv_SE.ISO-8859-1 ja_JP.SJIS fr_FR.ISO-8859-1 \ nb_NO.ISO-8859-1 nn_NO.ISO-8859-1 tr_TR.UTF-8 cs_CZ.UTF-8 \ zh_TW.EUC-TW fa_IR.UTF-8 fr_FR.UTF-8 ja_JP.UTF-8 si_LK.UTF-8 \ - tr_TR.ISO-8859-9 en_GB.UTF-8 + tr_TR.ISO-8859-9 en_GB.UTF-8 uk_UA.UTF-8 include ../gen-locales.mk endif diff --git a/localedata/locales/uk_UA b/localedata/locales/uk_UA index d9194b82c2..511f004883 100644 --- a/localedata/locales/uk_UA +++ b/localedata/locales/uk_UA @@ -340,70 +340,14 @@ copy "<U0069><U0073><U006F><U0031><U0034><U0036><U0035><U0031><U005F><U0074><U00 % Ukrainian ghe is missing in iso14651_t1 collating-symbol <UKR-GHE> -% Soft sign and apostrophe must be ignored during sorting because they are -% just signs, not real letters. +% Apostrophe must be ignored during sorting because it's just a sign, not a +% real letter. % ( "<U006E><U0060>"=="<U006E>", "<U0027><U0079><U0061>"=="<U0079><U0061>", etc. ) % % Apostrophe already ignored by iso14651_t1. % -% Soft sign '<U044C>' may follow only this set of nine characters [<U0432><U0434><U0437><U043B><U043D><U0440><U0441><U0442><U0446>]. -% It only softens pronunciation of these characters so it's should not impact -% sorting. - - -collating-symbol <V+SS> -collating-element <V-SS> from "<U0412><U042C>" -collating-element <V-ss> from "<U0412><U044C>" -collating-element <v-SS> from "<U0432><U042C>" -collating-element <v-ss> from "<U0432><U044C>" - -collating-symbol <D+SS> -collating-element <D-SS> from "<U0414><U042C>" -collating-element <D-ss> from "<U0414><U044C>" -collating-element <d-SS> from "<U0434><U042C>" -collating-element <d-ss> from "<U0434><U044C>" - -collating-symbol <Z+SS> -collating-element <Z-SS> from "<U0417><U042C>" -collating-element <Z-ss> from "<U0417><U044C>" -collating-element <z-SS> from "<U0437><U042C>" -collating-element <z-ss> from "<U0437><U044C>" - -collating-symbol <L+SS> -collating-element <L-SS> from "<U041B><U042C>" -collating-element <L-ss> from "<U041B><U044C>" -collating-element <l-SS> from "<U043B><U042C>" -collating-element <l-ss> from "<U043B><U044C>" - -collating-symbol <N+SS> -collating-element <N-SS> from "<U041D><U042C>" -collating-element <N-ss> from "<U041D><U044C>" -collating-element <n-SS> from "<U043D><U042C>" -collating-element <n-ss> from "<U043D><U044C>" - -collating-symbol <R+SS> -collating-element <R-SS> from "<U0420><U042C>" -collating-element <R-ss> from "<U0420><U044C>" -collating-element <r-SS> from "<U0440><U042C>" -collating-element <r-ss> from "<U0440><U044C>" - -collating-symbol <S+SS> -collating-element <S-SS> from "<U0421><U042C>" -collating-element <S-ss> from "<U0421><U044C>" -collating-element <s-SS> from "<U0441><U042C>" -collating-element <s-ss> from "<U0441><U044C>" - -collating-symbol <T+SS> -collating-element <T-SS> from "<U0422><U042C>" -collating-element <T-ss> from "<U0422><U044C>" -collating-element <t-SS> from "<U0442><U042C>" -collating-element <t-ss> from "<U0442><U044C>" - -collating-symbol <TSE+SS> -collating-element <TS-SS> from "<U0426><U042C>" -collating-element <TS-ss> from "<U0426><U044C>" -collating-element <ts-SS> from "<U0446><U042C>" -collating-element <ts-ss> from "<U0446><U044C>" +% In the official alphabet the soft sign is a letter and has a hard position in +% the order. collating-symbol <CAP-MIN> @@ -489,11 +433,9 @@ reorder-after <U0434> <U0455> "<U003C><U0043><U0059><U0052><U002D><U0044><U0045><U003E><U003C><U0043><U0059><U0052><U002D><U005A><U0045><U003E>";"<U003C><U004C><U0049><U0047><U003E><U003C><U004C><U0049><U0047><U003E>";"<U003C><U004D><U0049><U004E><U003E><U003C><U004D><U0049><U004E><U003E>";IGNORE % CYR-DZE reorder-after <U0435> -<U0454> <CYR-IE>;<UKR-IE>;<MIN>;IGNORE <U0451> <CYR-IE>;<CYR-IO>;<MIN>;IGNORE <U044D> <CYR-IE>;<CYR-E>;<MIN>;IGNORE reorder-after <U0415> -<U0404> <CYR-IE>;<UKR-IE>;<CAP>;IGNORE <U0401> <CYR-IE>;<CYR-IO>;<CAP>;IGNORE <U042D> <CYR-IE>;<CYR-E>;<CAP>;IGNORE diff --git a/localedata/uk_UA.in b/localedata/uk_UA.in new file mode 100644 index 0000000000..ff4d284d61 --- /dev/null +++ b/localedata/uk_UA.in @@ -0,0 +1,56 @@ +01010 +Абажур +абажур +абажур-10 +брама +вермішель +грати +Граття +граття +ґрати +ебонітовий +експорт +експосол +екс-посол +експоцентр +експрацівник +екс-працівник +еластичність +електрика +ельбор +елюент +епатаж +євгеніка +Європа +єдність +Жмих +жмих +зоря +и +і +ї +й +Карпати +криниця +лебідь +місяцевий +місяць +наразі +обапіл +об'їзд +об’їзд +обʼїзд +образ +опір +право +сонце +тарган +упродовж +фантастика +центр +чухатися +ш +щ +ь +ю +я |