-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efa5a9a
commit c9b880c
Showing
32 changed files
with
1,049 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 42 additions & 21 deletions
63
components/locale_core/src/preferences/extensions/unicode/keywords/collation.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,50 @@ | ||
// This file is part of ICU4X. For terms of use, please see the file | ||
// This file is part of ICU4X. For terms of use), please see the file | ||
// called LICENSE at the top level of the ICU4X source tree | ||
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). | ||
|
||
use crate::preferences::extensions::unicode::enum_keyword; | ||
|
||
enum_keyword!( | ||
/// TODO | ||
/// A Unicode Collation Identifier defines a type of collation (sort order). | ||
/// | ||
/// The valid values are listed in [LDML](https://unicode.org/reports/tr35/#UnicodeCollationIdentifier). | ||
CollationType { | ||
"big5han" => Big5han, | ||
"compat" => Compat, | ||
"dict" => Dict, | ||
"direct" => Direct, | ||
"ducet" => Ducet, | ||
"emoji" => Emoji, | ||
"eor" => Eor, | ||
"gb2312" => Gb2312, | ||
"phonebk" => Phonebk, | ||
"phonetic" => Phonetic, | ||
"pinyin" => Pinyin, | ||
"reformed" => Reformed, | ||
"search" => Search, | ||
"searchjl" => Searchjl, | ||
"standard" => Standard, | ||
"stroke" => Stroke, | ||
"trad" => Trad, | ||
"unihan" => Unihan, | ||
"zhuyin" => Zhuyin, | ||
/// Pinyin ordering for Latin, big5 charset ordering for CJK characters (used in Chinese) | ||
("big5han" => Big5han), | ||
/// A previous version of the ordering, for compatibility | ||
("compat" => Compat), | ||
/// Dictionary style ordering (such as in Sinhala) | ||
("dict" => Dict), | ||
/// Binary code point order (used in Hindi) | ||
("direct" => Direct), | ||
/// The default Unicode collation element table order | ||
("ducet" => Ducet), | ||
/// Recommended ordering for emoji characters | ||
("emoji" => Emoji), | ||
/// European ordering rules | ||
("eor" => Eor), | ||
/// Pinyin ordering for Latin, gb2312han charset ordering for CJK characters (used in Chinese) | ||
("gb2312" => Gb2312), | ||
/// Phonebook style ordering (such as in German) | ||
("phonebk" => Phonebk), | ||
/// Phonetic ordering (sorting based on pronunciation) | ||
("phonetic" => Phonetic), | ||
/// Pinyin ordering for Latin and for CJK characters (used in Chinese) | ||
("pinyin" => Pinyin), | ||
/// Reformed ordering (such as in Swedish) | ||
("reformed" => Reformed), | ||
/// Special collation type for string search | ||
("search" => Search), | ||
/// Special collation type for Korean initial consonant search | ||
("searchjl" => Searchjl), | ||
/// Default ordering for each language | ||
("standard" => Standard), | ||
/// Pinyin ordering for Latin, stroke order for CJK characters (used in Chinese) | ||
("stroke" => Stroke), | ||
/// Traditional style ordering (such as in Spanish) | ||
("trad" => Trad), | ||
/// Pinyin ordering for Latin, Unihan radical-stroke ordering for CJK characters (used in Chinese) | ||
("unihan" => Unihan), | ||
/// Pinyin ordering for Latin, zhuyin order for Bopomofo and CJK characters (used in Chinese) | ||
("zhuyin" => Zhuyin), | ||
}, "co"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.