pycaption 2.2.14__tar.gz → 2.2.15__tar.gz
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.
- {pycaption-2.2.14/pycaption.egg-info → pycaption-2.2.15}/PKG-INFO +1 -1
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/scc/__init__.py +1 -2
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/scc/constants.py +1 -1
- {pycaption-2.2.14 → pycaption-2.2.15/pycaption.egg-info}/PKG-INFO +1 -1
- {pycaption-2.2.14 → pycaption-2.2.15}/setup.py +1 -1
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/fixtures/scc.py +8 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_scc.py +7 -1
- {pycaption-2.2.14 → pycaption-2.2.15}/LICENSE +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/MANIFEST.in +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/README.rst +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/__init__.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/base.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/dfxp/__init__.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/dfxp/base.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/dfxp/extras.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/english.pickle +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/exceptions.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/geometry.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/microdvd.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/sami.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/scc/specialized_collections.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/scc/state_machines.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/scc/translator.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/srt.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/transcript.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/utils.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption/webvtt.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption.egg-info/SOURCES.txt +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption.egg-info/dependency_links.txt +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption.egg-info/requires.txt +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/pycaption.egg-info/top_level.txt +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/setup.cfg +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/__init__.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/conftest.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/fixtures/__init__.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/fixtures/dfxp.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/fixtures/microdvd.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/fixtures/sami.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/fixtures/srt.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/fixtures/translated_scc.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/fixtures/webvtt.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/mixins.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_base.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_dfxp.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_dfxp_conversion.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_dfxp_extras.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_functions.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_geometry.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_microdvd.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_microdvd_conversion.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_sami.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_sami_conversion.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_scc_conversion.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_scc_translator.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_srt.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_srt_conversion.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_webvtt.py +0 -0
- {pycaption-2.2.14 → pycaption-2.2.15}/tests/test_webvtt_conversion.py +0 -0
|
@@ -367,13 +367,12 @@ class SCCReader(BaseReader):
|
|
|
367
367
|
# doubled special characters and doubled extended characters
|
|
368
368
|
# with only one member of each pair being displayed.
|
|
369
369
|
|
|
370
|
-
doubled_types = word != "94a1" and word in COMMANDS or _is_pac_command(word)
|
|
370
|
+
doubled_types = (word != "94a1" and word in COMMANDS) or _is_pac_command(word) or word in SPECIAL_CHARS
|
|
371
371
|
if self.double_starter:
|
|
372
372
|
doubled_types = (
|
|
373
373
|
doubled_types
|
|
374
374
|
or word in EXTENDED_CHARS
|
|
375
375
|
or word == "94a1"
|
|
376
|
-
or word in SPECIAL_CHARS
|
|
377
376
|
)
|
|
378
377
|
|
|
379
378
|
if word in CUE_STARTING_COMMAND and word != self.last_command:
|
|
@@ -988,7 +988,7 @@ HEADER = 'Scenarist_SCC V1.0'
|
|
|
988
988
|
|
|
989
989
|
# taken from
|
|
990
990
|
# http://www.theneitherworld.com/mcpoodle/SCC_TOOLS/DOCS/CC_CHARS.HTML
|
|
991
|
-
|
|
991
|
+
SUBSTITUTE_CHARACTERS = {
|
|
992
992
|
'¡': ["!", "i"], # inverted exclamation mark
|
|
993
993
|
'¤': ["C"], # currency
|
|
994
994
|
'¥': ["Y"], # yen
|
|
@@ -144,6 +144,14 @@ Scenarist_SCC V1.0
|
|
|
144
144
|
|
|
145
145
|
00:00:13;07 9425 9425 94ad 94ad 9470 9470 c1c2 c3c4 c580 91bf
|
|
146
146
|
|
|
147
|
+
00:00:13;15 9425 9425 94ad 94ad 9470 9470 9137
|
|
148
|
+
|
|
149
|
+
00:00:13;20 9425 9425 94ad 94ad 9470 9470 9137 9137
|
|
150
|
+
|
|
151
|
+
00:00:13;25 9425 9425 94ad 94ad 9470 9470 9137 9137 9137
|
|
152
|
+
|
|
153
|
+
00:00:13;40 9425 9425 94ad 94ad 9470 9470 9137 9137 9137 9137
|
|
154
|
+
|
|
147
155
|
00:00:14;07 9425 9425 94ad 94ad 9470 9470 9220 9220 92a1 92a2 92a7
|
|
148
156
|
|
|
149
157
|
00:00:17;01 9426 9426 94ad 94ad 9470 9470 57c8 4552 4520 d94f d5a7 5245 20d3 54c1 cec4 49ce c720 ce4f 572c
|
|
@@ -419,8 +419,12 @@ class TestCoverageOnly:
|
|
|
419
419
|
"AND IMPROVING THE LIVES OF ALL",
|
|
420
420
|
"WE SERVE.",
|
|
421
421
|
"®°½",
|
|
422
|
-
"
|
|
422
|
+
"®°½",
|
|
423
423
|
"ABû",
|
|
424
|
+
'♪',
|
|
425
|
+
'♪',
|
|
426
|
+
'♪♪',
|
|
427
|
+
'♪♪',
|
|
424
428
|
"ÁÉÓ¡",
|
|
425
429
|
"WHERE YOU'RE STANDING NOW,",
|
|
426
430
|
"LOOKING OUT THERE, THAT'S AL",
|
|
@@ -430,6 +434,8 @@ class TestCoverageOnly:
|
|
|
430
434
|
"And wildlife.",
|
|
431
435
|
">> Bike Iowa, your source for",
|
|
432
436
|
]
|
|
437
|
+
for x in actual_texts:
|
|
438
|
+
print(x)
|
|
433
439
|
assert expected_texts == actual_texts
|
|
434
440
|
|
|
435
441
|
def test_multiple_formats(self, sample_scc_multiple_formats):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|