From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 4325 invoked from network); 21 Jun 2022 12:28:09 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 21 Jun 2022 12:28:09 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id d02c079e for ; Tue, 21 Jun 2022 07:28:08 -0500 (EST) Received: from sysrq.in (sysrq.in [37.79.202.136]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id faac0cfb for ; Tue, 21 Jun 2022 07:28:01 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysrq.in; s=sysrq.in; t=1655814473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x95dUhWtMbBb0/Kn/TfBei/mzv/S6Aacg29Ep4b2ufs=; b=GUUs+qfVqjXSYTlxWapLr83JUljVOJ3ypAGJQVEyrbFT2gnXqPHH4O9gaibVefQY5eES8l DInTCZ1WO9SAA3dCLzYaMzjQnO/PmZ3/ZEnsaqdUgbPWotLleT+fvfXFCGaHEQ+DbZh7aV BKqUMsbsra4vtGuWtHNk/u6bYfgqF3GHL6g73VVkkj/rCSuJ/k2SWPac0zOOTValgpD8Cf DzGoJK3bzsHh8TAVLz00Z9QgG8lL5taJjUdBLxMoaAicDnyA7ne54g2A9SF3XIY7DpVKEV z/AzQ0hDQ1AgivomkR8jF76I46i7BsawIOgoDn4Ji8yI+hl6AK7HVDoQy8j5fg== Received: from sysrq.in (localhost [127.0.0.1]) by sysrq.in (OpenSMTPD) with ESMTPSA id 15b3b390 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 21 Jun 2022 12:27:53 +0000 (UTC) From: =?UTF-8?q?Anna=20=E2=80=9CCyberTailor=E2=80=9D?= To: tech@mandoc.bsd.lv Subject: [PATCH 4/8] man_html: Add DPUB-ARIA roles to (sub)sections Date: Tue, 21 Jun 2022 17:27:45 +0500 Message-Id: <20220621122749.11417-5-cyber@sysrq.in> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220621122749.11417-1-cyber@sysrq.in> References: <20220621122749.11417-1-cyber@sysrq.in> X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- man_html.c | 5 ++++- regress/man/IP/literal.out_html | 4 ++-- regress/man/SH/paragraph.out_html | 4 ++-- regress/man/SS/paragraph.out_html | 4 ++-- regress/man/TP/vert.out_html | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/man_html.c b/man_html.c index 5f715cf0..ee3df208 100644 --- a/man_html.c +++ b/man_html.c @@ -322,7 +322,10 @@ man_SH_pre(MAN_ARGS) switch (n->type) { case ROFFT_BLOCK: html_close_paragraph(h); - print_otag(h, TAG_SECTION, "c", class); + if (n->tok == MAN_SH) + print_otag(h, TAG_SECTION, "cr", class, "doc-part"); + else + print_otag(h, TAG_SECTION, "cr", class, "doc-chapter"); break; case ROFFT_HEAD: print_otag_id(h, tag, class, n); diff --git a/regress/man/IP/literal.out_html b/regress/man/IP/literal.out_html index ceb26a56..caf883f4 100644 --- a/regress/man/IP/literal.out_html +++ b/regress/man/IP/literal.out_html @@ -17,7 +17,7 @@ text literal paragraph regular text -
+

regular text

@@ -33,7 +33,7 @@ text

new regular paragraph

-
+

regular text

diff --git a/regress/man/SH/paragraph.out_html b/regress/man/SH/paragraph.out_html index abe932b4..177b66a8 100644 --- a/regress/man/SH/paragraph.out_html +++ b/regress/man/SH/paragraph.out_html @@ -1,8 +1,8 @@
-
+

This text immediately follows a section header.

This is a paragraph.

-
+

diff --git a/regress/man/SS/paragraph.out_html b/regress/man/SS/paragraph.out_html index 22591deb..b940af89 100644 --- a/regress/man/SS/paragraph.out_html +++ b/regress/man/SS/paragraph.out_html @@ -1,9 +1,9 @@ -
+

This text immediately follows a subsection header.

This is a paragraph.

-
+

diff --git a/regress/man/TP/vert.out_html b/regress/man/TP/vert.out_html index 4499432b..551893b9 100644 --- a/regress/man/TP/vert.out_html +++ b/regress/man/TP/vert.out_html @@ -1,5 +1,5 @@
-
+

-- 2.35.1 -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv