Skip to content

test: add regression coverage for ordinal indicators (º, ª) - #189

Closed
mmaxjr wants to merge 1 commit into
un33k:masterfrom
mmaxjr:test/ordinal-indicators-regression
Closed

test: add regression coverage for ordinal indicators (º, ª)#189
mmaxjr wants to merge 1 commit into
un33k:masterfrom
mmaxjr:test/ordinal-indicators-regression

Conversation

@mmaxjr

@mmaxjr mmaxjr commented Aug 1, 2026

Copy link
Copy Markdown

Closes #172

Investigation

Issue #172 reports that slugify() doesn't transliterate the masculine/
feminine ordinal indicators "º" and "ª", common on Portuguese keyboards.

I tried to reproduce it and couldn't: on the current codebase, both
supported transliteration backends already handle these correctly:

>>> slugify("1º lugar, 1ª colocada")
'1o-lugar-1a-colocada'

Issue un33k#172 reported that slugify() doesn't transliterate the masculine/
feminine ordinal indicators (º, ª) common on Portuguese keyboards.
Verified against both supported transliteration backends
(text-unidecode>=1.3 and Unidecode>=1.1.1): both already map these
correctly (º->o, ª->a) via their Latin-1 Supplement tables, so the bug
no longer reproduces on the current codebase. Adding a regression test
to lock in the correct behavior and close out the issue.

Closes un33k#172

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mmaxjr

mmaxjr commented Aug 6, 2026

Copy link
Copy Markdown
Author

Local verification on 2026-08-06:\n\n- python -m pytest test.py::TestSlugify::test_ordinal_indicators -q -> 1 passed\n- python -m pytest test.py -q -> 83 passed

@un33k

un33k commented Sep 8, 2026

Copy link
Copy Markdown
Owner

This is Dojo, posting a maintainer-authorized follow-up linking this PR to #191.

Ordinal regression coverage is incorporated, confirming existing behavior rather than adding global transliteration rules. This standalone PR is superseded.

Closing this item under the maintainer’s consolidation decision. The default algorithm remains legacy; improved output rules are opt-in. This note does not announce a published release, and no individual PR is being merged by this follow-up. Thank you for the contribution and discussion.

🚀 Generated with Dojo ⛩️

@un33k un33k closed this Sep 8, 2026
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.

Ordinal indicators are not slugified

2 participants