(Basically everything but line, orgline, sylĪll templates in the once class are executed first. See Code execution environment for moreĭetails on what’s in there. Possible before any templates are run, is put into tenv. Initialising the runtime environment for the templates. The last thing done before starting actually running the templates is Run of kara-templater, so they should be replaced in this new run. In the Effect field, as those are assumed to have been generated in a previous Lines are deleted from the subtitle file. Clean-up #Īfter all templates have been collected etc., all old and no longer needed The templates of different classes are each put in their own “bucket”, so forĮxample line and syl templates are not kept together. Pre-line template lines is added to the pre-line text of the template ModifiersĬannot be removed from templates in this way or any other way. Line but not in the current template are added to the template. To the current text of the template and modifiers present in the new template There is already one with that name, the text of the template line is appended New one is created with that name and initialised with the given modifiers. There is already a line class template with that name. When a named line class template lines is encountered, first it’s checked if The details aren’t important here, but every modifier name found in the Effectįield either sets a flag in the template or a value corresponding to the Collecting, parsing and compiling templates #Įvery line in the file is visited and checked for being a template line, i.e.īe a comment and have the first word in the Effect field be code or It then collects all template lines in the file. Generate_furigana in the llect_head function, meaning thatįurigana styles are always generated, unless they already The first thing kara-templater does is simply use template text** or just **text The “text” part of a template, either the Lua code in a code template or the modifier Modifiers affect how and when templates are executed. Syl and furi, the first only available for code templates. (One line class output template can span multiple template lines.) class A class is a kind of template. template line A line in the subtitle file that defines an output template, or part of one. With the template keyword.) code line A line in the subtitle that defines a code template. (Declared with the code keyword.) output template A template that produces output lines from some karaoke data input. code template A template that runs a chunk of Lua code but doesn’t produce output. Mini-program compiled and executed by kara-templater. template The basic “execution unit” of kara-templater, a template is essentially a varctx The inline variable con te xt, the storage for the actual tenv The template environment, or code execution environment. The namesĪre close to or the same as those used in the actual script. These are some terms and concepts used throughout the description. Most of this is technical details you don’t need to know to use kara-templater,īut if you see some behaviour you don’t understand this page might explain it. They do and why some things can’t and won’t work. ( kara-templater) works and will try to explain why various things work as This page describes various technical details about how Karaoke Templater Collecting, parsing and compiling templates.Intersect with selection Does the inverse of subtract from selection. Subtract from selection Deselects all currently selected lines that match the criteria. ![]() Add to selection Adds all lines in the script that matches the criteria to your current You can choose between: Set selection Your current selection will be discarded and all lines in the script matching Here you can choose if you want to select from comment lines, dialogue lines,ĭecides what the tool should do with the lines that matches the given criteria. Possible alternatives are: Text The body text of the line Style The line’s style name Actor The actor field Effect The effect field Match dialogues/comments # ![]() This option controls what field of each line will be used for the matching ![]() For a reference of the exact syntax supported by Aegisub, see the Regular Expression match Treats the string as a regular Contains Matches the lines that contains the given string. Exact match Matches the lines that matches the given string exactly. if the tool should care about the differenceīetween lower and upper case or not. Match case Controls case sensitivity, i.e. Doesn’t match Select all lines that don’t match the criteria. Match Select all lines that match the criteria. These controls what criteria will be used for selecting the lines. The tool can be found in the Subtitles menu -> Select lines. Things ranging from deleting all comment lines to finding all lines said by aĬertain actor. The select lines tool is useful for finding and selecting all lines in the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |