remove tagstrip
literally exactly the same as the one that comes with aegi
This commit is contained in:
parent
31746f8e09
commit
613849e8ae
|
@ -75,9 +75,3 @@ originally created to convert stuff that should've been alpha-timed in the first
|
|||
### Scenebleed Detector
|
||||
|
||||
Finds scenebleeds in the selected lines, and marks them with an effect (`bleed`).
|
||||
|
||||
### tagstrip
|
||||
|
||||
gets rid of tags (and comments) in the selected lines.
|
||||
|
||||
literally exactly the same as the one that comes with aegi, idk why i made this
|
||||
|
|
26
tagstrip.lua
26
tagstrip.lua
|
@ -1,26 +0,0 @@
|
|||
script_name = "tagstrip"
|
||||
script_description = "nukes tags\n(and comments)"
|
||||
script_author = "garret"
|
||||
script_version = "2021-06-13"
|
||||
include("cleantags.lua")
|
||||
|
||||
function strip(sub, sel)
|
||||
for h, i in ipairs(sel) do
|
||||
line = sub[i]
|
||||
line.text = line.text:gsub("{[^}]-}","")
|
||||
sub[i] = line
|
||||
end
|
||||
aegisub.set_undo_point(script_name)
|
||||
end
|
||||
|
||||
function clean(sub, sel)
|
||||
for h, i in ipairs(sel) do
|
||||
line = sub[i]
|
||||
line.text = cleantags(line.text)
|
||||
sub[i] = line
|
||||
end
|
||||
aegisub.set_undo_point(script_name)
|
||||
end
|
||||
|
||||
aegisub.register_macro(script_name, script_description, strip)
|
||||
--aegisub.register_macro("Clean Tags", script_description, clean) -- dupe of existing aegi one
|
Loading…
Reference in New Issue