Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octo 10927 skip duplicated extended characters #326

Merged
merged 4 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
Changelog
---------
2.2.4
^^^^^
- Skip duplicated extended characters.

2.2.3
^^^^^
- Add new substitute character to ignore before extended character
in SCC input files
- Add new substitute character to ignore before extended character in SCC input files

2.2.2
^^^^^
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
# built documents.
#
# The short X.Y version.
version = '2.2.3'
version = '2.2.4'
# The full version, including alpha/beta/rc tags.
release = '2.2.3'
release = '2.2.4'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion pycaption/scc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _handle_double_command(self, word):
# same as the first.
# Also like codes, Special Characters are always doubled up,
# with only one member of each pair being displayed.
if word in COMMANDS or _is_pac_command(word) or word in SPECIAL_CHARS:
if word in COMMANDS or _is_pac_command(word) or word in SPECIAL_CHARS or word in EXTENDED_CHARS:
if word == self.last_command:
self.last_command = ''
return True
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name='pycaption',
version='2.2.3',
version='2.2.4.dev',
description='Closed caption converter',
long_description=open(README_PATH).read(),
author='Joe Norton',
Expand Down
2 changes: 1 addition & 1 deletion tests/test_scc.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def test_freeze_rollup_captions_contents(self, sample_scc_roll_up_ru2):
'WE SERVE.',
'®°½',
'ABû',
'ÁÁÉÓ¡',
'ÁÉÓ¡',
"WHERE YOU'RE STANDING NOW,",
"LOOKING OUT THERE, THAT'S AL",
'THE CROWD.',
Expand Down
Loading