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

Support <rp> tag #490

Open
gkatsev opened this issue Oct 9, 2020 · 1 comment
Open

Support <rp> tag #490

gkatsev opened this issue Oct 9, 2020 · 1 comment
Labels
i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.

Comments

@gkatsev
Copy link
Collaborator

gkatsev commented Oct 9, 2020

WebVTT supports ruby but it doesn't just defer to the HTML spec for ruby handling and specifies its own handling similar to HTML.
Supporting <rp> would make it easier to use ruby in WebVTT because vendors that support it could properly position the ruby above the text and hide the ruby parenthetical and those that don't support it will be just show everything.
Right now, an implementation without ruby support without adding some kind of parenthetical would mean that you may not be able to differentiate between text and ruby text and if a ruby parenthetical is added it'll either show up as part of the ruby text or as part of the text, while not bad, is not ideal.

Output of a ruby with vtt.js
image

Firefox native:
image

Chrome native:
image

Safari native:
image

(Ruby text borrowed from https://netflixtechblog.com/implementing-japanese-subtitles-on-netflix-c165fbe61989#124a)

@xfq xfq added the i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. label Oct 24, 2021
@gkatsev
Copy link
Collaborator Author

gkatsev commented Nov 22, 2022

There was recently an in-depth discussion whether <rp> should be deprecated from HTML whatwg/html#7590. Might be worth getting feedback from those folks into adding <rp> support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.
Projects
None yet
Development

No branches or pull requests

2 participants