From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#41031: Add facemenu-set-strong and facemenu-set-emphasis Date: Mon, 04 May 2020 00:44:58 +0200 Message-ID: <877dxs1vv9.fsf@stefankangas.se> References: <87ees2188r.8.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="94877"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: boris@gnu.org, 41031@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 04 00:46:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVNNC-000Ob5-6H for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 May 2020 00:46:10 +0200 Original-Received: from localhost ([::1]:55758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVNNB-0001eO-5x for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 May 2020 18:46:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVNN4-0001dk-68 for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 18:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVNN3-0001Gs-Q9 for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 18:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jVNN3-0004NN-OD for bug-gnu-emacs@gnu.org; Sun, 03 May 2020 18:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 May 2020 22:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41031 X-GNU-PR-Package: emacs Original-Received: via spool by 41031-submit@debbugs.gnu.org id=B41031.158854590916748 (code B ref 41031); Sun, 03 May 2020 22:46:01 +0000 Original-Received: (at 41031) by debbugs.gnu.org; 3 May 2020 22:45:09 +0000 Original-Received: from localhost ([127.0.0.1]:58370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVNMC-0004M3-Ix for submit@debbugs.gnu.org; Sun, 03 May 2020 18:45:08 -0400 Original-Received: from ted.gofardesign.uk ([67.225.143.91]:60178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVNMA-0004LJ-Ix; Sun, 03 May 2020 18:45:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vKdRwqt7FghRCtKSsoTWjvogOU5BgOyVVtrhwT6GkKY=; b=QLdNDwYZWZliQgC/GDBAxkXjke 1ToYS1qp8BvnyFon/QLcGI3SO6FBL5bnf58TBQK57PpF2qhJMvIfnezhgyE9M8fAa43wZVQ1NMCI2 79uBThrkDeD3ydfL6DBoHHUw0po+5qvrbo/exHnLVZNYgwDjyxWYZ7LIwPu0HFrWpIe+Cwf+pCZOd VE7iOP8ihB3y7nzHnCznsKR/PaOigvJONDugXloz/3nLzCV0norTgHYFGW3pDZDCxLE1+Ws8h8w3f EY7jPR8YXTDkI+JLXRORJF8rc40O/RFf3y2nxzPwRtI8Dl/3GPSjW5HqTk3YCepU3HsrINuWobZHf 0dSrGfsg==; Original-Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:50758 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jVNM4-001BxJ-D5; Sun, 03 May 2020 18:45:00 -0400 In-Reply-To: <87ees2188r.8.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Sun, 03 May 2020 02:50:44 +0800") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179638 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tags 41031 + patch found 41031 28.0.50 thanks =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > Just the other day I was editing an .html file, and noticed > > M-o b facemenu-set-bold > M-o d facemenu-set-default > M-o i facemenu-set-italic > M-o l facemenu-set-bold-italic > M-o o facemenu-set-face > M-o u facemenu-set-underline > > hadn't been updated to also include "strong" and "em", > which we are now supposed to use in preference to > "" (bold) and "" (italic), that it currently only inserts. Indeed, we should probably prefer those tags (even for HTML5). They are also more accessible to people on screen readers. Could you please test the attached patch and see that it resolves the issue? Best regards, Stefan Kangas --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Prefer-strong-and-em-to-b-and-i-in-html-mode.patch >From 5cc040b8552463db67aede1aa94d716e0a09e76a Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 4 May 2020 00:35:07 +0200 Subject: [PATCH] Prefer 'strong' and 'em' to 'b' and 'i' in html-mode * lisp/textmodes/sgml-mode.el (html-face-tag-alist): Prefer inserting the '' and '' tags to ' and '' in html-mode. (Bug#41031) * lisp/textmodes/sgml-mode.el (html-mode): Update docstring to do the same. --- lisp/textmodes/sgml-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 9b29b844d0..b5ff6a6967 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -1852,8 +1852,8 @@ html-mode-map "Keymap for commands for use in HTML mode.") (defvar html-face-tag-alist - '((bold . "b") - (italic . "i") + '((bold . "strong") + (italic . "em") (underline . "u") (mode-line . "rev")) "Value of `sgml-face-tag-alist' for HTML mode.") @@ -2363,7 +2363,7 @@ html-mode

Paragraphs only need an opening tag. Line breaks and multiple spaces are ignored unless the text is

preformatted.
Text can be marked as -bold, italic or underlined using the normal M-o or +bold, italic or underlined using the normal M-o or Edit/Text Properties/Face commands. Pages can have named points and can link other points -- 2.26.2 --=-=-=--