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

fix(WebVTT): Add support to  , ‎ and ‏ #4920

Merged
merged 2 commits into from
Jan 20, 2023

Conversation

avelad
Copy link
Member

@avelad avelad commented Jan 20, 2023

No description provided.

@avelad avelad requested review from theodab and joeyparrish January 20, 2023 10:13
@avelad avelad added type: bug Something isn't working correctly component: WebVTT The issue involves WebVTT subtitles specifically labels Jan 20, 2023
@avelad avelad added this to the v4.4 milestone Jan 20, 2023
@avelad avelad added the priority: P2 Smaller impact or easy workaround label Jan 20, 2023
@github-actions
Copy link
Contributor

Incremental code coverage: 100.00%

@@ -955,10 +955,13 @@ shaka.text.VttTextParser = class {
'>': '>',
'"': '"',
''': '\'',
' ': ' ',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To preserve the non-breaking space, use '\u{a0}'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@@ -955,10 +955,13 @@ shaka.text.VttTextParser = class {
'>': '>',
'"': '"',
''': '\'',
' ': ' ',
'‎': '',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left-to-right mark in unicode is '\u{200e}'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@@ -955,10 +955,13 @@ shaka.text.VttTextParser = class {
'>': '>',
'"': '"',
''': '\'',
' ': ' ',
'‎': '',
'‏': '',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right-to-left mark in unicode is '\u{200f}'

This could be important for layout of multi-lingual text in some RTL languages.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@avelad avelad requested a review from joeyparrish January 20, 2023 22:21
@avelad avelad merged commit 726ef42 into shaka-project:main Jan 20, 2023
@avelad avelad deleted the webvtt-nbsp-lrm-rlm branch January 23, 2023 19:45
joeyparrish added a commit that referenced this pull request Jan 30, 2023
Backported to v4.2.x, also includes #4660

Co-authored-by: Joey Parrish <[email protected]>
joeyparrish added a commit that referenced this pull request Jan 30, 2023
Backported to v4.2.x, also includes #4660

Co-authored-by: Joey Parrish <[email protected]>
joeyparrish added a commit that referenced this pull request Jan 30, 2023
Backported to v4.2.x, also includes #4660

Co-authored-by: Joey Parrish <[email protected]>
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: WebVTT The issue involves WebVTT subtitles specifically priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants