vtt2ass 0.2.8 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/doc/Vtt2ass.html CHANGED
@@ -78,24 +78,25 @@
78
78
 
79
79
  <dl>
80
80
  <dt>Defined in:</dt>
81
- <dd>lib/vtt2ass.rb<span class="defines">,<br />
82
- lib/vtt2ass/version.rb</span>
81
+ <dd>lib/vtt2ass/version.rb<span class="defines">,<br />
82
+ lib/vtt2ass.rb</span>
83
83
  </dd>
84
84
  </dl>
85
85
 
86
86
  </div>
87
87
 
88
- <h2>Defined Under Namespace</h2>
89
- <p class="children">
90
-
91
-
92
-
93
-
94
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Vtt2ass/Error.html" title="Vtt2ass::Error (class)">Error</a></span>
88
+ <h2>Overview</h2><div class="docstring">
89
+ <div class="discussion">
95
90
 
91
+ <p>Vtt2ass module to provide the version number</p>
92
+
93
+
94
+ </div>
95
+ </div>
96
+ <div class="tags">
96
97
 
97
- </p>
98
98
 
99
+ </div>
99
100
 
100
101
  <h2>
101
102
  Constant Summary
@@ -105,9 +106,20 @@
105
106
  <dl class="constants">
106
107
 
107
108
  <dt id="VERSION-constant" class="">VERSION =
108
-
109
+ <div class="docstring">
110
+ <div class="discussion">
111
+
112
+ <p>This is the version of the application. This needs to be changed for each gem release.</p>
113
+
114
+
115
+ </div>
116
+ </div>
117
+ <div class="tags">
118
+
119
+
120
+ </div>
109
121
  </dt>
110
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.1.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
122
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.2.9</span><span class='tstring_end'>&quot;</span></span></pre></dd>
111
123
 
112
124
  </dl>
113
125
 
@@ -120,7 +132,7 @@
120
132
 
121
133
 
122
134
  <h2>
123
- Instance Method Summary
135
+ Class Method Summary
124
136
  <small><a href="#" class="summary_toggle">collapse</a></small>
125
137
  </h2>
126
138
 
@@ -129,7 +141,7 @@
129
141
  <li class="public ">
130
142
  <span class="summary_signature">
131
143
 
132
- <a href="#main-instance_method" title="#main (instance method)">#<strong>main</strong> &#x21d2; Object </a>
144
+ <a href="#main-class_method" title="main (class method)">.<strong>main</strong> &#x21d2; Object </a>
133
145
 
134
146
 
135
147
 
@@ -155,14 +167,14 @@
155
167
 
156
168
 
157
169
 
158
- <div id="instance_method_details" class="method_details_list">
159
- <h2>Instance Method Details</h2>
170
+ <div id="class_method_details" class="method_details_list">
171
+ <h2>Class Method Details</h2>
160
172
 
161
173
 
162
174
  <div class="method_details first">
163
- <h3 class="signature first" id="main-instance_method">
175
+ <h3 class="signature first" id="main-class_method">
164
176
 
165
- #<strong>main</strong> &#x21d2; <tt>Object</tt>
177
+ .<strong>main</strong> &#x21d2; <tt>Object</tt>
166
178
 
167
179
 
168
180
 
@@ -187,6 +199,8 @@
187
199
  <pre class="lines">
188
200
 
189
201
 
202
+ 13
203
+ 14
190
204
  15
191
205
  16
192
206
  17
@@ -207,26 +221,44 @@
207
221
  32
208
222
  33
209
223
  34
210
- 35</pre>
224
+ 35
225
+ 36
226
+ 37
227
+ 38
228
+ 39
229
+ 40
230
+ 41
231
+ 42
232
+ 43</pre>
211
233
  </td>
212
234
  <td>
213
- <pre class="code"><span class="info file"># File 'lib/vtt2ass.rb', line 15</span>
235
+ <pre class="code"><span class="info file"># File 'lib/vtt2ass.rb', line 13</span>
214
236
 
215
237
  <span class='kw'>def</span> <span class='id identifier rubyid_main'>main</span>
216
238
  <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
217
239
 
218
240
  <span class='const'>OptionParser</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_opts'>opts</span><span class='op'>|</span>
219
- <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_banner'>banner</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Usage: vtt2ass.rb [options]</span><span class='tstring_end'>&quot;</span></span>
241
+ <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_banner'>banner</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Usage: vtt2ass [options]</span><span class='tstring_end'>&quot;</span></span>
220
242
  <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_separator'>separator</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span>
221
243
  <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_separator'>separator</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Specific options:</span><span class='tstring_end'>&quot;</span></span>
222
- <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-i</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--input DIRECTORY</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Specify a custom input directory (default: &#39;./input&#39;)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_dir'>dir</span><span class='op'>|</span>
223
- <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:input</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_dir'>dir</span>
244
+ <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-i</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--input PATH</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Specify a custom input file or directory (default: &#39;./&#39;)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_file_path'>file_path</span><span class='op'>|</span>
245
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:input</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_file_path'>file_path</span>
246
+ <span class='kw'>end</span>
247
+ <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-o</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--output PATH</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Specify a custom output directory (default: &#39;./&#39;)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_file_path'>file_path</span><span class='op'>|</span>
248
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:output</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_file_path'>file_path</span>
249
+ <span class='kw'>end</span>
250
+ <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-f</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--font-family FONT</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='const'>String</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Specify a font family for the subtitles (default: &#39;Open Sans Semibold&#39;)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_font_family'>font_family</span><span class='op'>|</span>
251
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:font_family</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_font_family'>font_family</span>
252
+ <span class='kw'>end</span>
253
+ <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-s</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--font-size SIZE</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='const'>Integer</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Specify a font size for the subtitles (default: 52)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_font_size'>font_size</span><span class='op'>|</span>
254
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:font_size</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_font_size'>font_size</span>
224
255
  <span class='kw'>end</span>
225
- <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-o</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--output DIRECTORY</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Specify a custom output directory (default: &#39;./output&#39;)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_dir'>dir</span><span class='op'>|</span>
226
- <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:output</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_dir'>dir</span>
256
+ <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-t</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--title TITLE</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='const'>String</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Specify a title for you file. If the input is a directory, all files will share the same title.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_title'>title</span><span class='op'>|</span>
257
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:title</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_title'>title</span>
227
258
  <span class='kw'>end</span>
228
- <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-s</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--font-size SIZE</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='const'>Integer</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Specify a font size for the subtitles (default: 72)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_size'>size</span><span class='op'>|</span>
229
- <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:font_size</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_size'>size</span>
259
+ <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-v</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--version</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Show version</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
260
+ <span class='id identifier rubyid_puts'>puts</span> <span class='const'><span class='object_link'><a href="" title="Vtt2ass (module)">Vtt2ass</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="#VERSION-constant" title="Vtt2ass::VERSION (constant)">VERSION</a></span></span>
261
+ <span class='id identifier rubyid_exit'>exit</span>
230
262
  <span class='kw'>end</span>
231
263
  <span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_parse!'>parse!</span>
232
264
 
@@ -243,9 +275,9 @@
243
275
  </div>
244
276
 
245
277
  <div id="footer">
246
- Generated on Thu Jan 14 00:31:16 2021 by
278
+ Generated on Tue Mar 23 21:07:02 2021 by
247
279
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
248
- 0.9.26 (ruby-2.7.2).
280
+ 0.9.26 (ruby-3.0.0).
249
281
  </div>
250
282
 
251
283
  </div>
data/doc/_index.html CHANGED
@@ -86,32 +86,22 @@
86
86
  </li>
87
87
 
88
88
  <li>
89
- <span class='object_link'><a href="ASSStyle.html" title="ASSStyle (class)">ASSStyle</a></span>
89
+ <span class='object_link'><a href="ASSLine.html" title="ASSLine (class)">ASSLine</a></span>
90
90
 
91
91
  </li>
92
92
 
93
93
  <li>
94
- <span class='object_link'><a href="ASSSubtitle.html" title="ASSSubtitle (class)">ASSSubtitle</a></span>
94
+ <span class='object_link'><a href="ASSStyle.html" title="ASSStyle (class)">ASSStyle</a></span>
95
95
 
96
96
  </li>
97
97
 
98
98
  <li>
99
- <span class='object_link'><a href="Application.html" title="Application (class)">Application</a></span>
99
+ <span class='object_link'><a href="ASSStyleParams.html" title="ASSStyleParams (class)">ASSStyleParams</a></span>
100
100
 
101
101
  </li>
102
102
 
103
- </ul>
104
- </ul>
105
-
106
-
107
- <ul id="alpha_E" class="alpha">
108
- <li class="letter">E</li>
109
- <ul>
110
-
111
103
  <li>
112
- <span class='object_link'><a href="Vtt2ass/Error.html" title="Vtt2ass::Error (class)">Error</a></span>
113
-
114
- <small>(Vtt2ass)</small>
104
+ <span class='object_link'><a href="Application.html" title="Application (class)">Application</a></span>
115
105
 
116
106
  </li>
117
107
 
@@ -124,7 +114,12 @@
124
114
  <ul>
125
115
 
126
116
  <li>
127
- <span class='object_link'><a href="VTTSubtitle.html" title="VTTSubtitle (class)">VTTSubtitle</a></span>
117
+ <span class='object_link'><a href="VTTFile.html" title="VTTFile (class)">VTTFile</a></span>
118
+
119
+ </li>
120
+
121
+ <li>
122
+ <span class='object_link'><a href="VTTLine.html" title="VTTLine (class)">VTTLine</a></span>
128
123
 
129
124
  </li>
130
125
 
@@ -145,9 +140,9 @@
145
140
  </div>
146
141
 
147
142
  <div id="footer">
148
- Generated on Thu Jan 14 00:31:16 2021 by
143
+ Generated on Tue Mar 23 21:07:01 2021 by
149
144
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
150
- 0.9.26 (ruby-2.7.2).
145
+ 0.9.26 (ruby-3.0.0).
151
146
  </div>
152
147
 
153
148
  </div>
data/doc/class_list.html CHANGED
@@ -43,7 +43,7 @@
43
43
 
44
44
  <ul id="full_list" class="class">
45
45
  <li id="object_" class="odd"><div class="item" style="padding-left:30px"><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></div></li>
46
- <li id='object_ASSFile' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="ASSFile.html" title="ASSFile (class)">ASSFile</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_ASSStyle' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="ASSStyle.html" title="ASSStyle (class)">ASSStyle</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_ASSSubtitle' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="ASSSubtitle.html" title="ASSSubtitle (class)">ASSSubtitle</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Application' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Application.html" title="Application (class)">Application</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_VTTSubtitle' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="VTTSubtitle.html" title="VTTSubtitle (class)">VTTSubtitle</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Vtt2ass' class='odd'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Vtt2ass.html" title="Vtt2ass (module)">Vtt2ass</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Vtt2ass::Error' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Vtt2ass/Error.html" title="Vtt2ass::Error (class)">Error</a></span> &lt; StandardError<small class='search_info'>Vtt2ass</small></div></li></ul></li>
46
+ <li id='object_ASSFile' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="ASSFile.html" title="ASSFile (class)">ASSFile</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_ASSLine' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="ASSLine.html" title="ASSLine (class)">ASSLine</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_ASSStyle' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="ASSStyle.html" title="ASSStyle (class)">ASSStyle</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_ASSStyleParams' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="ASSStyleParams.html" title="ASSStyleParams (class)">ASSStyleParams</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Application' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Application.html" title="Application (class)">Application</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_VTTFile' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="VTTFile.html" title="VTTFile (class)">VTTFile</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_VTTLine' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="VTTLine.html" title="VTTLine (class)">VTTLine</a></span> &lt; Object<small class='search_info'>Top Level Namespace</small></div></li><li id='object_Vtt2ass' class='odd'><div class='item' style='padding-left:30px'><span class='object_link'><a href="Vtt2ass.html" title="Vtt2ass (module)">Vtt2ass</a></span><small class='search_info'>Top Level Namespace</small></div></li>
47
47
 
48
48
  </ul>
49
49
  </div>
data/doc/file.README.html CHANGED
@@ -60,30 +60,57 @@
60
60
  <div id="content"><div id='filecontents'>
61
61
  <h1 id="label-VTT+to+ASS">VTT to ASS</h1>
62
62
 
63
+ <p><a href="https://badge.fury.io/rb/vtt2ass"><img src="https://badge.fury.io/rb/vtt2ass.svg"></a></p>
64
+
63
65
  <p>This is a simple application to convert VTT files to ASS subtitles.</p>
64
66
 
65
67
  <h2 id="label-Requirements">Requirements</h2>
66
68
  <ul><li>
67
- <p>ruby 2.7.1 or newer</p>
69
+ <p>ruby 2.7.2 or newer</p>
68
70
  </li></ul>
69
71
 
70
- <h2 id="label-Prerequisites">Prerequisites</h2>
72
+ <p>It might work with older versions of ruby, but it hasn&#39;t been tested</p>
73
+
74
+ <h2 id="label-Installation">Installation</h2>
75
+
76
+ <p>To install: <code>bash gem install vtt2ass </code></p>
71
77
 
72
- <p>This application requires the use of the <code>os</code> gem.</p>
78
+ <h1 id="label-Build">Build</h1>
73
79
 
74
- <p>To install: <code>bash gem install os or bundle install </code></p>
80
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='id identifier rubyid_build'>build</span> <span class='id identifier rubyid_vtt2ass'>vtt2ass</span><span class='period'>.</span><span class='id identifier rubyid_gemspec'>gemspec</span>
81
+ </code></pre>
75
82
 
76
83
  <h2 id="label-Usage">Usage</h2>
77
84
 
78
- <p>Add your VTT files in the <code>input</code> directory.</p>
85
+ <p>Add your VTT files in your <code>input</code> directory.</p>
86
+
87
+ <p>Run this command: <code>bash $ vtt2ass </code></p>
88
+
89
+ <h2 id="label-Help">Help</h2>
90
+
91
+ <pre class="code ruby"><code class="ruby">$ vtt2ass -h
92
+ Usage: vtt2ass [options]
93
+
94
+ Specific options:
95
+ -i, --input PATH Specify a custom input file or directory (default: &#39;./&#39;)
96
+ -o, --output PATH Specify a custom output directory (default: &#39;./&#39;)
97
+ -f, --font-family FONT Specify a font family for the subtitles (default: &#39;Open Sans Semibold&#39;)
98
+ -s, --font-size SIZE Specify a font size for the subtitles (default: 52)
99
+ -t, --title TITLE Specify a title for you file. If the input is a directory, all files will share the same title.
100
+ -v, --version Show version
101
+ </code></pre>
102
+
103
+ <h1 id="label-Donate">Donate</h1>
104
+
105
+ <p>If you want to support me, consider buying me a coffee.</p>
79
106
 
80
- <p>Run this command: <code>bash $ ruby vta.rb </code></p>
107
+ <p><a href="https://ko-fi.com/Y8Y136P0E"><img src="https://ko-fi.com/img/githubbutton_sm.svg"></a></p>
81
108
  </div></div>
82
109
 
83
110
  <div id="footer">
84
- Generated on Thu Jan 14 00:31:16 2021 by
111
+ Generated on Tue Mar 23 21:07:02 2021 by
85
112
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
86
- 0.9.26 (ruby-2.7.2).
113
+ 0.9.26 (ruby-3.0.0).
87
114
  </div>
88
115
 
89
116
  </div>
data/doc/index.html CHANGED
@@ -60,30 +60,57 @@
60
60
  <div id="content"><div id='filecontents'>
61
61
  <h1 id="label-VTT+to+ASS">VTT to ASS</h1>
62
62
 
63
+ <p><a href="https://badge.fury.io/rb/vtt2ass"><img src="https://badge.fury.io/rb/vtt2ass.svg"></a></p>
64
+
63
65
  <p>This is a simple application to convert VTT files to ASS subtitles.</p>
64
66
 
65
67
  <h2 id="label-Requirements">Requirements</h2>
66
68
  <ul><li>
67
- <p>ruby 2.7.1 or newer</p>
69
+ <p>ruby 2.7.2 or newer</p>
68
70
  </li></ul>
69
71
 
70
- <h2 id="label-Prerequisites">Prerequisites</h2>
72
+ <p>It might work with older versions of ruby, but it hasn&#39;t been tested</p>
73
+
74
+ <h2 id="label-Installation">Installation</h2>
75
+
76
+ <p>To install: <code>bash gem install vtt2ass </code></p>
71
77
 
72
- <p>This application requires the use of the <code>os</code> gem.</p>
78
+ <h1 id="label-Build">Build</h1>
73
79
 
74
- <p>To install: <code>bash gem install os or bundle install </code></p>
80
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='id identifier rubyid_build'>build</span> <span class='id identifier rubyid_vtt2ass'>vtt2ass</span><span class='period'>.</span><span class='id identifier rubyid_gemspec'>gemspec</span>
81
+ </code></pre>
75
82
 
76
83
  <h2 id="label-Usage">Usage</h2>
77
84
 
78
- <p>Add your VTT files in the <code>input</code> directory.</p>
85
+ <p>Add your VTT files in your <code>input</code> directory.</p>
86
+
87
+ <p>Run this command: <code>bash $ vtt2ass </code></p>
88
+
89
+ <h2 id="label-Help">Help</h2>
90
+
91
+ <pre class="code ruby"><code class="ruby">$ vtt2ass -h
92
+ Usage: vtt2ass [options]
93
+
94
+ Specific options:
95
+ -i, --input PATH Specify a custom input file or directory (default: &#39;./&#39;)
96
+ -o, --output PATH Specify a custom output directory (default: &#39;./&#39;)
97
+ -f, --font-family FONT Specify a font family for the subtitles (default: &#39;Open Sans Semibold&#39;)
98
+ -s, --font-size SIZE Specify a font size for the subtitles (default: 52)
99
+ -t, --title TITLE Specify a title for you file. If the input is a directory, all files will share the same title.
100
+ -v, --version Show version
101
+ </code></pre>
102
+
103
+ <h1 id="label-Donate">Donate</h1>
104
+
105
+ <p>If you want to support me, consider buying me a coffee.</p>
79
106
 
80
- <p>Run this command: <code>bash $ ruby vta.rb </code></p>
107
+ <p><a href="https://ko-fi.com/Y8Y136P0E"><img src="https://ko-fi.com/img/githubbutton_sm.svg"></a></p>
81
108
  </div></div>
82
109
 
83
110
  <div id="footer">
84
- Generated on Thu Jan 14 00:31:16 2021 by
111
+ Generated on Tue Mar 23 21:07:01 2021 by
85
112
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
86
- 0.9.26 (ruby-2.7.2).
113
+ 0.9.26 (ruby-3.0.0).
87
114
  </div>
88
115
 
89
116
  </div>
data/doc/method_list.html CHANGED
@@ -46,32 +46,96 @@
46
46
 
47
47
  <li class="odd ">
48
48
  <div class="item">
49
- <span class='object_link'><a href="ASSStyle.html#assignParams-instance_method" title="ASSStyle#assignParams (method)">#assignParams</a></span>
50
- <small>ASSStyle</small>
49
+ <span class='object_link'><a href="ASSStyleParams.html#align-instance_method" title="ASSStyleParams#align (method)">#align</a></span>
50
+ <small>ASSStyleParams</small>
51
51
  </div>
52
52
  </li>
53
53
 
54
54
 
55
55
  <li class="even ">
56
56
  <div class="item">
57
- <span class='object_link'><a href="Application.html#convertFileToASS-instance_method" title="Application#convertFileToASS (method)">#convertFileToASS</a></span>
58
- <small>Application</small>
57
+ <span class='object_link'><a href="ASSStyleParams.html#alignment-instance_method" title="ASSStyleParams#alignment (method)">#alignment</a></span>
58
+ <small>ASSStyleParams</small>
59
+ </div>
60
+ </li>
61
+
62
+
63
+ <li class="odd ">
64
+ <div class="item">
65
+ <span class='object_link'><a href="ASSFile.html#ass_lines-instance_method" title="ASSFile#ass_lines (method)">#ass_lines</a></span>
66
+ <small>ASSFile</small>
67
+ </div>
68
+ </li>
69
+
70
+
71
+ <li class="even ">
72
+ <div class="item">
73
+ <span class='object_link'><a href="ASSFile.html#ass_styles-instance_method" title="ASSFile#ass_styles (method)">#ass_styles</a></span>
74
+ <small>ASSFile</small>
75
+ </div>
76
+ </li>
77
+
78
+
79
+ <li class="odd ">
80
+ <div class="item">
81
+ <span class='object_link'><a href="ASSLine.html#convertTime-instance_method" title="ASSLine#convertTime (method)">#convertTime</a></span>
82
+ <small>ASSLine</small>
83
+ </div>
84
+ </li>
85
+
86
+
87
+ <li class="even ">
88
+ <div class="item">
89
+ <span class='object_link'><a href="ASSLine.html#convertToAssText-instance_method" title="ASSLine#convertToAssText (method)">#convertToAssText</a></span>
90
+ <small>ASSLine</small>
91
+ </div>
92
+ </li>
93
+
94
+
95
+ <li class="odd ">
96
+ <div class="item">
97
+ <span class='object_link'><a href="ASSFile.html#convertVTTtoASS-instance_method" title="ASSFile#convertVTTtoASS (method)">#convertVTTtoASS</a></span>
98
+ <small>ASSFile</small>
99
+ </div>
100
+ </li>
101
+
102
+
103
+ <li class="even ">
104
+ <div class="item">
105
+ <span class='object_link'><a href="ASSStyleParams.html#createAlignment-instance_method" title="ASSStyleParams#createAlignment (method)">#createAlignment</a></span>
106
+ <small>ASSStyleParams</small>
107
+ </div>
108
+ </li>
109
+
110
+
111
+ <li class="odd ">
112
+ <div class="item">
113
+ <span class='object_link'><a href="ASSStyleParams.html#createHorizontalMargin-instance_method" title="ASSStyleParams#createHorizontalMargin (method)">#createHorizontalMargin</a></span>
114
+ <small>ASSStyleParams</small>
115
+ </div>
116
+ </li>
117
+
118
+
119
+ <li class="even ">
120
+ <div class="item">
121
+ <span class='object_link'><a href="ASSStyleParams.html#createVerticalMargin-instance_method" title="ASSStyleParams#createVerticalMargin (method)">#createVerticalMargin</a></span>
122
+ <small>ASSStyleParams</small>
59
123
  </div>
60
124
  </li>
61
125
 
62
126
 
63
127
  <li class="odd ">
64
128
  <div class="item">
65
- <span class='object_link'><a href="ASSSubtitle.html#convertTime-instance_method" title="ASSSubtitle#convertTime (method)">#convertTime</a></span>
66
- <small>ASSSubtitle</small>
129
+ <span class='object_link'><a href="ASSFile.html#height-instance_method" title="ASSFile#height (method)">#height</a></span>
130
+ <small>ASSFile</small>
67
131
  </div>
68
132
  </li>
69
133
 
70
134
 
71
135
  <li class="even ">
72
136
  <div class="item">
73
- <span class='object_link'><a href="ASSSubtitle.html#convertToAssText-instance_method" title="ASSSubtitle#convertToAssText (method)">#convertToAssText</a></span>
74
- <small>ASSSubtitle</small>
137
+ <span class='object_link'><a href="ASSStyleParams.html#horizontal_margin-instance_method" title="ASSStyleParams#horizontal_margin (method)">#horizontal_margin</a></span>
138
+ <small>ASSStyleParams</small>
75
139
  </div>
76
140
  </li>
77
141
 
@@ -86,16 +150,32 @@
86
150
 
87
151
  <li class="even ">
88
152
  <div class="item">
89
- <span class='object_link'><a href="ASSStyle.html#initialize-instance_method" title="ASSStyle#initialize (method)">#initialize</a></span>
90
- <small>ASSStyle</small>
153
+ <span class='object_link'><a href="ASSLine.html#initialize-instance_method" title="ASSLine#initialize (method)">#initialize</a></span>
154
+ <small>ASSLine</small>
91
155
  </div>
92
156
  </li>
93
157
 
94
158
 
95
159
  <li class="odd ">
96
160
  <div class="item">
97
- <span class='object_link'><a href="ASSSubtitle.html#initialize-instance_method" title="ASSSubtitle#initialize (method)">#initialize</a></span>
98
- <small>ASSSubtitle</small>
161
+ <span class='object_link'><a href="VTTFile.html#initialize-instance_method" title="VTTFile#initialize (method)">#initialize</a></span>
162
+ <small>VTTFile</small>
163
+ </div>
164
+ </li>
165
+
166
+
167
+ <li class="even ">
168
+ <div class="item">
169
+ <span class='object_link'><a href="VTTLine.html#initialize-instance_method" title="VTTLine#initialize (method)">#initialize</a></span>
170
+ <small>VTTLine</small>
171
+ </div>
172
+ </li>
173
+
174
+
175
+ <li class="odd ">
176
+ <div class="item">
177
+ <span class='object_link'><a href="ASSStyle.html#initialize-instance_method" title="ASSStyle#initialize (method)">#initialize</a></span>
178
+ <small>ASSStyle</small>
99
179
  </div>
100
180
  </li>
101
181
 
@@ -110,47 +190,47 @@
110
190
 
111
191
  <li class="odd ">
112
192
  <div class="item">
113
- <span class='object_link'><a href="VTTSubtitle.html#initialize-instance_method" title="VTTSubtitle#initialize (method)">#initialize</a></span>
114
- <small>VTTSubtitle</small>
193
+ <span class='object_link'><a href="ASSStyleParams.html#initialize-instance_method" title="ASSStyleParams#initialize (method)">#initialize</a></span>
194
+ <small>ASSStyleParams</small>
115
195
  </div>
116
196
  </li>
117
197
 
118
198
 
119
199
  <li class="even ">
120
200
  <div class="item">
121
- <span class='object_link'><a href="Vtt2ass.html#main-instance_method" title="Vtt2ass#main (method)">#main</a></span>
122
- <small>Vtt2ass</small>
201
+ <span class='object_link'><a href="VTTFile.html#lines-instance_method" title="VTTFile#lines (method)">#lines</a></span>
202
+ <small>VTTFile</small>
123
203
  </div>
124
204
  </li>
125
205
 
126
206
 
127
207
  <li class="odd ">
128
208
  <div class="item">
129
- <span class='object_link'><a href="ASSSubtitle.html#padTimeNum-instance_method" title="ASSSubtitle#padTimeNum (method)">#padTimeNum</a></span>
130
- <small>ASSSubtitle</small>
209
+ <span class='object_link'><a href="Vtt2ass.html#main-class_method" title="Vtt2ass.main (method)">main</a></span>
210
+ <small>Vtt2ass</small>
131
211
  </div>
132
212
  </li>
133
213
 
134
214
 
135
215
  <li class="even ">
136
216
  <div class="item">
137
- <span class='object_link'><a href="ASSSubtitle.html#params-instance_method" title="ASSSubtitle#params (method)">#params</a></span>
138
- <small>ASSSubtitle</small>
217
+ <span class='object_link'><a href="ASSLine.html#padTimeNum-instance_method" title="ASSLine#padTimeNum (method)">#padTimeNum</a></span>
218
+ <small>ASSLine</small>
139
219
  </div>
140
220
  </li>
141
221
 
142
222
 
143
223
  <li class="odd ">
144
224
  <div class="item">
145
- <span class='object_link'><a href="VTTSubtitle.html#params-instance_method" title="VTTSubtitle#params (method)">#params</a></span>
146
- <small>VTTSubtitle</small>
225
+ <span class='object_link'><a href="VTTLine.html#params-instance_method" title="VTTLine#params (method)">#params</a></span>
226
+ <small>VTTLine</small>
147
227
  </div>
148
228
  </li>
149
229
 
150
230
 
151
231
  <li class="even ">
152
232
  <div class="item">
153
- <span class='object_link'><a href="Application.html#readVTTFile-instance_method" title="Application#readVTTFile (method)">#readVTTFile</a></span>
233
+ <span class='object_link'><a href="Application.html#start-instance_method" title="Application#start (method)">#start</a></span>
154
234
  <small>Application</small>
155
235
  </div>
156
236
  </li>
@@ -158,88 +238,88 @@
158
238
 
159
239
  <li class="odd ">
160
240
  <div class="item">
161
- <span class='object_link'><a href="Application.html#start-instance_method" title="Application#start (method)">#start</a></span>
162
- <small>Application</small>
241
+ <span class='object_link'><a href="ASSLine.html#style-instance_method" title="ASSLine#style (method)">#style</a></span>
242
+ <small>ASSLine</small>
163
243
  </div>
164
244
  </li>
165
245
 
166
246
 
167
247
  <li class="even ">
168
248
  <div class="item">
169
- <span class='object_link'><a href="ASSSubtitle.html#style-instance_method" title="ASSSubtitle#style (method)">#style</a></span>
170
- <small>ASSSubtitle</small>
249
+ <span class='object_link'><a href="VTTLine.html#style-instance_method" title="VTTLine#style (method)">#style</a></span>
250
+ <small>VTTLine</small>
171
251
  </div>
172
252
  </li>
173
253
 
174
254
 
175
255
  <li class="odd ">
176
256
  <div class="item">
177
- <span class='object_link'><a href="VTTSubtitle.html#style-instance_method" title="VTTSubtitle#style (method)">#style</a></span>
178
- <small>VTTSubtitle</small>
257
+ <span class='object_link'><a href="ASSStyle.html#style_name-instance_method" title="ASSStyle#style_name (method)">#style_name</a></span>
258
+ <small>ASSStyle</small>
179
259
  </div>
180
260
  </li>
181
261
 
182
262
 
183
263
  <li class="even ">
184
264
  <div class="item">
185
- <span class='object_link'><a href="ASSStyle.html#style_name-instance_method" title="ASSStyle#style_name (method)">#style_name</a></span>
186
- <small>ASSStyle</small>
265
+ <span class='object_link'><a href="ASSLine.html#text-instance_method" title="ASSLine#text (method)">#text</a></span>
266
+ <small>ASSLine</small>
187
267
  </div>
188
268
  </li>
189
269
 
190
270
 
191
271
  <li class="odd ">
192
272
  <div class="item">
193
- <span class='object_link'><a href="ASSSubtitle.html#text-instance_method" title="ASSSubtitle#text (method)">#text</a></span>
194
- <small>ASSSubtitle</small>
273
+ <span class='object_link'><a href="VTTLine.html#text-instance_method" title="VTTLine#text (method)">#text</a></span>
274
+ <small>VTTLine</small>
195
275
  </div>
196
276
  </li>
197
277
 
198
278
 
199
279
  <li class="even ">
200
280
  <div class="item">
201
- <span class='object_link'><a href="VTTSubtitle.html#text-instance_method" title="VTTSubtitle#text (method)">#text</a></span>
202
- <small>VTTSubtitle</small>
281
+ <span class='object_link'><a href="ASSLine.html#time_end-instance_method" title="ASSLine#time_end (method)">#time_end</a></span>
282
+ <small>ASSLine</small>
203
283
  </div>
204
284
  </li>
205
285
 
206
286
 
207
287
  <li class="odd ">
208
288
  <div class="item">
209
- <span class='object_link'><a href="ASSSubtitle.html#time_end-instance_method" title="ASSSubtitle#time_end (method)">#time_end</a></span>
210
- <small>ASSSubtitle</small>
289
+ <span class='object_link'><a href="VTTLine.html#time_end-instance_method" title="VTTLine#time_end (method)">#time_end</a></span>
290
+ <small>VTTLine</small>
211
291
  </div>
212
292
  </li>
213
293
 
214
294
 
215
295
  <li class="even ">
216
296
  <div class="item">
217
- <span class='object_link'><a href="VTTSubtitle.html#time_end-instance_method" title="VTTSubtitle#time_end (method)">#time_end</a></span>
218
- <small>VTTSubtitle</small>
297
+ <span class='object_link'><a href="ASSLine.html#time_start-instance_method" title="ASSLine#time_start (method)">#time_start</a></span>
298
+ <small>ASSLine</small>
219
299
  </div>
220
300
  </li>
221
301
 
222
302
 
223
303
  <li class="odd ">
224
304
  <div class="item">
225
- <span class='object_link'><a href="ASSSubtitle.html#time_start-instance_method" title="ASSSubtitle#time_start (method)">#time_start</a></span>
226
- <small>ASSSubtitle</small>
305
+ <span class='object_link'><a href="VTTLine.html#time_start-instance_method" title="VTTLine#time_start (method)">#time_start</a></span>
306
+ <small>VTTLine</small>
227
307
  </div>
228
308
  </li>
229
309
 
230
310
 
231
311
  <li class="even ">
232
312
  <div class="item">
233
- <span class='object_link'><a href="VTTSubtitle.html#time_start-instance_method" title="VTTSubtitle#time_start (method)">#time_start</a></span>
234
- <small>VTTSubtitle</small>
313
+ <span class='object_link'><a href="ASSFile.html#title-instance_method" title="ASSFile#title (method)">#title</a></span>
314
+ <small>ASSFile</small>
235
315
  </div>
236
316
  </li>
237
317
 
238
318
 
239
319
  <li class="odd ">
240
320
  <div class="item">
241
- <span class='object_link'><a href="ASSSubtitle.html#toSubsTime-instance_method" title="ASSSubtitle#toSubsTime (method)">#toSubsTime</a></span>
242
- <small>ASSSubtitle</small>
321
+ <span class='object_link'><a href="ASSLine.html#toSubsTime-instance_method" title="ASSLine#toSubsTime (method)">#toSubsTime</a></span>
322
+ <small>ASSLine</small>
243
323
  </div>
244
324
  </li>
245
325
 
@@ -253,6 +333,30 @@
253
333
 
254
334
 
255
335
  <li class="odd ">
336
+ <div class="item">
337
+ <span class='object_link'><a href="ASSLine.html#to_s-instance_method" title="ASSLine#to_s (method)">#to_s</a></span>
338
+ <small>ASSLine</small>
339
+ </div>
340
+ </li>
341
+
342
+
343
+ <li class="even ">
344
+ <div class="item">
345
+ <span class='object_link'><a href="VTTFile.html#to_s-instance_method" title="VTTFile#to_s (method)">#to_s</a></span>
346
+ <small>VTTFile</small>
347
+ </div>
348
+ </li>
349
+
350
+
351
+ <li class="odd ">
352
+ <div class="item">
353
+ <span class='object_link'><a href="VTTLine.html#to_s-instance_method" title="VTTLine#to_s (method)">#to_s</a></span>
354
+ <small>VTTLine</small>
355
+ </div>
356
+ </li>
357
+
358
+
359
+ <li class="even ">
256
360
  <div class="item">
257
361
  <span class='object_link'><a href="ASSStyle.html#to_s-instance_method" title="ASSStyle#to_s (method)">#to_s</a></span>
258
362
  <small>ASSStyle</small>
@@ -260,18 +364,42 @@
260
364
  </li>
261
365
 
262
366
 
367
+ <li class="odd ">
368
+ <div class="item">
369
+ <span class='object_link'><a href="ASSStyleParams.html#vertical_margin-instance_method" title="ASSStyleParams#vertical_margin (method)">#vertical_margin</a></span>
370
+ <small>ASSStyleParams</small>
371
+ </div>
372
+ </li>
373
+
374
+
263
375
  <li class="even ">
264
376
  <div class="item">
265
- <span class='object_link'><a href="ASSSubtitle.html#to_s-instance_method" title="ASSSubtitle#to_s (method)">#to_s</a></span>
266
- <small>ASSSubtitle</small>
377
+ <span class='object_link'><a href="Application.html#vtt_to_ass-instance_method" title="Application#vtt_to_ass (method)">#vtt_to_ass</a></span>
378
+ <small>Application</small>
379
+ </div>
380
+ </li>
381
+
382
+
383
+ <li class="odd ">
384
+ <div class="item">
385
+ <span class='object_link'><a href="ASSFile.html#width-instance_method" title="ASSFile#width (method)">#width</a></span>
386
+ <small>ASSFile</small>
387
+ </div>
388
+ </li>
389
+
390
+
391
+ <li class="even ">
392
+ <div class="item">
393
+ <span class='object_link'><a href="ASSFile.html#writeToFile-instance_method" title="ASSFile#writeToFile (method)">#writeToFile</a></span>
394
+ <small>ASSFile</small>
267
395
  </div>
268
396
  </li>
269
397
 
270
398
 
271
399
  <li class="odd ">
272
400
  <div class="item">
273
- <span class='object_link'><a href="VTTSubtitle.html#to_s-instance_method" title="VTTSubtitle#to_s (method)">#to_s</a></span>
274
- <small>VTTSubtitle</small>
401
+ <span class='object_link'><a href="VTTFile.html#writeToFile-instance_method" title="VTTFile#writeToFile (method)">#writeToFile</a></span>
402
+ <small>VTTFile</small>
275
403
  </div>
276
404
  </li>
277
405