Skip to content

American to British: keep phrases (por favor) - #318

Merged
niksedk merged 1 commit into
mainfrom
claude/a2b-keep-phrases
Oct 12, 2026
Merged

niksedk merged 1 commit into
mainfrom
claude/a2b-keep-phrases

Conversation

@niksedk

@niksedk niksedk commented Oct 12, 2026

Copy link
Copy Markdown
Member

Fixes SubtitleEdit/subtitleedit#15946 - "por favor" became "por favour".

  • Built-in keep list in Plugin-Shared/WordList.xml (<Keep text="por favor" />, faz favor). Kept phrases are masked with private-use placeholders before the word rules run and restored afterwards, so "favor" inside them is untouched while "a favor" still becomes "a favour". Whole-word, case-insensitive, any whitespace between words.
  • Local word list <Ignore us="..." /> entries now also act as keep phrases, so users can add their own (e.g. <Ignore us="in favor of" />) from the gear button > Ignored words. Same file format as before, SE4-compatible (SE4 just ignores an unknown phrase).
  • Hint/watermark in the Ignored words tab and the README mention phrases.

Tested with a scratch console against Plugin-Shared:

  • Do me a favor, por favor, my favorite color. -> Do me a favour, por favor, my favourite colour.
  • POR FAVOR! unchanged; BR->US por favour, a favour -> por favor, a favor
  • local Ignore in favor of: Color me in favor of it, a favor. keeps the phrase, converts the last favor.

AmericanToBritish and BritishToAmerican build.

🤖 Generated with Claude Code

…avour")

Built-in <Keep text="..."/> entries in WordList.xml plus the local list's
<Ignore> entries (which may now be phrases) are masked before the rules run,
so a word inside them is left untouched while still converted elsewhere.

Fixes SubtitleEdit/subtitleedit#15946

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@niksedk
niksedk merged commit 5450588 into main Oct 12, 2026
77 checks passed
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.

"por favor" will be translated to "por favour" in American=>British plugin

1 participant