summaryrefslogtreecommitdiff
path: root/i18npool/source/collator
diff options
context:
space:
mode:
authorAleksandr Andreev <aleksandr.andreev@gmail.com>2015-04-20 18:45:28 +0300
committerEike Rathke <erack@redhat.com>2015-04-29 13:04:36 +0000
commitc9af632056fedcf9327ba23aafbe4b0300b1abae (patch)
treee9c27f0f6d1251a9975289733ea8d80665faee89 /i18npool/source/collator
parent59adad74084e9281887e3f78a225794f37b784d7 (diff)
tdf#90802 add Church Slavic [cu-RU] locale
Change-Id: Id8322661f79f4d500fd59c19fc04b13e82c7126d Reviewed-on: https://gerrit.libreoffice.org/15540 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'i18npool/source/collator')
-rw-r--r--i18npool/source/collator/collator_unicode.cxx10
-rw-r--r--i18npool/source/collator/data/cu_charset.txt37
2 files changed, 47 insertions, 0 deletions
diff --git a/i18npool/source/collator/collator_unicode.cxx b/i18npool/source/collator/collator_unicode.cxx
index a2b110c157fe..9bf335508add 100644
--- a/i18npool/source/collator/collator_unicode.cxx
+++ b/i18npool/source/collator/collator_unicode.cxx
@@ -64,6 +64,7 @@ extern "C" {
// get_zh_pinyin for instance.
const sal_uInt8* get_collator_data_ca_charset();
+const sal_uInt8* get_collator_data_cu_charset();
const sal_uInt8* get_collator_data_dz_charset();
const sal_uInt8* get_collator_data_hu_charset();
const sal_uInt8* get_collator_data_ja_charset();
@@ -85,6 +86,7 @@ const sal_uInt8* get_collator_data_zh_stroke();
const sal_uInt8* get_collator_data_zh_zhuyin();
size_t get_collator_data_ca_charset_length();
+size_t get_collator_data_cu_charset_length();
size_t get_collator_data_dz_charset_length();
size_t get_collator_data_hu_charset_length();
size_t get_collator_data_ja_charset_length();
@@ -198,6 +200,14 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
funclen = get_collator_data_ca_charset_length;
}
#endif
+#if WITH_LOCALE_ALL || WITH_LOCALE_cu
+ } else if ( rLocale.language == "cu" ) {
+ if ( rAlgorithm == "charset" )
+ {
+ func = get_collator_data_cu_charset;
+ funclen = get_collator_data_cu_charset_length;
+ }
+#endif
#if WITH_LOCALE_ALL || WITH_LOCALE_dz
} else if ( rLocale.Language == "dz" || rLocale.Language == "bo" ) {
// 'bo' Tibetan uses the same collation rules as 'dz' Dzongkha
diff --git a/i18npool/source/collator/data/cu_charset.txt b/i18npool/source/collator/data/cu_charset.txt
new file mode 100644
index 000000000000..73c1b4217d71
--- /dev/null
+++ b/i18npool/source/collator/data/cu_charset.txt
@@ -0,0 +1,37 @@
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+#
+# Collation of Church Slavic letters
+#
+[caseLevel on]
+[caseFirst upper]
+[backwards 2]
+& [first primary ignorable] = \; = \: = \\ = \. = \- = \, = \* = – = — = \_ = ꙳ = ҂ = ⃝ = ҈ = ҉= ꙰= ꙱= ꙲ = ✠
+& [first secondary ignorable] = ҇ = ꙼ = ꙾ << ҅ << ҆ << ́ << ̀ << ̑ << ҃ << ̆ << ̈ = ̏ << ⷶ << ⷠ << ⷡ << ⷢ << ⷣ << ⷷ << ꙴ << ⷤ << ⷥ << ꙵ << ꙶ << ⷦ << ⷧ << ⷨ << ⷩ << ⷪ << ꙻ << ⷫ << ⷬ << ⷭ << ⷮ << ⷹ << ꙷ << ꚞ << ⷯ << ⷰ << ⷱ << ⷲ << ⷳ << ̾ = ꙸ = ⸯ << ꙹ << ꙿ = ꙽ = ꙺ << ⷺ << ⷻ << ⷾ << ⷼ << ⷽ << ⷴ
+& ⷭⷮ = ⷵ
+& д = ᲁ
+& е <<< Е <<< є <<< Є
+& ж <<< Ж < ѕ <<< Ѕ < з = ꙁ <<< З = Ꙁ
+& и <<< И < і <<< І
+& и = й / ̆
+& И = Й / ̆
+& і = ї / ̈
+& І = Ї / ̈
+& н <<< Н < ѻ <<< Ѻ <<< о = ᲂ <<< О <<< ѡ <<< Ѡ <<< ꙍ <<< Ꙍ
+& Ꙍ҆̑ = Ѽ
+& ꙍ҆̑ = ѽ
+& Ѡт = Ѿ
+& ѡт = ѿ
+& т <<< Т < ѹ = оу = ᲂу <<< Ѹ = Оу = ОУ <<< ꙋ <<< Ꙋ <<< у <<< У
+& э <<< Э < ѣ <<< Ѣ
+& ю <<< Ю < ѫ <<< Ѫ < я <<< Я < ꙗ <<< Ꙗ <<< ѧ <<< Ѧ < ѯ <<< Ѯ < ѱ <<< Ѱ < ѳ <<< Ѳ < ѵ <<< Ѵ
+& ѵ = ѷ / ̏
+& Ѵ = Ѷ / ̏
+& 🕀 < 🕁 < 🕂 < 🕃 < 🕄
+