source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: mandoc:
Date: Wed, 6 Jul 2022 11:06:10 -0500 (EST)	[thread overview]
Message-ID: <336673856c0d8f78@mandoc.bsd.lv> (raw)

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


                 reply	other threads:[~2022-07-06 16:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=336673856c0d8f78@mandoc.bsd.lv \
    --to=schwarze@mandoc.bsd.lv \
    --cc=source@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).