Skip to content

[RU] Fix the broken table of the гл ru 5b/c"-ся template - #2845

Merged
BoboTiG merged 1 commit into
reader-dict:mainfrom
monosans:fix/ru-verb-template
Nov 16, 2026
Merged

BoboTiG merged 1 commit into
reader-dict:mainfrom
monosans:fix/ru-verb-template

Conversation

@monosans

Copy link
Copy Markdown
Contributor

Follow-up to #2843. Шаблон:гл ru 5b/c"-ся (used by "спаться") has been broken on Wiktionary since a bot split "Он/она/оно (прош.)" into one parameter per gender in September 2025. The {{#if: that hid the masculine and feminine past forms of impersonal verbs lost its }}, so the template never renders its table. Since #2843 the word is kept, but it has no forms.

Anonymous users can't edit that template, so I added a RU template adapter that restores the old logic: {{#if:{{{безличный|1}}}||...}} is closed again around "Он (прош.)" and "Она (прош.)". Once the template gets fixed on Wiktionary the adapter matches nothing and logs "body unchanged".

Testing

  • RU dump 20261101, Python 3.13 (python:3.13-slim in Docker) on Windows 11.
  • After --parse, "спаться" gets its forms back: спится, спалось (the template shows only the impersonal ones by default).
  • tests/test_ru.py, mypy and ruff pass.

@monosans
monosans force-pushed the fix/ru-verb-template branch from d009558 to 057b093 Compare November 16, 2026 10:18
@monosans monosans changed the title [RU] Fix the broken table of the "гл ru 5b/c\"-ся" template [RU] Fix the broken table of the гл ru 5b/c"-ся template Nov 16, 2026
@BoboTiG
BoboTiG merged commit af4ab55 into reader-dict:main Nov 16, 2026
1 check passed
@monosans
monosans deleted the fix/ru-verb-template branch November 16, 2026 10:23
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.

2 participants