Jump to content

Subtitle Style


Recommended Posts

abdullah339
Posted

Can I create a custom Subtitle Style


For example:


[Script Info]
Title: Arabic
ScaledBorderAndShadow: yes
Original Translation:
Original Editing:
Original Timing:
Synch Point:
Script Updated By:
Update Details:
ScriptType: v4.00+
Collisions: Normal
PlayResX: 640
PlayResY: 360
Timer: 0.0000
WrapStyle: 0

[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: Default,Adobe Arabic,26,&H00FFFFFF,&H00 0000FF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,1,1,0,2,0010,0010,0020,1 Style: Episode_Title,Adobe Arabic,22,&H14FFFFFF,&H000000FF,&H28231A32,&H00000000,-1,0,0,0,100,100,0,0,1,1,0,9,0020,0020,0020,1

pwhodges
Posted

That's an SSA/ASS style, and belongs in the heading section of an SSA or ASS subtitle file.  Emby can't use it in any other context.

To edit SSA subtitles you can use Aegisub or Subtitle Edit.

Paul

abdullah339
Posted

What about using css styles that mimic the styles I provided? Is there an option to customize the css for the subtitle?

@pwhodges

pwhodges
Posted

The CSS options is for the web interface; the video player is a single unit in that interface and handles the subtitles itself, without any CSS involvement.

Paul

abdullah339
Posted

@pwhodges Not true, you can customize how the style will look through the control panel in the translation section, font size and shadow.. but the options are limited, I think I can add more styles

pwhodges
Posted

Minimal formatting is available for SRT subtitles in most players, but that is not CSS.

Paul

Posted

@abdullah339what he's saying about ass/ssa subtitles is right. Does that answer your question?

abdullah339
Posted

What I want to know is the CSS class for the sutbtitle format so that I can customize the shadow, colors and borders. @pwhodges@Luke

Posted
1 minute ago, abdullah339 said:

What I want to know is the CSS class for the sutbtitle format so that I can customize the shadow, colors and borders. @pwhodges@Luke

For ass/ssa format subtitles there is no such thing because it’s all rendered on a canvas.

abdullah339
Posted (edited)

I will not use ass/ssa in css @Luke

I will use css to customize the sutbtitle style

I want the subtitle display class so I can add automatic css customization to it 

Edited by abdullah339
Posted

OK the best thing to do is play some srt subtitles in the web browser and then use the browser debugger to examine the elements. This will allow you see the element structure and class names.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...