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

Supporting vertical writing captions #9

Open
alexandercerutti opened this issue Oct 23, 2023 · 0 comments
Open

Supporting vertical writing captions #9

alexandercerutti opened this issue Oct 23, 2023 · 0 comments

Comments

@alexandercerutti
Copy link
Owner

The vertical-writing mode is not supported in the current situation, either in WEBVTT or the upcoming TTML Renderer. In order to support it, we should change the CaptionsRenderer in order to paint them.

Also, we should change the RenderingModifiers in order to support eventual writing modifiers.

For what concerns WEBVTT, these are for sure the affected rows:

// case "vertical": {
// if (isVerticalStandard(value)) {
// modifier.vertical = value;
// }
// break;
// }

case "start":
case "end": {
/**
* @TODO to implement based on base direction
* base direction is detected with
*
* U+200E LEFT-TO-RIGHT MARK ---> start: "line-left", end: "line-right"
* U+200F RIGHT-TO-LEFT MARK ---> start: "line-right", end: "line-left"
*/
break;
}

/**
* @TODO support vertical in renderer
* along with a new property "writing mode"
*/
// private vertical?: HORIZONTAL | GROWING_LEFT | GROWING_RIGHT = HORIZONTAL;

In order to support vertical writing, this resource might be considered valid. It contains W3C References for CSS, to which we might translate RenderingModifiers: https://w3c.github.io/i18n-drafts/articles/vertical-text/index.en

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant