That furigana stuff

Discuss and get help for karaoke effect creation here

That furigana stuff

Unread postby jfs » Mon Apr 03, 2006 7:54 pm

Kanji karaoke needs more furigana.

For those who didn't know/notice, my furigana system is completed (I think ;)) and is on the SVN. You can download the files from:
http://svn.berlios.de/svnroot/repos/aeg ... utomation/

But beware that several things have changed, and it'll most likely break old scripts you have! Don't expect to just be able to plop in the new include files and be running!

The first kara made with it was btw the [gg]Binchou-tan OP.

Another thing included in the new karaskel system is the inline and ool effect systems, which unfortunately aren't really documented in the demos at all :P I'll try to post some examples of it soon, if anyone care.

The update here might be one of the last of Automation 3, since Automation 4 is currently planned for Aegisub 1.10 (the next release), so make good use of it :P
Do not PM me asking for help with Aegisub, Automation, karaoke or anything like that, I won't reply.
Ask your questions in the public forums. Use the Search function, somebody probably asked the same question before.
All rights reserved to call you insults if you ask poorly thought out or redundant questions.
Experimenting is free and is a great way to learn things.
User avatar
jfs
Developer
 
Posts: 2529
Joined: Mon Dec 19, 2005 8:18 pm
Location: Somewhere else

Re: That furigana stuff

Unread postby Dohko_24 » Tue May 16, 2006 6:37 pm

Hey... the scrip the firugana requied of the file binchou-fx.lua, I dont have this file... where I can file the file.

Help me, I wan have the karaoke of image.

PD. Sorry I bat write english. Se español
img]http://img476.imageshack.us/img476/3240/firmadohko247xq.jpg[/img]
User avatar
Dohko_24
{\b1}
{\b1}
 
Posts: 11
Joined: Wed Mar 22, 2006 3:44 am

Re: That furigana stuff

Unread postby -iORi- » Wed May 17, 2006 5:30 am

"Dohko_24" wrote:Hey... the scrip the firugana requied of the file binchou-fx.lua, I dont have this file... where I can file the file.

Help me, I wan have the karaoke of image.

PD. Sorry I bat write english. Se español

I don't see it requires binchou-fx.lua. But, I think, the fact that you want to have the karaoke effect which is in the image is the reason you asked for the lua script. And I am pretty sure that you won't get it. haha... The karaoke effect is created for a certain Anime Fansub Group, and I beleive the group has a policy to not distribute the karaoke script to the public. But if jfs personally send you the script... that's another matter.
iORi-
-iORi-
Comic Sans MS
Comic Sans MS
 
Posts: 4
Joined: Mon Dec 26, 2005 2:45 am

That furigana stuff

Unread postby jfs » Thu May 18, 2006 12:49 pm

I mistakenly committed a version of the 10-furigana.ass file that linked my Binchou-tan karaoke effect rather than the 10-furigana.lua demo. You do not need binchou-fx.lua at all! Just ignore the error about loading it, and add 10-furigana.lua to the ASS file instea. Then it should work.
Do not PM me asking for help with Aegisub, Automation, karaoke or anything like that, I won't reply.
Ask your questions in the public forums. Use the Search function, somebody probably asked the same question before.
All rights reserved to call you insults if you ask poorly thought out or redundant questions.
Experimenting is free and is a great way to learn things.
User avatar
jfs
Developer
 
Posts: 2529
Joined: Mon Dec 19, 2005 8:18 pm
Location: Somewhere else

That furigana stuff

Unread postby velocity7 » Sat May 27, 2006 6:02 am

Currently the script as it is works for karaoke, but how about if I wanted to work with just pure dialogue? Or somehow make the automation dependent on the style so that adding furigana doesn't force the style to something else? etc.

More something along these lines: http://naomi.thewafflehouse.net/screen.JPG

And somehow the automation should be able to handle two or more lines in one subtitle as well... (getting a bit complicated I think ~_~)
velocity7
Comic Sans MS
Comic Sans MS
 
Posts: 4
Joined: Sat May 27, 2006 6:00 am

That furigana stuff

Unread postby jfs » Sat May 27, 2006 10:49 pm

As you quite correctly write yourself, making any furigana in regular dialogue text is just hell. It just won't happen. At least not if line-breaking is needed. Then again, it might be possible to do a workaround, actually...

Write a script that does absolutely no styling/effects at all, it just positions/sizes the text and furigana, and (very important!) obeys alignment/margin/margin override settings. Then you can do manual like breaking (ie. make two separate dialogue lines in the script for a two-line onscreen text) with karaoke-style furigana (just use \k0, timing doesn't matter) and make sure the lines are positioned correctly using the margin override fields.

Edit: Found something interesting on Wikipedia:
http://en.wikipedia.org/wiki/Ruby_chara ... in_Unicode
Do not PM me asking for help with Aegisub, Automation, karaoke or anything like that, I won't reply.
Ask your questions in the public forums. Use the Search function, somebody probably asked the same question before.
All rights reserved to call you insults if you ask poorly thought out or redundant questions.
Experimenting is free and is a great way to learn things.
User avatar
jfs
Developer
 
Posts: 2529
Joined: Mon Dec 19, 2005 8:18 pm
Location: Somewhere else

That furigana stuff

Unread postby velocity7 » Mon May 29, 2006 1:06 am

Ruby markup, huh. Aegisub doesn't have support for this?

I'm also not too familiar with automation scripts in Aegisub, let alone programming for LUA (though I've programmed in other languages).
velocity7
Comic Sans MS
Comic Sans MS
 
Posts: 4
Joined: Sat May 27, 2006 6:00 am

That furigana stuff

Unread postby jfs » Mon May 29, 2006 12:37 pm

"velocity7" wrote:Ruby markup, huh. Aegisub doesn't have support for this?

No of course not. Apart from the problem of visualising the existance of unicode ruby markup characters, there's also the problem of inputting them, and probably also making sure they match up correctly etc. It'd be far easier to implement such stuff with a kind of wysiwyg interface I think.

"velocity7" wrote:I'm also not too familiar with automation scripts in Aegisub, let alone programming for LUA (though I've programmed in other languages).

If you've programmed in pretty much anything else before, picking up Lua shouldn't take more than a couple of hours.
Do not PM me asking for help with Aegisub, Automation, karaoke or anything like that, I won't reply.
Ask your questions in the public forums. Use the Search function, somebody probably asked the same question before.
All rights reserved to call you insults if you ask poorly thought out or redundant questions.
Experimenting is free and is a great way to learn things.
User avatar
jfs
Developer
 
Posts: 2529
Joined: Mon Dec 19, 2005 8:18 pm
Location: Somewhere else

That furigana stuff

Unread postby velocity7 » Mon May 29, 2006 6:31 pm

The other problem I have is that I'm completely new to the entire Aegisub concept, so I have no idea what I'm doing in terms of programming here. Guess that's why you made a request for tutorials, huh? :(
velocity7
Comic Sans MS
Comic Sans MS
 
Posts: 4
Joined: Sat May 27, 2006 6:00 am

Re: That furigana stuff

Unread postby Sadamitsu » Tue Aug 28, 2007 2:42 pm

Yo there. It's me again ! Starting to get on your nerves huh  :P

I'm trying to make a furigana karaoke but I'm having some problems here. According to the wiki I need a line for the kanji main text and one line for for the furigana. Here's my commented script:

Code: Select all
[Script Info]
; Script generated by Aegisub v2.00 PRE-RELEASE (SVN r1515, ArchMageZeratuL)
; http://www.aegisub.net
ScriptType: v4.00+
Collisions: Normal
PlayResX: 720
PlayResY: 480

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Kanji-furigana,@mikachan-P,10,&H003E0501,&H00F3E8E0,&H00F3E8E0,&H00C0C0C0,0,0,0,0,100,100,0,0,1,1,0,2,20,20,20,1
Style: Kanji,@mikachan-P,20,&H003E0501,&H00F3E8E0,&H00F3E8E0,&H00C0C0C0,0,0,0,0,100,100,0,0,1,2,0,2,20,20,20,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Comment: 0,0:00:00.00,0:00:00.00,Kanji-furigana,,0000,0000,0000,template furi,{\pos($x,240)}{\frz270}  << Template test furigana
Comment: 0,0:00:00.00,0:00:00.00,Kanji,,0000,0000,0000,template line,{\pos($x,240)}{\frz270} << Template test main text
Dialogue: 0,0:00:20.18,0:00:24.29,Kanji-furigana,,0000,0000,0000,,{\k37}回|<ま{\k37}#|わ{\k10}り{\k34}続|つ{\k34}#|ず{\k15}け{\k16}る{\k22}時|と{\k28}計{\k28}#|けい{\k66}{\k38}乾|かわ{\k15}き{\k24}き{\k28}った{\k26}光|こう{\k30}景|けい << Furigana line
Dialogue: 0,0:00:20.18,0:00:24.29,Kanji,,0000,0000,0000,,{\k37}回{\k10}り{\k34}続{\k15}け{\k16}る{\k22}時{\k28}計{\k66}{\k38}乾{\k15}き{\k24}き{\k28}った{\k26}光{\k30}景 << Main text line


When I try to apply that I get this error:

Code: Select all
Lua reported a runtime error:
[string "kara-templater.lua"]:351: attempt to perform arithmetic on field 'left' (a nil value)


Is there something I did wrong ? I'm guessing it comes from my furigana line. I just tried to copy what was done on the wiki. Didn't understant anything about the hash-mark (#), (<) flag nor the (!) one  ??? Thanks again for your help =^.^=
Image
Sadamitsu
{\b1}
{\b1}
 
Posts: 11
Joined: Fri May 18, 2007 12:08 pm
Location: France

Re: That furigana stuff

Unread postby jfs » Tue Aug 28, 2007 4:50 pm

Okay.
First, you should never manually create any lines with the "Kanji-furigana" style, that's done automatically. You don't need to create that style manually either, kara-templater creates it for you the first time you use it.
In fact you having those lines with style Kanji-furigana is what causes the error!

Here's how it should look:
Code: Select all
Comment: 0,0:00:00.00,0:00:00.00,Kanji,,0000,0000,0000,template furi,{\pos($x,240)}{\frz270}
Comment: 0,0:00:00.00,0:00:00.00,Kanji,,0000,0000,0000,template syl,{\pos($x,240)}{\frz270}
Dialogue: 0,0:00:20.18,0:00:24.29,Kanji,,0000,0000,0000,,{\k37}回|<ま{\k37}#|わ{\k10}り{\k34}続|つ{\k34}#|ず{\k15}け{\k16}る{\k22}時|と{\k28}計{\k28}#|けい{\k66}{\k38}乾|かわ{\k15}き{\k24}き{\k28}った{\k26}光|こう{\k30}景|けい


Additionally, you can't use "line" templates with \pos, it just doesn't make sense. You'll still get output and no errors, but it won't be what you expect. I changed it to a "syl" template for that reason.
Also, if you're going to use the same effect for both furigana and main kanji you can join them in one template line, just have that single template line be "template syl furi" and it'll work right away.
Last edited by jfs on Tue Aug 28, 2007 4:53 pm, edited 1 time in total.
Do not PM me asking for help with Aegisub, Automation, karaoke or anything like that, I won't reply.
Ask your questions in the public forums. Use the Search function, somebody probably asked the same question before.
All rights reserved to call you insults if you ask poorly thought out or redundant questions.
Experimenting is free and is a great way to learn things.
User avatar
jfs
Developer
 
Posts: 2529
Joined: Mon Dec 19, 2005 8:18 pm
Location: Somewhere else

Re: That furigana stuff

Unread postby Sadamitsu » Tue Aug 28, 2007 6:32 pm

Congratulations jfs you sir just won the internet  ;D Thanks for your help.

Just applied that but the result was scrambled. Since I put {\pos($x,240)} even the furigana was placed at 240 so it was in the middle of my kanji. With $y instead everything was fine. The thing is as you probably guessed from my script I want my kanji to be vertical at the right of my video. That's why I used the "@" font and {\frz270}. Is it possible to do so ? I tried to put the alignement to 6 and messed aroung with the pos but couldn't do it. Thanks again for your help jfs.
Image
Sadamitsu
{\b1}
{\b1}
 
Posts: 11
Joined: Fri May 18, 2007 12:08 pm
Location: France

Re: That furigana stuff

Unread postby jfs » Tue Aug 28, 2007 6:59 pm

Vertical karaoke is one of the few things kara-templater doesn't do too well yet, unfortunately. If you want the line to be down the right-hand side of the video you will need an updated kara-templater.lua, get it here, otherwise the "meta" table won't be available.

Then, with that update, you can get right-hand side vertical karaoke like this:
Code: Select all
Comment: 0,0:00:00.00,0:00:00.00,Kanji,,0000,0000,0000,template furi,{\an5\pos(!meta.res_x-line.margin_r-line.height/2+2!,!(meta.res_y-line.width)/2+syl.center!)\frz-90}
Comment: 0,0:00:00.00,0:00:00.00,Kanji,,0000,0000,0000,template syl,{\an5\pos(!meta.res_x-line.margin_r-line.height!,!(meta.res_y-line.width)/2+syl.center!)\frz-90}
Do not PM me asking for help with Aegisub, Automation, karaoke or anything like that, I won't reply.
Ask your questions in the public forums. Use the Search function, somebody probably asked the same question before.
All rights reserved to call you insults if you ask poorly thought out or redundant questions.
Experimenting is free and is a great way to learn things.
User avatar
jfs
Developer
 
Posts: 2529
Joined: Mon Dec 19, 2005 8:18 pm
Location: Somewhere else

Re: That furigana stuff

Unread postby Sadamitsu » Wed Aug 29, 2007 8:28 am

I see. This works like a charm with a little tweaking of the values.

Once again thank you very much for your help jfs.
Image
Sadamitsu
{\b1}
{\b1}
 
Posts: 11
Joined: Fri May 18, 2007 12:08 pm
Location: France


Return to Karaoke

Who is online

Users browsing this forum: No registered users and 4 guests