Skip to content

Commit

Permalink
Merge pull request #326 from pbs/OCTO-10927-skip-duplicated-extended-…
Browse files Browse the repository at this point in the history
…characters

Octo 10927 skip duplicated extended characters
  • Loading branch information
OlteanuRares authored Feb 6, 2024
2 parents d8e3cee + bb2d13c commit 213c663
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
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

0 comments on commit 213c663

Please sign in to comment.