SubtitleEdit / plugins

Plugins for Subtitle Edit
GNU General Public License v3.0
88 stars 43 forks source link

HI2UC plugin add option to change parentheses to square brackets #230

Open Firestorm2359 opened 1 year ago

Firestorm2359 commented 1 year ago

@ivandrofly please consider adding an option to change parentheses to square brackets.

ivandrofly commented 1 year ago

You mean to replace (foobar) => [foobar]

Or to be able to match text inside the brackets?

Firestorm2359 commented 1 year ago

You mean to replace (foobar) => [foobar]

Yes this is what I mean. But not replace round brackets with square brackets when there's a song title bracketed within. e.g., ("(Sittin’ On) The Dock of the Bay" playing) should be ["(Sittin’ On) The Dock of the Bay" playing]

Or to be able to match text inside the brackets?

Not sure what you mean by this. Can you explain?

ivandrofly commented 1 year ago

Yes this is what I mean. But not replace round brackets with square brackets when there's a song title bracketed within. e.g., ("(Sittin’ On) The Dock of the Bay" playing) should be ["(Sittin’ On) The Dock of the Bay" playing]

Replace from (foobar) => [foobar] is easy detecting if the text inside the the parentheses is music it's not that easy!

Only if there was some kind of character/symbols that could be used to identify if the text inside is a music text...