Changelog
### 2.2.13
```
^^^^^^
- Mid-row codes only add spaces only if there isn't one before.
- Mid-row codes add spaces only if they affect the text in the same row (not adding if it follows break or PACS).
- Remove spaces to the end of the lines.
- Close italics on receiving another style setting command.
- Throw an CaptionReadNoCaptions error in case of empty input file are provided.
- Ignore repositioning commands which are not followed by any text before breaks.
- Mid-row codes will not add the space if it is in front of punctuation.
- Fix a bug with background codes when the InstructionNodeCreator collection is empty.
- Fix a bug WebVTT writer adding double line breaks.
```
### 2.2.12
```
^^^^^^
- Pinned nltk to 3.8.0
```
### 2.2.11
```
^^^^^^
- A space should not be placed before a mid row code if it follows a PAC command or a Tab Offset
- The backspace command should be treated like other commands and duplicates should be skipped if PAC commands are duplicated
- Prevent webvtt writer from creating a new cue in case of line break
- In case of style setting PAC which also breaks the line, we add the break first, then the style tag
```
### 2.2.10
```
^^^^^
- Yanked.
```
### 2.2.9
```
^^^^^
- Yanked.
```
### 2.2.8
```
^^^^^
- Honor backspaces on captions in scc files
- When mid-row codes which are preceded by a PAC command don't add spaces
- Mid row codes which don't follow after a PAC and don't have a style reset command before will add a space to the end of the previous text node
- Mid row codes which don't follow after a PAC and have a style reset command before will add a space to the beginning of the next text node
- Background color codes to delete the space in front
```
### 2.2.7
```
^^^^^
- The cursor moves automatically one column to the right after each character or Mid-Row Code received.
```
### 2.2.6
```
^^^^^
- Pass the caption cue time with all error messages.
```
### 2.2.5
```
^^^^^
- Yanked.
```
### 2.2.4
```
^^^^^
- Skip duplicated extended characters.
```
### 2.2.3
```
^^^^^
- Add new substitute character to ignore before extended character in SCC input files
```
### 2.2.2
```
^^^^^
- Remove support for Python 3.6 & 3.7
- Restrict SCC source files to 31 characters per line (32 will throw an exception)
- Bump readthedocs-sphinx-search from 0.3.1 to 0.3.2
- Change Apache copyright licensing (ending) copyright year
```
### 2.2.1
```
^^^^^
- Ignore the substitute character that comes before the extended character in SCC files.
```
### 2.2.0
```
^^^^^
- Added support for Python 3.11
- Added support for Beautifulsoup 4.12.2
- Remove support for Beautifulsoup < 4.12.1
- DFXP captions now end consistently with a newline
```
### 2.1.1
```
^^^^^
- Added nltk as transcript dependency
```
Links
- PyPI: https://pypi.org/project/pycaption
- Changelog: https://data.safetycli.com/changelogs/pycaption/
This PR updates pycaption from 2.1.0 to 2.2.13.
Changelog
### 2.2.13 ``` ^^^^^^ - Mid-row codes only add spaces only if there isn't one before. - Mid-row codes add spaces only if they affect the text in the same row (not adding if it follows break or PACS). - Remove spaces to the end of the lines. - Close italics on receiving another style setting command. - Throw an CaptionReadNoCaptions error in case of empty input file are provided. - Ignore repositioning commands which are not followed by any text before breaks. - Mid-row codes will not add the space if it is in front of punctuation. - Fix a bug with background codes when the InstructionNodeCreator collection is empty. - Fix a bug WebVTT writer adding double line breaks. ``` ### 2.2.12 ``` ^^^^^^ - Pinned nltk to 3.8.0 ``` ### 2.2.11 ``` ^^^^^^ - A space should not be placed before a mid row code if it follows a PAC command or a Tab Offset - The backspace command should be treated like other commands and duplicates should be skipped if PAC commands are duplicated - Prevent webvtt writer from creating a new cue in case of line break - In case of style setting PAC which also breaks the line, we add the break first, then the style tag ``` ### 2.2.10 ``` ^^^^^ - Yanked. ``` ### 2.2.9 ``` ^^^^^ - Yanked. ``` ### 2.2.8 ``` ^^^^^ - Honor backspaces on captions in scc files - When mid-row codes which are preceded by a PAC command don't add spaces - Mid row codes which don't follow after a PAC and don't have a style reset command before will add a space to the end of the previous text node - Mid row codes which don't follow after a PAC and have a style reset command before will add a space to the beginning of the next text node - Background color codes to delete the space in front ``` ### 2.2.7 ``` ^^^^^ - The cursor moves automatically one column to the right after each character or Mid-Row Code received. ``` ### 2.2.6 ``` ^^^^^ - Pass the caption cue time with all error messages. ``` ### 2.2.5 ``` ^^^^^ - Yanked. ``` ### 2.2.4 ``` ^^^^^ - Skip duplicated extended characters. ``` ### 2.2.3 ``` ^^^^^ - Add new substitute character to ignore before extended character in SCC input files ``` ### 2.2.2 ``` ^^^^^ - Remove support for Python 3.6 & 3.7 - Restrict SCC source files to 31 characters per line (32 will throw an exception) - Bump readthedocs-sphinx-search from 0.3.1 to 0.3.2 - Change Apache copyright licensing (ending) copyright year ``` ### 2.2.1 ``` ^^^^^ - Ignore the substitute character that comes before the extended character in SCC files. ``` ### 2.2.0 ``` ^^^^^ - Added support for Python 3.11 - Added support for Beautifulsoup 4.12.2 - Remove support for Beautifulsoup < 4.12.1 - DFXP captions now end consistently with a newline ``` ### 2.1.1 ``` ^^^^^ - Added nltk as transcript dependency ```Links
- PyPI: https://pypi.org/project/pycaption - Changelog: https://data.safetycli.com/changelogs/pycaption/