source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc:
@ 2022-07-06 16:06 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2022-07-06 16:06 UTC (permalink / raw)
  To: source

Log Message:
-----------
https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/ says:
"Start names with a capital letter; 
it helps some screen readers speak them with appropriate inflection."
Anna Vyalkova already did that correctly when sending patches,
but i ruined it when committing, so fix it now.

Modified Files:
--------------
    mandoc:
        cgi.c
        man_html.c
        mdoc_html.c

Revision Data
-------------
Index: mdoc_html.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/mdoc_html.c,v
retrieving revision 1.349
retrieving revision 1.350
diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.349 -r1.350
--- mdoc_html.c
+++ mdoc_html.c
@@ -456,7 +456,7 @@ mdoc_root_post(const struct roff_meta *m
 	struct tag	*t;
 
 	t = print_otag(h, TAG_DIV, "cr?", "foot", "doc-pagefooter",
-	    "aria-label", "manual footer line");
+	    "aria-label", "Manual footer line");
 
 	print_otag(h, TAG_SPAN, "c", "foot-left");
 	print_stagq(h, t);
@@ -489,7 +489,7 @@ mdoc_root_pre(const struct roff_meta *me
 		    meta->title, meta->msec);
 
 	t = print_otag(h, TAG_DIV, "cr?", "head", "doc-pageheader",
-	    "aria-label", "manual header line");
+	    "aria-label", "Manual header line");
 
 	print_otag(h, TAG_SPAN, "c", "head-ltitle");
 	print_text(h, title);
Index: man_html.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/man_html.c,v
retrieving revision 1.183
retrieving revision 1.184
diff -Lman_html.c -Lman_html.c -u -p -r1.183 -r1.184
--- man_html.c
+++ man_html.c
@@ -271,7 +271,7 @@ man_root_pre(const struct roff_meta *man
 	mandoc_asprintf(&title, "%s(%s)", man->title, man->msec);
 
 	t = print_otag(h, TAG_DIV, "cr?", "head", "doc-pageheader",
-	    "aria-label", "manual header line");
+	    "aria-label", "Manual header line");
 
 	print_otag(h, TAG_SPAN, "c", "head-ltitle");
 	print_text(h, title);
@@ -294,7 +294,7 @@ man_root_post(const struct roff_meta *ma
 	struct tag	*t;
 
 	t = print_otag(h, TAG_DIV, "cr?", "foot", "doc-pagefooter",
-	    "aria-label", "manual footer line");
+	    "aria-label", "Manual footer line");
 
 	print_otag(h, TAG_SPAN, "c", "foot-left");
 	print_stagq(h, t);
Index: cgi.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/cgi.c,v
retrieving revision 1.178
retrieving revision 1.179
diff -Lcgi.c -Lcgi.c -u -p -r1.178 -r1.179
--- cgi.c
+++ cgi.c
@@ -462,7 +462,7 @@ resp_searchform(const struct req *req, e
 
 	/* Write section selector. */
 
-	puts("    <select name=\"sec\" aria-label=\"manual section\">");
+	puts("    <select name=\"sec\" aria-label=\"Manual section\">");
 	for (i = 0; i < sec_MAX; i++) {
 		printf("      <option value=\"%s\"", sec_numbers[i]);
 		if (NULL != req->q.sec &&
@@ -564,7 +564,7 @@ pg_index(const struct req *req)
 	resp_searchform(req, FOCUS_QUERY);
 	printf("</header>\n"
 	       "<main>\n"
-	       "<p role=\"doc-notice\" aria-label=\"usage\">\n"
+	       "<p role=\"doc-notice\" aria-label=\"Usage\">\n"
 	       "This web interface is documented in the\n"
 	       "<a class=\"Xr\" href=\"/%s%sman.cgi.8\""
 	       " aria-label=\"man dot CGI, section 8\">man.cgi(8)</a>\n"
@@ -588,7 +588,7 @@ pg_noresult(const struct req *req, int c
 	resp_searchform(req, FOCUS_QUERY);
 	puts("</header>");
 	puts("<main>");
-	puts("<p role=\"doc-notice\" aria-label=\"no result\">");
+	puts("<p role=\"doc-notice\" aria-label=\"No result\">");
 	puts(user_msg);
 	puts("</p>");
 	puts("</main>");
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-06 16:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-06 16:06 mandoc: schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).