This may or may not change in later versions of Karaoke Templater.Ī code block is a block of Lua code within a template line. This is a limitation of the execution model. You cannot have templates with char or multi modifiers run per-character/per-highlight interspersed with code lines. They are run interspersed with furi templates. They are run interspersed with syl templates.įuri Code lines in the furi class are run when a new furigana syllable is encountered. Syl Code lines in the syl class are run when a new syllable is encountered. They are run interspersed with line/ pre-line templates in the order they appear. Line Code lines in the line class are run when a new line is encountered. This is the default class, if you don't specify a class for a code line it's automatically in the once class. This is usually the best place to define functions and general tables of values you need to look up later. Once Code lines in the once class are run exactly one time, before any templates are applied. You specify the class of the code line in the Effect field after the code keyword. Some of them are the same, and some only exist for one or the other. Like there's multiple classes of template lines there's also multiple classes of code lines. Defining functions for use later in templatesįor example, if you need a random number, but also need to use it twice in one template, you can use a code line to first generate the number and store it to a variable, then use that variable in your template line.Īnother example could be defining a function that produces a random colour.Defining/updating variables for use later in templates.A code line contains only Lua code and does not by itself produce any lines in the resulting file. Instead of using the template keyword in the Effect field it uses the code keyword. In the video link below, created by me, follows a basic tutorial for creating a karaoke, but in the future I will create more articles and video lessons related to aegisub and, also, the part of embedding the video with the subtitles and also I'll talk about his tags.A code line is a special kind of template line. Repeat the process until you can subtitle what you want. just go on audio and then in Open audio from video.ģ - Now, if you want to create a caption from scratch, click file > new subtitles.Ĥ - Write your caption in the text field in the corner, press play and pause where you want the caption to end. ![]() ![]() Two - Before you start editing, you need to open the video audio. On the top bar of the program, go to Videoand click open video… and select the file. This program is a complete package, before you start using it fully, it is good to know at least some tips and information for beginners:ġ - The first step is to load the video to be subtitled.
0 Comments
Leave a Reply. |