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

Meta: use aria-description instead of aria-label #340

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .htmlcheckerfilter
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.*Text run is not in Unicode Normalization Form C.*
.*Document uses the Unicode Private Use Area.*
.*File was not checked. Files must have .html, .xhtml, .htm, or .xht extensions.*
.*Possible misuse of “aria-label”. \(If you disagree with this warning, file an issue report or send e-mail to [email protected].\).*
8 changes: 4 additions & 4 deletions visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ def format_index(name, row_length, lang, bmp, duplicates, byte_rule):
else:
astral_seen.add(code_point)
contiguous = previous and previous + 1 == code_point
out_file.write(("<td class='%s %s%s%s' aria-label='%s'><dl><dt>%d<dd lang=%s>%s<dd>U+%04X</dl>" % ("contiguous" if contiguous else "discontiguous", classify(code_point), " duplicate" if duplicate else "", check_compatibility(code_point), aria(code_point, contiguous, duplicate), pointer, lang, format_code_point(code_point), code_point)))
out_file.write(("<td class='%s %s%s%s' aria-description='%s'><dl><dt>%d<dd lang=%s>%s<dd>U+%04X</dl>" % ("contiguous" if contiguous else "discontiguous", classify(code_point), " duplicate" if duplicate else "", check_compatibility(code_point), aria(code_point, contiguous, duplicate), pointer, lang, format_code_point(code_point), code_point)))
else:
out_file.write(("<td class=unmapped aria-label=Unmapped><dl><dt>%d<dd>\uFFFD<dd>\u00A0</dl>" % pointer))
out_file.write(("<td class=unmapped aria-description=Unmapped><dl><dt>%d<dd>\uFFFD<dd>\u00A0</dl>" % pointer))
previous = code_point
pointer += 1
if pointer % row_length == 0:
Expand Down Expand Up @@ -241,9 +241,9 @@ def format_coverage(name, lang, bmp, duplicates):
elif pointer is not None:
duplicate = code_point in duplicates
contiguous = previous and previous + 1 == pointer
out_file.write(("<td class='%s %s%s%s' aria-label='%s'><dl><dt>U+%04X<dd lang=%s>%s<dd>%d</dl>" % ("contiguous" if contiguous else "discontiguous", classify(code_point), " duplicate" if duplicate else "", check_compatibility(code_point), aria(code_point, contiguous, duplicate), code_point, lang, format_code_point(code_point), pointer)))
out_file.write(("<td class='%s %s%s%s' aria-description='%s'><dl><dt>U+%04X<dd lang=%s>%s<dd>%d</dl>" % ("contiguous" if contiguous else "discontiguous", classify(code_point), " duplicate" if duplicate else "", check_compatibility(code_point), aria(code_point, contiguous, duplicate), code_point, lang, format_code_point(code_point), pointer)))
else:
out_file.write(("<td class=unmapped aria-label=Unmapped><dl><dt>U+%04X<dd>\uFFFD<dd>\u00A0</dl>" % code_point))
out_file.write(("<td class=unmapped aria-description=Unmapped><dl><dt>U+%04X<dd>\uFFFD<dd>\u00A0</dl>" % code_point))
previous = pointer
out_file.write("</table>")
out_file.close()
Expand Down