Skip to content

Add Italic each line SE5 plugin - #309

Merged
niksedk merged 1 commit into
mainfrom
claude/se5-italic-each-line
Oct 8, 2026
Merged

niksedk merged 1 commit into
mainfrom
claude/se5-italic-each-line

Conversation

@niksedk

@niksedk niksedk commented Oct 8, 2026

Copy link
Copy Markdown
Member

Ports the SE4 ItalicEachLine plugin (3.1k downloads) to SE5 and adds the reverse direction.

screenshot

Converts either way

  • Italic on each line: <i>A / B</i> → <i>A</i> / <i>B</i>. Also works mid-line (He said <i>never / again</i>, and left.), keeps inner <b>/<u>/<font> properly nested, leaves blank lines untagged, keeps {\an8} in place.
  • One tag per subtitle: joins </i> + line break + <i> seams (blank lines between are allowed).

UI (Avalonia + Material Design icons, follows the SE theme)

  • Two mode cards with example and how many lines each would change
  • All lines / Selected lines (selection in SE is the default scope)
  • Tags view (colored tags + diff highlight) or Rendered view (real italics)
  • Checkable before/after cards, Select all / None / Invert; OK = one undo step
  • Mode, view and scope are remembered

Works on Subtitle.Paragraphs so ASSA styles/actors etc. survive; falls back to SubRip for older SE.

Tests: 35 xunit tests (converter both ways, round trips, view model scope/response/legacy). Also checked the window by rendering it headless (light + dark, rendered view, empty state).

Workflow: italic-each-line.yml, the same as the other plugins (test → 6 self-contained builds → release on dispatch).

After merge: run the workflow with release, then add the plugin to se5-plugins.json and to the README table.

🤖 Generated with Claude Code

Port of the SE4 ItalicEachLine plugin. Converts italic tags both ways:
one tag pair per subtitle <-> a tag pair on each line. Mode cards with
per-mode change counts, all/selected scope, tags or rendered preview,
checkable before/after cards. Works on request paragraphs (keeps ASSA
fields), SubRip fallback for older SE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@niksedk
niksedk merged commit 5cbf9a2 into main Oct 8, 2026
10 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.

1 participant