Skip to content

Fix standalone Ukrainian ruleset transliteration - #353

Open
Gabrieljr42 wants to merge 1 commit into
cocur:mainfrom
Gabrieljr42:fix/339-standalone-ukrainian-ruleset
Open

Gabrieljr42 wants to merge 1 commit into
cocur:mainfrom
Gabrieljr42:fix/339-standalone-ukrainian-ruleset

Conversation

@Gabrieljr42

@Gabrieljr42 Gabrieljr42 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #339.

The Ukrainian ruleset currently transliterates only its eight locale-specific characters when selected alone. This change includes every Ukrainian letter in both cases, regenerates DefaultRuleProvider, and adds standalone word/full-alphabet regressions plus a combined Russian/Ukrainian compatibility case.

All eight existing Ukrainian mappings are preserved, including Ї/ї -> Ji/ji. Shared letters use the library's existing mappings, and Russian-only letters are excluded. Default ruleset ordering and transliteration conventions are unchanged. Open PR #271 sorts the original eight mappings and changes Ji to Yi; it does not make this ruleset standalone. This patch deliberately preserves the current convention.

Validation:

  • Added standalone Ukrainian word, full-alphabet (upper/lowercase), and combined Russian/Ukrainian compatibility regression tests.
  • Verified regenerated DefaultRuleProvider parity across all 41 JSON rulesets and idempotent regeneration.
  • All upstream CI checks pass.

Inline shared Ukrainian alphabet mappings while retaining all existing
transliteration conventions. Regenerate the default provider and cover
standalone words, both complete alphabets and combined Russian/Ukrainian
compatibility.

Fixes cocur#339
@Gabrieljr42
Gabrieljr42 marked this pull request as ready for review November 2, 2026 14:25
@florianeckerstorfer

Copy link
Copy Markdown
Member

Could you explain the last two paragraphs of the PR text? What was failing? That is there about an billing issue?

@Gabrieljr42

Gabrieljr42 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Sorry about that. Those last two paragraphs were notes from running checks in my fork before opening this PR. Composer could not reach api.github.com in that environment, and GitHub Actions on Gabrieljr42/slugify was blocked by a billing issue on my account.

Nothing is failing here on upstream CI (all 10 checks passed). I edited the PR description to take those paragraphs out.

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.

Dependencies between rulesets?

2 participants