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Įnvironment. 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
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |