p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

Update describe function limits and best practices

Open Jextic opened this issue 3 months ago • 6 comments

Increasing access

A new lang parameter will be added to ensure screen readers can programmatically identify the language of the text for the describe() and describeElement(). This will ensure screen readers (mostly for Windows users) can change to the proper screen reader voice language.

Most appropriate sub-area of p5.js?

  • [x] Accessibility
  • [ ] Color
  • [ ] Core/Environment/Rendering
  • [ ] Data
  • [ ] DOM
  • [ ] Events
  • [ ] Image
  • [ ] IO
  • [ ] Math
  • [ ] Typography
  • [ ] Utilities
  • [ ] WebGL
  • [ ] Build process
  • [ ] Unit testing
  • [ ] Internationalization
  • [ ] Friendly errors
  • [ ] Other (specify if possible)

Feature enhancement details

This pertains to one of the items for issue #9100.

The contributor documentations need to be updated to include these key guidelines:

  1. TTS engines cannot reliably pronounce transliterations of languages. This can make it hard for the screen reader users to understand the text for the describe functions. Our current workaround to resolve this is to encourage sketch creators to use their native script language when writing the text for describe functions.

  2. macOS VoiceOver ignores the lang attribute completely so Latin-script languages (Spanish, German, French, etc) will be read with the English voice so it's likely that words won't be pronounced correctly.

Jextic avatar Aug 21 '26 08:08 Jextic

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms.

For guidance on contributing, check out our contributing guidelines and other resources for contributors. 💬 If you have questions or need support, feel free to join the Processing Foundation Forum or visit our Community page. 📜 Please also review our Code of Conduct to understand our community standards. Thank You!

welcome[bot] avatar Aug 21 '26 08:08 welcome[bot]

Hi @perminder-17 , I would like to work on this issue as its a new and very interesting area to me

thanks ...

Ayush4958 avatar Aug 21 '26 13:08 Ayush4958

Assigned, thanks for taking this up @Ayush4958

perminder-17 avatar Aug 21 '26 18:08 perminder-17

Assigned, thanks for taking this up @Ayush4958

thanks, I will work on this and will raise a PR for it

Ayush4958 avatar Aug 21 '26 18:08 Ayush4958

Hiii @perminder-17 and @Ayush4958! I’ve been using p5.js for a while and really enjoy creating with it :) I’d love to start contributing, and this accessibility improvement caught my interest as a potential first contribution....

I noticed there’s already a PR for this issue. Is there any remaining work or a small follow-up I could help with? I’d be happy to contribute without duplicating the existing work. Thanks!

ptr25 avatar Oct 28 '26 21:10 ptr25

 I noticed there’s already a PR for this issue. Is there any remaining work or a small follow-up I could help with? I’d be happy to contribute without duplicating the existing work. Thanks!

Although PR already solves this issue and it doesn't require any follow up, I would recommend joining the discord server to get started as contributor

Ayush4958 avatar Oct 28 '26 21:10 Ayush4958