Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

sffc
Copy link
Member

@sffc sffc commented Jul 28, 2025

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 in icu_provider_export where they can be added.

@sffc sffc requested review from zbraniecki and nciric as code owners July 28, 2025 21:08
Copy link

Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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.

@sffc sffc requested a review from hsivonen July 28, 2025 21:08
@sffc sffc changed the title Add breadcrumbs to ExportDriver::with_additional_collations Discuss supported options in CollationType docs Jul 29, 2025
///
/// # Supported Values
///
/// Not all collation orderings are always supported by ICU4X:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// 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`].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛈 is tofu for me

Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

@hsivonen hsivonen left a 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`].
Copy link
Member

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`].
Copy link
Member

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."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants