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

Proposed API mappings for typed ruby proposal #353

Open
aleventhal opened this issue Oct 30, 2021 · 2 comments
Open

Proposed API mappings for typed ruby proposal #353

aleventhal opened this issue Oct 30, 2021 · 2 comments

Comments

@aleventhal
Copy link
Collaborator

aleventhal commented Oct 30, 2021

In w3c/aria#1620 (comment) @cookiecrook proposes 3 <ruby> annotation types. In addition, there can be the absence of a type, which is currently the case of all ruby markup on the web. Software heuristics could be used when a type is not specified, to attempt to guess the type.

This proposal builds on what has been proposed for typeless ruby in #351 and #352. (Ruby would be expose as a description with a description-from attribute. When the Ruby type is unknown, "description-from" could be set to "ruby-annotation"). Chrome currently already implements this.

If ruby types become standardized, and the Ruby type is known, "description-from" could have a suffix that matches one of the type values in @cookiecrook's proposal, e.g. "ruby-annotation-phonetic-required", "ruby-annotation-phonetic-optional", "ruby-annotation-complementary". Having the default case use plain "ruby-annotation" would allow ATs to recognize that the author has not supplied a type, and allow a heuristic to be supplied.

@aleventhal aleventhal changed the title Future proposal in case where <rt> types become standardized Proposed API mappings for typed ruby proposal Oct 30, 2021
@cookiecrook
Copy link
Collaborator

To be clear, the linked comment in w3c/aria#1620 (comment) was a brainstorm, not a fully fleshed out proposal. Please read the linked thread for full context.

@aleventhal
Copy link
Collaborator Author

@cookiecrook yes, that's clear

This is a proposed mapping for your proposal, to help understand it more deeply.

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

No branches or pull requests

2 participants