AnimeSuki Forums

Register Forum Rules FAQ Members List Social Groups Search Today's Posts Mark Forums Read

Go Back   AnimeSuki Forum > Anime Related Topics > General Anime > Fansub Groups

Notices

Reply
 
Thread Tools
Old 2010-06-01, 15:58   Link #441
andy_blah
~Buri Buri!~
*Fansubber
 
 
Join Date: Aug 2008
"Tried changing the Encoding field in your styles?" -> Not sure exactly what you mean by this ^o^;

As for the second one, I tried to change the style to "Default", and went to the subtitle editor and changed through a few fonts, they all worked, all besides the two fonts with issues. Again, as I said, I don't think it's actually Aegisub's fault, but more like VSFilter's. Even StyleEditor displays the font oddly in it's Preview panel (see screenshot above)
__________________
andy_blah is offline   Reply With Quote
Old 2010-06-01, 17:51   Link #442
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
Quote:
Originally Posted by andy_blah View Post
"Tried changing the Encoding field in your styles?" -> Not sure exactly what you mean by this ^o^;
Take another look at this picture you posted yourself:


Spoiler for Hint for the solution:
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's
jfs is offline   Reply With Quote
Old 2010-06-01, 18:05   Link #443
andy_blah
~Buri Buri!~
*Fansubber
 
 
Join Date: Aug 2008
So by that you meant text encoding, silly me. Surprisingly that fixed the quirky problem, still one thing that I find weird is that I never changed the encoding ever and I've used that scripts many times before, no problems so far. They only appeared now after I have reinstalled everything.
__________________
andy_blah is offline   Reply With Quote
Old 2010-06-01, 22:55   Link #444
furiseto
Junior Member
 
 
Join Date: May 2009
this may be a silly question but is there a feature in Aegisub that can automatic add dot in the end of the sentences (if i forget to add) ?
furiseto is offline   Reply With Quote
Old 2010-06-01, 23:45   Link #445
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
No, there's no full-automatic text correction, and I'd never support exactly adding periods at the end of lines automatically, because in many cases in subtitles you don't want them.
(But other automatic corrections might be added at some point, it's not something we've ever considered before though. Don't hold your breath.)
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's
jfs is offline   Reply With Quote
Old 2010-06-02, 15:23   Link #446
idiffer
Senior Member
 
 
Join Date: Mar 2009
Location: Russia, Moscow
Age: 35
Send a message via ICQ to idiffer
sorry, if this sounds dumb...
is there something that can be done to the subs so that ppl can view fancy typesetted subs with fonts they dont have? besides dl'ing the fonts yourself.
__________________
My posts seem retarted? I invoke the freedomof choice upon thee to choose one of the below.
a) I’m batshit insane or mentally challenged. Nyan!
b) Wasu~p?! *brofist*
c) Your mind is too narrow to embrace my genius, de geso.
d) I was accidentally dropped into a barrel of whiskey, so now I am constantly drunk.
e) Go home and die! Dattebayo!
idiffer is offline   Reply With Quote
Old 2010-06-02, 15:42   Link #447
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
Yes, you can attach font files (TrueType and OpenType formats) to MKV files.

Note that an attachment is not the same as a stream, in Matroska.
Ask Google about attaching fonts to MKV.
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's
jfs is offline   Reply With Quote
Old 2010-06-02, 17:25   Link #448
idiffer
Senior Member
 
 
Join Date: Mar 2009
Location: Russia, Moscow
Age: 35
Send a message via ICQ to idiffer
thank you very much) although now i'm in despair also, because the raws i have are .wmv and are unmuxable(i dont want to reencode). guess i could always provide the fonts along with the ep i release...
__________________
My posts seem retarted? I invoke the freedomof choice upon thee to choose one of the below.
a) I’m batshit insane or mentally challenged. Nyan!
b) Wasu~p?! *brofist*
c) Your mind is too narrow to embrace my genius, de geso.
d) I was accidentally dropped into a barrel of whiskey, so now I am constantly drunk.
e) Go home and die! Dattebayo!
idiffer is offline   Reply With Quote
Old 2010-06-03, 02:25   Link #449
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
Quote:
Originally Posted by idiffer View Post
thank you very much) although now i'm in despair also, because the raws i have are .wmv and are unmuxable(i dont want to reencode). guess i could always provide the fonts along with the ep i release...
you can mux wmv to mkv with gdsmux
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2010-06-03, 12:40   Link #450
idiffer
Senior Member
 
 
Join Date: Mar 2009
Location: Russia, Moscow
Age: 35
Send a message via ICQ to idiffer
Quote:
Originally Posted by TheFluff View Post
you can mux wmv to mkv with gdsmux
AND attach fonts, so ppl dont have to install them to watch the ep? if so, you are my savior. or i can just attach fonts to the .ass??

EDIT

nevermind, i figured it out. funny thing, gdsmux wont mux in the .ass subs...but knowing that in the world of software anything can work, i muxed the video file alone, then muxed the output .mkv with the subs in mkvmerge. everything works. thanks for the help, world needs more ppl like you ))
__________________
My posts seem retarted? I invoke the freedomof choice upon thee to choose one of the below.
a) I’m batshit insane or mentally challenged. Nyan!
b) Wasu~p?! *brofist*
c) Your mind is too narrow to embrace my genius, de geso.
d) I was accidentally dropped into a barrel of whiskey, so now I am constantly drunk.
e) Go home and die! Dattebayo!

Last edited by idiffer; 2010-06-03 at 13:32.
idiffer is offline   Reply With Quote
Old 2010-06-04, 00:07   Link #451
Quarkboy
Translator, Producer
 
 
Join Date: Nov 2003
Location: Tokyo, Japan
Age: 44
Is it possible to have text which is left justified but centered?

I.e where two row lines are aligned on the left, but the overall placement of the line is halfway between the left and right margins?

This is soft of standard for Japanese subs, and I was wondering if there was someway to reproduce the style using ass?
__________________
Read Light Novels in English at J-Novel Club!
Translator, Producer, Japan Media Export Expert
Founder and Owner of J-Novel Club
Sam Pinansky
Quarkboy is offline   Reply With Quote
Old 2010-06-04, 05:27   Link #452
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
No, there's no builtin way to do that with ASS, because there's no "inner alignment" option. I can think of a few ways of writing an automation script that produces this effect though.
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2010-06-04, 05:46   Link #453
Mentar
Banned
 
 
Join Date: Nov 2003
Location: Hamburg
Age: 54
Quote:
Originally Posted by Quarkboy View Post
Is it possible to have text which is left justified but centered?

I.e where two row lines are aligned on the left, but the overall placement of the line is halfway between the left and right margins?

This is soft of standard for Japanese subs, and I was wondering if there was someway to reproduce the style using ass?
Maybe I don't correctly understand your requirement, but what you want sounds like you want a left-alignment starting at a fundamentally static starting point?

If so, what's the difference to using alignment 1 (\an1, but can also be put into an ASS style) with a relatively large left margin?
Mentar is offline   Reply With Quote
Old 2010-06-04, 07:14   Link #454
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
Quote:
Originally Posted by Mentar View Post
Maybe I don't correctly understand your requirement, but what you want sounds like you want a left-alignment starting at a fundamentally static starting point?

If so, what's the difference to using alignment 1 (\an1, but can also be put into an ASS style) with a relatively large left margin?
That doesn't center the line horizontally, it puts it at a fixed offset from the left edge.
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2010-06-04, 08:32   Link #455
Quarkboy
Translator, Producer
 
 
Join Date: Nov 2003
Location: Tokyo, Japan
Age: 44
Quote:
Originally Posted by TheFluff View Post
No, there's no builtin way to do that with ASS, because there's no "inner alignment" option. I can think of a few ways of writing an automation script that produces this effect though.
Damn that's what I thought.

I'll write the script then. Shouldn't be that hard to get the rendered width and insert a custom left margin override each line.
__________________
Read Light Novels in English at J-Novel Club!
Translator, Producer, Japan Media Export Expert
Founder and Owner of J-Novel Club
Sam Pinansky
Quarkboy is offline   Reply With Quote
Old 2010-06-04, 08:33   Link #456
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
The closest you can do is \an1 and then override the left margin per line. Which is almost what Mentar described.

And AS6 will have inner alignment


Edit: The main problem with writing a script to do this is to figure out where lines are broken or should be broken. Line breaking in Japanese is funny :P
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's
jfs is offline   Reply With Quote
Old 2010-06-04, 08:54   Link #457
Quarkboy
Translator, Producer
 
 
Join Date: Nov 2003
Location: Tokyo, Japan
Age: 44
Quote:
Originally Posted by jfs View Post
The closest you can do is \an1 and then override the left margin per line. Which is almost what Mentar described.

And AS6 will have inner alignment


Edit: The main problem with writing a script to do this is to figure out where lines are broken or should be broken. Line breaking in Japanese is funny :P
Don't worry. The translator is doing all linebreaks with manual \n.

FYI this is for Japanese subs on a show to be aired on Japanese broadcast tv.
Pretty cool, hug?
__________________
Read Light Novels in English at J-Novel Club!
Translator, Producer, Japan Media Export Expert
Founder and Owner of J-Novel Club
Sam Pinansky
Quarkboy is offline   Reply With Quote
Old 2010-06-09, 11:52   Link #458
Quarkboy
Translator, Producer
 
 
Join Date: Nov 2003
Location: Tokyo, Japan
Age: 44
Update: Ask and I shall end up programming it myself:

Code:
function center_left_justify(subtitles, selected_lines, active_line)
	local meta, styles = karaskel.collect_head(subtitles, false)
	for i = 1, subtitles.n do
		local line = subtitles[i]
		if line.class == "dialogue" then
			local b,e = string.find(line.text,"\\N")
			local lineback = line.text
			if b then
				local line1, line2 = string.sub(line.text,0,b-1), string.sub(line.text,e+1)
				if unicode.len(line1) > unicode.len(line2) then line.text = line1 else line.text = line2 end
				karaskel.preproc_line(subtitles, meta, styles, line)
				line.margin_l = line.left+line.width/8
				line.text = "{\\an1}" .. lineback
				subtitles[i] = line
			end
		end
	end
	aegisub.set_undo_point("Center-Left Justify")
end
Note that this assumes a heck of a lot of things, like there is at most 1 \N in each line and that all line breaks are inserted manually.

Also, I think there's a bug in the metrics calculations...

I would expect that "line.margin_l = line.left+line.width/8"
should just be "line.margin_l = line.left", yes?
But I had to add in a width/8, because it turns out that the value returned by width is off by a factor of the aspect ratio, 4/3.... (so (1-3/4)/2 = 1/8... do the math)
Is that a feature, not a bug? Going by the coordinates shown on the display it definitely looks like there's a factor of 4/3 going wrong in the values of width being returned.

Anyway, I figured out the correction and it works perfectly now (for my purposes).
__________________
Read Light Novels in English at J-Novel Club!
Translator, Producer, Japan Media Export Expert
Founder and Owner of J-Novel Club
Sam Pinansky
Quarkboy is offline   Reply With Quote
Old 2010-06-09, 16:51   Link #459
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
You have to set the script resolution to an even multiple of the actual video resolution, in both dimensions, or it'll probably do weird things. If you've already done that, I dunno what is up and I leave it to jfs to figure it out.
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2010-06-09, 17:59   Link #460
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
I'm planning to take a closer look at it, and maybe make an improved version that handles multiple line-breaks, once I get my desktop PC up again. (PSU died today, grr.)
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's
jfs is offline   Reply With Quote
Reply

Tags
aegisub, help thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
We use Silk.