-
Notifications
You must be signed in to change notification settings - Fork 217
Discuss supported options in CollationType docs #6778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments or fill out our survey to provide feedback. |
components/locale_core/src/preferences/extensions/unicode/keywords/collation.rs
Outdated
Show resolved
Hide resolved
/// | ||
/// # Supported Values | ||
/// | ||
/// Not all collation orderings are always supported by ICU4X: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Not all collation orderings are always supported by ICU4X: | |
/// Not all collation orderings are always supported: |
CollationType { | ||
/// A previous version of the ordering, for compatibility | ||
("compat" => Compat), | ||
/// Dictionary style ordering (such as in Sinhala) | ||
("dict" => Dict), | ||
/// The default Unicode collation element table order | ||
/// | ||
/// 🛈 `icu::collator` does not support the `ducet` ordering. See [`CollationType`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛈 is tofu for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, too, on Apple platforms. The character seems appropriate for this purpose, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure we can find an equivalent character that is more widely supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM provided a change to the characterization of searchjl.
CollationType { | ||
/// A previous version of the ordering, for compatibility | ||
("compat" => Compat), | ||
/// Dictionary style ordering (such as in Sinhala) | ||
("dict" => Dict), | ||
/// The default Unicode collation element table order | ||
/// | ||
/// 🛈 `icu::collator` does not support the `ducet` ordering. See [`CollationType`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, too, on Apple platforms. The character seems appropriate for this purpose, though.
("search" => Search), | ||
/// Special collation type for Korean initial consonant search | ||
/// | ||
/// 🛈 `icu::collator` does not include search collation rules by default. See [`CollationType`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, even if built by datagen, the code doesn't support the data shape for this one. See #1941.
Please change this one to say something along the lines of "ICU4X does not support Korean search collations."
It is not clear from
icu_collator
that search rules are not supported; they just silently fall back to the standard rules. I'm adding a link to the function inicu_provider_export
where they can be added.