Skip to content

Add Brazilian to European Portuguese plugin for SE5 - #348

Merged
niksedk merged 1 commit into
SubtitleEdit:mainfrom
SMAP-git:add-brazilian-to-european-portuguese
Nov 5, 2026
Merged

niksedk merged 1 commit into
SubtitleEdit:mainfrom
SMAP-git:add-brazilian-to-european-portuguese

Conversation

@SMAP-git

@SMAP-git SMAP-git commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the Brazilian to European Portuguese plugin for Subtitle Edit 5, as requested in SubtitleEdit/subtitleedit#16622 (comment).

The plugin is based on the SE5 AmericanToBritish plugin and uses the existing upstream Plugin-Shared project unchanged.

  • Rule-based pt-BR to pt-PT spelling, vocabulary, grammar, idioms and contextual constructions.
  • Checkable/editable preview, original PT-BR text, rule explanations and finding-type filters.
  • Batch conversion and saved configuration.
  • Optional English-reference alignment and guarded disambiguation.
  • Optional locally downloaded MiniLM meaning checks and Gervásio alternative ranking. Conversion works without downloading models; no cloud translation service or Ollama integration is included.
  • Bundled Natura dictionaries with attribution/licensing information documented in the plugin README.

Integration

  • Plugin manifest version: 1.2.5.
  • Registers the plugin, tests and packaging workflow in se5/Plugins.slnx.
  • Includes a six-target self-contained packaging workflow: Windows/Linux/macOS, x64/ARM64.
  • Does not modify shared plugin code, existing plugins, or se5-plugins.json. The online catalogue entry can be added by the maintainer following review and release.
  • No subtitle corpora, personal settings, downloaded models or build output are included.

Validation

Tested against the current upstream Plugin-Shared code:

PTPT_TEST_UI=1 xvfb-run -a dotnet test se5/BrazilianToEuropeanPortuguese.Tests/BrazilianToEuropeanPortuguese.Tests.csproj -c Release

2,535 passed, 7 opt-in model/integration tests skipped, 0 failures. Includes native Avalonia review/filter/edit tests. One pre-existing duplicate InlineData warning remains.

Linux x64 self-contained publishing also succeeded. Other platform packages have not been built locally.

Source project: https://github.com/SMAP-git/BrazilianToEuropeanPortuguese

Related discussion: SubtitleEdit/subtitleedit#16622

Include v1.2.5 conversion/review tools, regression tests and six-platform packaging. Uses upstream Plugin-Shared unchanged; catalogue registration left for maintainer review.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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