Skip to content

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

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

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 <[email protected]>
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

1 participant