-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
Incremental code coverage: 100.00% |
lib/text/vtt_text_parser.js
Outdated
@@ -955,10 +955,13 @@ shaka.text.VttTextParser = class { | |||
'>': '>', | |||
'"': '"', | |||
''': '\'', | |||
' ': ' ', |
There was a problem hiding this comment.
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}'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
lib/text/vtt_text_parser.js
Outdated
@@ -955,10 +955,13 @@ shaka.text.VttTextParser = class { | |||
'>': '>', | |||
'"': '"', | |||
''': '\'', | |||
' ': ' ', | |||
'‎': '', |
There was a problem hiding this comment.
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}'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
lib/text/vtt_text_parser.js
Outdated
@@ -955,10 +955,13 @@ shaka.text.VttTextParser = class { | |||
'>': '>', | |||
'"': '"', | |||
''': '\'', | |||
' ': ' ', | |||
'‎': '', | |||
'‏': '', |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Backported to v4.2.x, also includes #4660 Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
Backported to v4.2.x, also includes #4660 Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
Backported to v4.2.x, also includes #4660 Co-authored-by: Joey Parrish <joeyparrish@users.noreply.github.com>
No description provided.