Add RemoveUnicodeCharacters SE5 plugin#280
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
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.ymlworkflow that mirrorsword-censor.ymlfor six RIDs with optional minor-bump release flow. - New catalog entry in
se5-plugins.jsonpointing at these5-remove-unicode-characters-v1.1release 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#and everything else to empty (= remove).word-censor.yml) and the catalog entry inse5-plugins.json.UI
U+XXXX), glyph, count, editable replacement, line numbers.Replaced N occurrence(s) across M line(s)to SE's status bar, and registers a "Remove Unicode characters" undo entry.Test plan
♪,♫,…, and accented letters — selected lines only.🤖 Generated with Claude Code