Skip to content

Add RemoveUnicodeCharacters SE5 plugin#280

Merged
niksedk merged 1 commit into
mainfrom
remove-unicode-characters
May 26, 2026
Merged

Add RemoveUnicodeCharacters SE5 plugin#280
niksedk merged 1 commit into
mainfrom
remove-unicode-characters

Conversation

@niksedk
Copy link
Copy Markdown
Member

@niksedk niksedk commented May 26, 2026

Summary

  • Adds a new SE5 plugin that detects non-ANSI characters (code point > 255) and lets the user remove or replace each one through a checkable preview window with an inline editable "Replace with" textbox per row.
  • Replacements are persisted across runs via the SE5 plugin Settings round-trip; built-in defaults map ♪/♫ to # and everything else to empty (= remove).
  • Adds the matching multi-rid build workflow (mirrors word-censor.yml) and the catalog entry in se5-plugins.json.

UI

  • One row per unique character: checkbox, hex code (U+XXXX), glyph, count, editable replacement, line numbers.
  • Toolbar: Select all, Select none, Google selected (opens a hex-code search in the system browser).
  • Apply replaces in a single pass per affected line, reports Replaced N occurrence(s) across M line(s) to SE's status bar, and registers a "Remove Unicode characters" undo entry.

Test plan

  • CI build passes for all six RIDs (win/linux/osx × x64/arm64).
  • Manually run on an SRT with , , , and accented letters — selected lines only.
  • Edit a replacement, Apply, re-run — confirm the edited value is restored from settings.
  • Verify the entry appears in SE's Get plugins dialog after a release tag is published.

🤖 Generated with Claude Code

Avalonia rebuild of the SE4 RemoveUnicodeCharacters plugin. Detects every
non-ANSI character (code point > 255) in the subtitle and lets the user
remove or replace each one with a per-row editable "Replace with" textbox.
Replacements are persisted via the SE5 plugin Settings round-trip.

Also adds the matching multi-rid build workflow and the entry in
se5-plugins.json so the plugin appears in SE's "Get plugins" list.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new SE5 Avalonia plugin RemoveUnicodeCharacters that detects non-ANSI characters (code point > 255), shows a checkable preview with per-character editable replacements, persists replacements through the SE5 settings round-trip, and applies them as a single subtitle update with undo metadata. Also adds the matching multi-RID GitHub Actions workflow and a catalog entry in se5-plugins.json.

Changes:

  • New SE5 plugin project (App, MainWindow, UnicodeCharRow, csproj, manifest, plugin.json, README) mirroring the WordCensor preview/apply pattern, with built-in defaults ♪/♫ → # and a "Google selected" action.
  • New remove-unicode-characters.yml workflow that mirrors word-censor.yml for six RIDs with optional minor-bump release flow.
  • New catalog entry in se5-plugins.json pointing at the se5-remove-unicode-characters-v1.1 release artifacts.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
se5/RemoveUnicodeCharacters/UnicodeCharRow.cs Observable row model with checkbox/replacement/hex/glyph/lines metadata.
se5/RemoveUnicodeCharacters/RemoveUnicodeCharacters.csproj Avalonia/.NET 8 project referencing Plugin-Shared.
se5/RemoveUnicodeCharacters/Program.cs Entry point delegating to PluginBootstrap.Run<App>.
se5/RemoveUnicodeCharacters/plugin.json Plugin manifest (apiVersion 1, version 1.0.0, dotnet runtime).
se5/RemoveUnicodeCharacters/MainWindow.axaml(.cs) Preview window: scan, build rows, apply replacements, persist settings, Google search.
se5/RemoveUnicodeCharacters/App.axaml(.cs) Avalonia app shell with FluentTheme; creates MainWindow.
se5/RemoveUnicodeCharacters/app.manifest Windows DPI-awareness manifest.
se5/RemoveUnicodeCharacters/README.md UI and build documentation.
se5-plugins.json Catalog entry pointing at v1.1 release artifacts.
.github/workflows/remove-unicode-characters.yml Multi-RID self-contained publish + optional release workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@niksedk niksedk merged commit 805440c into main May 26, 2026
10 checks passed
@niksedk niksedk deleted the remove-unicode-characters branch May 26, 2026 14:40
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