![]() Invariants: ms in range(1000) and s in range(60) and m in range(60) Ms – Number of milliseconds (may be int, float or other numeric class). fractions – Whether to print up to millisecond precision.Ĭonvert milliseconds to normalized tuple (h, m, s, ms).ms – Number of milliseconds (int, float or other numeric class).Non-negative times with fractions=TrueĪre matched by. fps – Framerate (must be a positive number, eg.ms – Number of milliseconds (may be int, float or other numeric class).ms_to_frames ( ms, fps ) ¶Ĭonvert milliseconds to number of frames. Tertiary color ( pysubs2.Color instance) underline = None ¶ Strikeout (ASS only) tertiarycolor = None ¶ Letter spacing (ASS only) strikeout = None ¶ Shadow depth (in pixels) spacing = None ¶ Secondary color ( pysubs2.Color instance) shadow = None ¶ Vertical scaling (ASS only) secondarycolor = None ¶ Horizontal scaling (ASS only) scaley = None ¶ Primary color ( pysubs2.Color instance) scalex = None ¶ Outline color ( pysubs2.Color instance) primarycolor = None ¶ Outline width (in pixels) outlinecolor = None ¶ Vertical margin (in pixels) outline = None ¶ Right margin (in pixels) marginv = None ¶ shadow color ( pysubs2.Color instance) bold = None ¶ Old, unused SSA-only field angle = None ¶īack, ie. 7 is “top left” (that is, ASS alignment semantics) alphalevel = None ¶ FIELDS = frozenset() ¶Īll fields in SSAStyle. This class defines equality (equality of all fields). Note that style name is stored separately Ī given SSAStyle instance has no particular name itself. Which is (or should be) a key in the SSAFile.styles dict. Subtitles and styles are connected via an SSAFile they belong to. (note the spelling, which is different from SubStation proper). Like a subtitle event, a style also consists of “fields” see SSAStyle.FIELDS for a list In SubStation, each subtitle ( SSAEvent) is associated with a style which defines its font, color, etc. ![]() SSAStyle - a subtitle style ¶ class pysubs2. Text of subtitle (with SubStation override tags) type = None ¶ Subtitle start time (in milliseconds) style = None ¶ AEGISUB CHANGE SCRIPT POSITION FOR MULTIPLE LINES FULLSee SSAFile.shift() for full description. Writing to this property replaces SSAEvent.text with given plain Subtitle text as multi-line string with no tags (read/write property). Layer number, 0 is the lowest layer (ASS only) marginl = None ¶ SSAEvent.type to "Dialogue" or "Comment". Setting this property is equivalent to changing ![]() When true, the subtitle is a comment, ie. Subtitle end time (in milliseconds) equals ( other ) ¶įield-based equality for SSAEvents. Setting negative durations raises ValueError. Writing to this property adjusts SSAEvent.end. Subtitle duration in milliseconds (read/write property). > ev = SSAEvent ( start = make_time ( s = 1 ), end = make_time ( s = 2.5 ), text = "Hello World!" ) FIELDS = frozenset() ¶ Wasn’t loaded from MicroDVD, or if you wish save it withĭifferent framerate, use this argument. the framerate usedįor loading the file, if any). fps ( float) – Framerate for frame-based formats (MicroDVD),įor other formats this argument is ignored.Otherwise, format is detectedĪutomatically from file extension. format ( str) – Optional, specifies desired subtitle format. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |