Add Subtitle Edit 5 plugin index and Haxor sample plugin#268
Merged
Conversation
se5-plugins.json is the download index read by Subtitle Edit 5's "Get plugins online..." feature. se5/Haxor is a sample SE5 plugin: a standalone executable that reads a JSON request, transforms the subtitle, and writes a JSON response. It serves as a reference for the SE5 plugin contract. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Adds the Subtitle Edit 5 plugin index and a sample plugin. SE5's plugin system (subtitleedit#10912) loads plugins as standalone executables that exchange JSON files with Subtitle Edit — a clean break from the SE4 in-process WinForms DLLs, which can't run on the cross-platform Avalonia build.
se5-plugins.json— the download index read by SE5's Get plugins online... feature.PluginConstants.OnlineIndexUrlpoints at this file onmain.se5/Haxor/— a sample SE5 plugin (under a newse5/folder to keep it separate from the SE4 plugins). It translates subtitle text to "haxor" (lower-case + look-alike swaps:a→4 e→3 o→0 s→$ i→! c→© h→H k→K n→ñ y→¥), honoring the grid selection. It doubles as a reference implementation of the SE5 plugin contract:plugin.json— manifestPluginContract.cs— request/response DTOsProgram.cs— read request → transform → write response → exit 0HaxorTranslator.cs— the transformREADME.md— build/install/packaging instructionsNotes
downloadUrlpoints at ase5-v1.0release that does not exist yet — aHaxor.zip(the published plugin folder, zipped) must be attached to a GitHub release before the in-app installer can fetch it.dotnet build(net8.0); verified end-to-end against a sample request.Test plan
dotnet publish se5/Haxor/Haxor.csproj -c Release, zip the output +plugin.json, attach to ase5-v1.0release.