@@ -25,7 +25,7 @@ and vector graphics.
25
25
- .ass files (Advanced SubStation Alpha v4.0+), format identifier is ``"ass" ``.
26
26
- .ssa files (SubStation Alpha v4.0), format identifier is ``"ssa" ``.
27
27
28
- Implemented in :class: `pysubs2.substation.SubstationFormat `.
28
+ Implemented in :class: `pysubs2.formats. substation.SubstationFormat `.
29
29
30
30
.. versionchanged :: 1.2.0
31
31
Added support for embedded fonts. Fonts in loaded files will be preserved on save.
@@ -43,7 +43,7 @@ SubRip (SRT)
43
43
44
44
This format uses .srt files, format identifier is ``"srt" ``. Widely used subtitle format, it uses HTML
45
45
tags for formatting, though it is usually not heavily formatted (as opposed to *SubStation *).
46
- Implemented in :class: `pysubs2.subrip.SubripFormat `.
46
+ Implemented in :class: `pysubs2.formats. subrip.SubripFormat `.
47
47
48
48
.. versionchanged :: 1.4.0
49
49
Added option to keep SubStation override tags in SRT output. This is useful if your SRT file uses
58
58
59
59
Time-based format similar to MicroDVD, format identifier is ``"mpl2" ``. To save subtitles in MPL2 format,
60
60
use ``subs.save("subtitles.txt", format_="mpl2") ``.
61
- Implemented in :class: `pysubs2.mpl2.MPL2Format `.
61
+ Implemented in :class: `pysubs2.formats. mpl2.MPL2Format `.
62
62
63
63
.. versionchanged :: 0.2.2
64
64
Added support for MPL2 subtitle format.
69
69
Time-based format, format identifier is ``"tmp" ``. A very simple format which only specifies starting time
70
70
for each subtitle, eg. ``0:00:13:This is a subtitle ``. Subtitle length is calculated automatically based on character
71
71
count. This older subtitle format is also referred to as "TMP Player" format.
72
- Implemented in :class: `pysubs2.tmp.TmpFormat `.
72
+ Implemented in :class: `pysubs2.formats. tmp.TmpFormat `.
73
73
74
74
.. versionchanged :: 0.2.4
75
75
Added support for TMP subtitle format.
@@ -81,7 +81,7 @@ Time-based format similar to SubRip, format identifier is ``"vtt"``. Currently i
81
81
as a flavour of SubRip, with no extra support for WebVTT-specific features like styles or subtitle alignment.
82
82
`Link to WebVTT specification <https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API >`_, official name is
83
83
"Web Video Text Tracks Format".
84
- Implemented in :class: `pysubs2.webvtt.WebVTTFormat `.
84
+ Implemented in :class: `pysubs2.formats. webvtt.WebVTTFormat `.
85
85
86
86
.. versionchanged :: 1.0.0
87
87
Added basic support for WebVTT subtitle format.
@@ -94,7 +94,7 @@ which is currently not supported at all by the parser, but there is some support
94
94
95
95
`Link to TTML specification <https://www.w3.org/TR/ttml1 >`_, official name is
96
96
"Timed Text Markup Language 1".
97
- Implemented in :class: `pysubs2.ttml.TTMLFormat `.
97
+ Implemented in :class: `pysubs2.formats. ttml.TTMLFormat `.
98
98
99
99
.. versionchanged :: 1.8.0
100
100
Added basic support for TTML subtitle format.
@@ -108,7 +108,7 @@ for this format.
108
108
`Link to SAMI 1.0 specification <https://learn.microsoft.com/en-us/previous-versions/windows/desktop/dnacc/understanding-sami-1.0 >`_,
109
109
official name is "Synchronized Accessible Media Interchange".
110
110
111
- Implemented in :class: `pysubs2.sami.SAMIFormat `.
111
+ Implemented in :class: `pysubs2.formats. sami.SAMIFormat `.
112
112
113
113
.. versionchanged :: 1.8.0
114
114
Added basic support for SAMI subtitle format.
@@ -119,7 +119,7 @@ OpenAI Whisper
119
119
Time-based format for transcriptions generated from `Whisper JAX <https://huggingface.co/spaces/sanchit-gandhi/whisper-jax >`_,
120
120
format identifier is ``"whisper_jax" ``. Only parser is implemented.
121
121
122
- Implemented in :class: `pysubs2.whisper.WhisperJAXFormat `.
122
+ Implemented in :class: `pysubs2.formats. whisper.WhisperJAXFormat `.
123
123
124
124
.. versionchanged :: 1.8.0
125
125
Added support for parsing text representation of Whisper JAX output (previously,
@@ -135,7 +135,7 @@ MicroDVD
135
135
This format uses .sub files, format identifier is ``"microdvd" ``. This format uses frames to describe start/end times,
136
136
instead of hour/minute/second, which means it is dependent on framerate of the video. For proper retiming and conversion,
137
137
you need to know the framerate (sometimes it is given in the first subtitle, which ``pysubs2 `` will autodetect and use).
138
- Implemented in :class: `pysubs2.microdvd.MicroDVDFormat `.
138
+ Implemented in :class: `pysubs2.formats. microdvd.MicroDVDFormat `.
139
139
140
140
Other
141
141
-----
144
144
~~~~
145
145
146
146
This is JSON-serialized internal representation, which amounts to ASS. Format identifier is ``"json" ``.
147
- Implemented in :class: `pysubs2.jsonformat.JSONFormat `.
147
+ Implemented in :class: `pysubs2.formats. jsonformat.JSONFormat `.
148
148
149
149
OpenAI Whisper (API)
150
150
~~~~~~~~~~~~~~~~~~~~
0 commit comments