From 613849e8aec4a48043fe2a62992eb2ce914b85ed Mon Sep 17 00:00:00 2001 From: garret Date: Sun, 11 Jul 2021 10:41:03 +0100 Subject: remove tagstrip literally exactly the same as the one that comes with aegi --- tagstrip.lua | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 tagstrip.lua (limited to 'tagstrip.lua') diff --git a/tagstrip.lua b/tagstrip.lua deleted file mode 100644 index 1a65a98..0000000 --- a/tagstrip.lua +++ /dev/null @@ -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 -- cgit v1.2.3-70-g09d2