You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data/en.yml
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -394,11 +394,11 @@ learn:
394
394
<span class = "code">text</span>, the label itself; and <span class = "code">display</span>, an optional parameter to set the visibility of the label.
395
395
accessible-labels-available-labels-li-3: >-
396
396
<a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> generates a list describing the canvas size, color,
397
-
as well as each visual element’s color, position, and the amount of area it covers within the canvas. This function's only parameter is
397
+
as well as each visual element’s color, position, and the area it covers within the canvas. This function’s only parameter is
398
398
<span class = "code">display</span>, an optional parameter to set the visibility of the label.
399
399
accessible-labels-available-labels-li-4: >-
400
400
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>, like <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>,
401
-
generates a list of the canvas' qualities and its elements. Along with this list, this function also creates an HTML table that plots the
401
+
generates a list of the canvas' qualities and elements. Along with this list, this function also creates an HTML table that plots the
402
402
spatial location of each shape within the canvas. This function's only parameter is <span class = "code">display</span>, an optional parameter
403
403
to set the visibility of the label.
404
404
accessible-labels-prerequisites: Prerequisites
@@ -413,7 +413,7 @@ learn:
413
413
accessible-labels-steps-for-labeling: Steps for labeling your p5.js code
414
414
accessible-labels-steps-for-labeling-step-1: 1. Plan your labeling strategy
415
415
accessible-labels-steps-for-labeling-step-1-1: >-
416
-
Your labeling strategy will change based on your project's complexity and purpose.
416
+
Your labeling strategy will change based on your project’s complexity and purpose.
417
417
accessible-labels-steps-for-labeling-step-1-2: >-
418
418
No matter how complicated your project may be, always provide a brief description of your canvas in
419
419
<a class = "code" href = "https://p5js.org/reference/#/p5/setup">setup()</a> using the
@@ -424,7 +424,7 @@ learn:
424
424
and provide a 1-3 sentence description of your canvas in its <span class = "code">text</span> parameter. This description should only provide details about
425
425
the visual elements of your canvas.
426
426
accessible-labels-steps-for-labeling-step-1-4: >-
427
-
You do not need to begin your description with "A p5 canvas element..." or anything similar, since the
427
+
As stated previously, you do not need to begin your description with “A p5 canvas element…” or anything similar, since the
428
428
screen reader will declare the element type before reading your label.
429
429
accessible-labels-steps-for-labeling-step-1-5: >-
430
430
Along with the <a class = "code" href = "https://p5js.org/reference/#/p5/describe">describe()</a> label, use either the
@@ -435,37 +435,37 @@ learn:
435
435
accessible-labels-steps-for-labeling-step-1-6: >-
436
436
The <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> and
437
437
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> functions can
438
-
describe what shapes are on your canvas, but they can’t interpret your intention in using the shapes. Keep context in mind when choosing
438
+
describe the shapes on your canvas, but they can’t interpret your intention in using the shapes. Keep context in mind when choosing
439
439
which function(s) to use. Is it better to describe the flower as “eight circles and a rectangle”, or as “a flower with red
440
440
petals and a green stem”? What kind of labeling will provide the best description of your canvas? If
441
441
you are creating larger visuals with many shapes, use <a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>
442
442
to label each group of shapes.
443
443
accessible-labels-steps-for-labeling-step-1-7: >-
444
444
Do not use both the <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> and
445
445
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> functions to describe the same canvas. Using both will
446
-
cause similar descriptions to appear twice, which confuses the screen readers. The same goes for
446
+
cause similar descriptions to appear twice, which is confusing to screen readers. The same goes for
447
447
using <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> or
448
448
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> with
449
449
<a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a> labels. It’s best to choose one function to
450
450
supplement your <a class = "code" href = "https://p5js.org/reference/#/p5/describe">describe()</a> label.
Has complex element layouts that cannot be accurately labeled with the <a class = "code" href = "https://p5js.org/reference/#/p5/describe">describe()</a>,
462
462
<a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>,
463
463
<a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>, or
464
464
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> functions
For more information about fallback content, visit <a href = "https://www.w3.org/html/wg/wiki/DefinitionFallBackContent" target="_blank" rel="noopener noreferrer">W3C’s Wiki</a>.
467
-
For more information about complex ARIA labeling, visit <a href = "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes" target="_blank" rel="noopener noreferrer">Mozilla’s ARIA states and properties</a>
468
-
and <a href = "https://www.w3.org/TR/using-aria/" target="_blank" rel="noopener noreferrer">W3C's Using ARIA</a>.
467
+
For more information about complex ARIA labeling, visit <a href = "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes" target="_blank" rel="noopener noreferrer">Mozilla’s "ARIA states and properties"</a>
468
+
and <a href = "https://www.w3.org/TR/using-aria/" target="_blank" rel="noopener noreferrer">W3C’s "Using ARIA"</a>.
469
469
accessible-labels-steps-for-labeling-step-2: 2. Write your main and supporting label(s)
470
470
accessible-labels-steps-for-labeling-step-2-1: >-
471
471
Begin labeling your canvas using the function(s) that best serve your users.
@@ -498,7 +498,7 @@ learn:
498
498
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> and <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
499
499
generate their information based on the code of the visual element, such as its size, color, and shape.
500
500
Unlike <a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, you only need to use one label to describe all
501
-
your canvas' visual elements.
501
+
your canvas's visual elements.
502
502
accessible-labels-steps-for-labeling-step-2-animated: Projects with animated or interactive elements
Copy file name to clipboardExpand all lines: src/data/es.yml
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -406,11 +406,11 @@ learn:
406
406
<span class = "code">text</span>, the label itself; and <span class = "code">display</span>, an optional parameter to set the visibility of the label.
407
407
accessible-labels-available-labels-li-3: >-
408
408
<a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> generates a list describing the canvas size, color,
409
-
as well as each visual element’s color, position, and the amount of area it covers within the canvas. This function's only parameter is
409
+
as well as each visual element’s color, position, and the area it covers within the canvas. This function’s only parameter is
410
410
<span class = "code">display</span>, an optional parameter to set the visibility of the label.
411
411
accessible-labels-available-labels-li-4: >-
412
412
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>, like <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>,
413
-
generates a list of the canvas' qualities and its elements. Along with this list, this function also creates an HTML table that plots the
413
+
generates a list of the canvas' qualities and elements. Along with this list, this function also creates an HTML table that plots the
414
414
spatial location of each shape within the canvas. This function's only parameter is <span class = "code">display</span>, an optional parameter
415
415
to set the visibility of the label.
416
416
accessible-labels-prerequisites: Prerequisites
@@ -425,7 +425,7 @@ learn:
425
425
accessible-labels-steps-for-labeling: Steps for labeling your p5.js code
426
426
accessible-labels-steps-for-labeling-step-1: 1. Plan your labeling strategy
427
427
accessible-labels-steps-for-labeling-step-1-1: >-
428
-
Your labeling strategy will change based on your project's complexity and purpose.
428
+
Your labeling strategy will change based on your project’s complexity and purpose.
429
429
accessible-labels-steps-for-labeling-step-1-2: >-
430
430
No matter how complicated your project may be, always provide a brief description of your canvas in
431
431
<a class = "code" href = "https://p5js.org/reference/#/p5/setup">setup()</a> using the
@@ -436,7 +436,7 @@ learn:
436
436
and provide a 1-3 sentence description of your canvas in its <span class = "code">text</span> parameter. This description should only provide details about
437
437
the visual elements of your canvas.
438
438
accessible-labels-steps-for-labeling-step-1-4: >-
439
-
You do not need to begin your description with "A p5 canvas element..." or anything similar, since the
439
+
As stated previously, you do not need to begin your description with “A p5 canvas element…” or anything similar, since the
440
440
screen reader will declare the element type before reading your label.
441
441
accessible-labels-steps-for-labeling-step-1-5: >-
442
442
Along with the <a class = "code" href = "https://p5js.org/reference/#/p5/describe">describe()</a> label, use either the
@@ -447,37 +447,37 @@ learn:
447
447
accessible-labels-steps-for-labeling-step-1-6: >-
448
448
The <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> and
449
449
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> functions can
450
-
describe what shapes are on your canvas, but they can’t interpret your intention in using the shapes. Keep context in mind when choosing
450
+
describe the shapes on your canvas, but they can’t interpret your intention in using the shapes. Keep context in mind when choosing
451
451
which function(s) to use. Is it better to describe the flower as “eight circles and a rectangle”, or as “a flower with red
452
452
petals and a green stem”? What kind of labeling will provide the best description of your canvas? If
453
453
you are creating larger visuals with many shapes, use <a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>
454
454
to label each group of shapes.
455
455
accessible-labels-steps-for-labeling-step-1-7: >-
456
456
Do not use both the <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> and
457
457
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> functions to describe the same canvas. Using both will
458
-
cause similar descriptions to appear twice, which confuses the screen readers. The same goes for
458
+
cause similar descriptions to appear twice, which is confusing to screen readers. The same goes for
459
459
using <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a> or
460
460
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> with
461
461
<a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a> labels. It’s best to choose one function to
462
462
supplement your <a class = "code" href = "https://p5js.org/reference/#/p5/describe">describe()</a> label.
Has complex element layouts that cannot be accurately labeled with the <a class = "code" href = "https://p5js.org/reference/#/p5/describe">describe()</a>,
474
474
<a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>,
475
475
<a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>, or
476
476
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> functions
For more information about fallback content, visit <a href = "https://www.w3.org/html/wg/wiki/DefinitionFallBackContent" target="_blank" rel="noopener noreferrer">W3C’s Wiki</a>.
479
-
For more information about complex ARIA labeling, visit <a href = "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes" target="_blank" rel="noopener noreferrer">Mozilla’s ARIA states and properties</a>
480
-
and <a href = "https://www.w3.org/TR/using-aria/" target="_blank" rel="noopener noreferrer">W3C's Using ARIA</a>.
479
+
For more information about complex ARIA labeling, visit <a href = "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes" target="_blank" rel="noopener noreferrer">Mozilla’s "ARIA states and properties"</a>
480
+
and <a href = "https://www.w3.org/TR/using-aria/" target="_blank" rel="noopener noreferrer">W3C’s "Using ARIA"</a>.
481
481
accessible-labels-steps-for-labeling-step-2: 2. Write your main and supporting label(s)
482
482
accessible-labels-steps-for-labeling-step-2-1: >-
483
483
Begin labeling your canvas using the function(s) that best serve your users.
@@ -510,15 +510,15 @@ learn:
510
510
<a class = "code" href = "https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> and <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
511
511
generate their information based on the code of the visual element, such as its size, color, and shape.
512
512
Unlike <a class = "code" href = "https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, you only need to use one label to describe all
513
-
your canvas' visual elements.
513
+
your canvas's visual elements.
514
514
accessible-labels-steps-for-labeling-step-2-animated: Projects with animated or interactive elements
If a canvas element is animated and/or interactive, represent its current state or qualities in the label.
523
523
So long as you place the functions within the <a class = "code" href = "https://p5js.org/reference/#/p5/draw">draw()</a> function,
524
524
they will automatically update with the shape’s new information (except for <a class = "code" href = "https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
0 commit comments