Skip to content

fix(strutils): preserve unmapped diaeresis characters in asciify - #834

Open
sogav21 wants to merge 1 commit into
mahmoud:masterfrom
sogav21:codex/bug-832-20261124
Open

sogav21 wants to merge 1 commit into
mahmoud:masterfrom
sogav21:codex/bug-832-20261124

Conversation

@sogav21

@sogav21 sogav21 commented Nov 24, 2026

Copy link
Copy Markdown

The change

When an unmapped character has a Unicode decomposition ending in a combining diaeresis, apply the ordinary decomposition handling. Explicit transliterations, including German umlauts, still take precedence. Base characters that cannot be encoded as ASCII follow the existing fallback of replacement with ? or omission with ignore=True.

The new regression test covers Ë, ë, Ï and ï, repeated use and both values of ignore. It fails in both modes on the original code. The full suite and doctests passed on Windows with CPython 3.11.15 and 3.14.4 (776 passed and 1 skipped on each).

Fixes #832.

The backstory

My previous Boltons contribution is the open PR #808.

AI assistance

  • Harness/tooling (Claude Code, Cursor, Codex, etc.): OpenAI Codex

  • Model(s): GPT-6.2 Sol with medium reasoning for implementation and high reasoning for independent review. The Codex runtime did not expose the exact model identifier for the coordinating session.

  • Original prompt(s), as close to verbatim as you can manage (public issue-specific excerpts, with workspace and operational instructions omitted):

    Για κάθε issue αναπαρήγαγε το bug, κάνε την ελάχιστη ολοκληρωμένη διόρθωση, έλεγξέ την και υπέβαλε τεκμηριωμένο PR.

    Repro red with final regression on base, minimal complete fix 832 only (NOT 833) preserving curated German transliterations/NFKD fallback/cache/ignore behavior. Explain composed/decomposed fallback existing behavior without scope creep. Run meaningful targeted/full tests plus lint/build if required/available, CPython 3.11 + 3.14 if readily available; ensure actual import source.

This branch has not been deployed

No deployments
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.

asciify drops letters with a diaeresis that are not in DEACCENT_MAP (Ë, ë, Ï, ï)

1 participant