From unknown Fri Sep 19 21:16:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28142: lisp/man.el: multi-lingual SEE ALSO Resent-From: =?UTF-8?Q?Gr=C3=A9gory_?= =?UTF-8?Q?Mouni=C3=A9?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Aug 2017 20:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28142 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 28142@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150308887821301 (code B ref -1); Fri, 18 Aug 2017 20:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2017 20:41:18 +0000 Received: from localhost ([127.0.0.1]:44680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dio50-0005XV-Bf for submit@debbugs.gnu.org; Fri, 18 Aug 2017 16:41:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dio4y-0005XH-A4 for submit@debbugs.gnu.org; Fri, 18 Aug 2017 16:41:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dio4s-0003hI-4i for submit@debbugs.gnu.org; Fri, 18 Aug 2017 16:41:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dio4s-0003h7-0P for submit@debbugs.gnu.org; Fri, 18 Aug 2017 16:41:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dio4q-0001dk-OU for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 16:41:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dio4n-0003dh-L1 for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 16:41:08 -0400 Received: from zm-mta-out-1.u-ga.fr ([152.77.200.56]:44108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dio4n-0003cs-Cv for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 16:41:05 -0400 Received: from zm-mta-out.u-ga.fr (zm-mta-out.u-ga.fr [152.77.200.58]) by zm-mta-out-1.u-ga.fr (Postfix) with ESMTP id 4A69FA5183 for ; Fri, 18 Aug 2017 22:41:02 +0200 (CEST) Received: from smtps.univ-grenoble-alpes.fr (mailhost.u-ga.fr [152.77.1.30]) by zm-mta-out.u-ga.fr (Postfix) with ESMTP id 52F72E0097 for ; Fri, 18 Aug 2017 22:41:04 +0200 (CEST) Received: from [192.168.0.15] (unknown [62.147.173.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mounieg@univ-grenoble-alpes.fr) by smtps.univ-grenoble-alpes.fr (Postfix) with ESMTPSA id 01F3E125EB7 for ; Fri, 18 Aug 2017 22:41:02 +0200 (CEST) From: =?UTF-8?Q?Gr=C3=A9gory_?= =?UTF-8?Q?Mouni=C3=A9?= Message-ID: <0d5c2f1b-e2ae-6d2a-1f98-6822944ea946@imag.fr> Date: Fri, 18 Aug 2017 22:41:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------8984172F92B69E2E5B33E0FC" Content-Language: en-US X-Greylist: Whitelist-UJF SMTP Authentifie (mounieg@univ-grenoble-alpes.fr) via submission-587 ACL (111) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) This is a multi-part message in MIME format. --------------8984172F92B69E2E5B33E0FC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Using Debian base manpages as reference, this patch add support for "SEE ALSO" section detection in man.el in several languages. It adds FR, DE, ES, PT, IT, PL, TR, JA, ZH_CN, ZH_TW (in this order in the regexp) The patch just change the regexp. It has to use grouping \( \) for correct ^ (begin of line) handling. --------------8984172F92B69E2E5B33E0FC Content-Type: text/x-patch; name="0001-multi-lingual-SEE-ALSO-man-section-detection.patch" Content-Disposition: attachment; filename="0001-multi-lingual-SEE-ALSO-man-section-detection.patch" Content-Transfer-Encoding: quoted-printable >From da7d15d9e2eee70523252518482f88e3927e8cd3 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Gr=3DC3=3DA9gory=3D20Mouni=3DC3=3DA9?=3D Date: Fri, 18 Aug 2017 22:21:14 +0200 Subject: [PATCH] multi-lingual SEE ALSO man section detection * lisp/man.el Add support for SEE ALSO section detection in several langages: French, German, Spanish, Portugese, Italian, Polish, Turkish, Japanese, Chinese CN, Chinese TW. Copyright-paperwork-exempt: yes --- lisp/man.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/man.el b/lisp/man.el index 13efc21b03..c7d8c4089d 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -295,7 +295,7 @@ Man-page-header-regexp (defvar Man-heading-regexp "^\\([[:upper:]][[:upper:]0-9 /-]+\\)$" "Regular expression describing a manpage heading entry.") =20 -(defvar Man-see-also-regexp "SEE ALSO" +(defvar Man-see-also-regexp "\\(SEE ALSO\\|VOIR AUSSI\\|SIEHE AUCH\\|V=C3= =89ASE TAMBI=C3=89N\\|VEJA TAMB=C3=89M\\|VEDERE ANCHE\\|ZOBACZ TAK=C5=BBE= \\|=C4=B0LG=C4=B0L=C4=B0 BELGELER\\|=E5=8F=82=E7=85=A7\\|=E5=8F=82=E8=A7=81= SEE ALSO\\|=E5=8F=83=E8=A6=8B SEE ALSO\\)" "Regular expression for SEE ALSO heading (or your equivalent). This regexp should not start with a `^' character.") =20 --=20 2.14.1 --------------8984172F92B69E2E5B33E0FC-- From unknown Fri Sep 19 21:16:36 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?Gr=C3=A9gory_?= =?UTF-8?Q?Mouni=C3=A9?= Subject: bug#28142: closed (Re: bug#28142: lisp/man.el: multi-lingual SEE ALSO) Message-ID: References: <83y3q667vb.fsf@gnu.org> <0d5c2f1b-e2ae-6d2a-1f98-6822944ea946@imag.fr> X-Gnu-PR-Message: they-closed 28142 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 28142@debbugs.gnu.org Date: Sat, 26 Aug 2017 08:40:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1503736802-32127-1" This is a multi-part message in MIME format... ------------=_1503736802-32127-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #28142: lisp/man.el: multi-lingual SEE ALSO which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 28142@debbugs.gnu.org. --=20 28142: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28142 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1503736802-32127-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 28142-done) by debbugs.gnu.org; 26 Aug 2017 08:39:26 +0000 Received: from localhost ([127.0.0.1]:55908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlWco-0008LP-49 for submit@debbugs.gnu.org; Sat, 26 Aug 2017 04:39:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlWcm-0008LC-8I for 28142-done@debbugs.gnu.org; Sat, 26 Aug 2017 04:39:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlWcc-0006zo-Pc for 28142-done@debbugs.gnu.org; Sat, 26 Aug 2017 04:39:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlWcc-0006zf-MV; Sat, 26 Aug 2017 04:39:14 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4468 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dlWcc-0003oI-2X; Sat, 26 Aug 2017 04:39:14 -0400 Date: Sat, 26 Aug 2017 11:39:04 +0300 Message-Id: <83y3q667vb.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Gr=C3=A9gory_Mouni=C3=A9?= In-reply-to: <0d5c2f1b-e2ae-6d2a-1f98-6822944ea946@imag.fr> (Gregory.Mounie@imag.fr) Subject: Re: bug#28142: lisp/man.el: multi-lingual SEE ALSO References: <0d5c2f1b-e2ae-6d2a-1f98-6822944ea946@imag.fr> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28142-done Cc: 28142-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Grégory Mounié > > Date: Fri, 18 Aug 2017 22:41:01 +0200 > > Using Debian base manpages as reference, this patch add support for > "SEE ALSO" section detection in man.el in several languages. > > It adds FR, DE, ES, PT, IT, PL, TR, JA, ZH_CN, ZH_TW (in this order in > the regexp) > > The patch just change the regexp. It has to use grouping \( \) for > correct ^ (begin of line) handling. Thanks, pushed. ------------=_1503736802-32127-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Aug 2017 20:41:18 +0000 Received: from localhost ([127.0.0.1]:44680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dio50-0005XV-Bf for submit@debbugs.gnu.org; Fri, 18 Aug 2017 16:41:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dio4y-0005XH-A4 for submit@debbugs.gnu.org; Fri, 18 Aug 2017 16:41:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dio4s-0003hI-4i for submit@debbugs.gnu.org; Fri, 18 Aug 2017 16:41:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dio4s-0003h7-0P for submit@debbugs.gnu.org; Fri, 18 Aug 2017 16:41:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dio4q-0001dk-OU for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 16:41:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dio4n-0003dh-L1 for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 16:41:08 -0400 Received: from zm-mta-out-1.u-ga.fr ([152.77.200.56]:44108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dio4n-0003cs-Cv for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 16:41:05 -0400 Received: from zm-mta-out.u-ga.fr (zm-mta-out.u-ga.fr [152.77.200.58]) by zm-mta-out-1.u-ga.fr (Postfix) with ESMTP id 4A69FA5183 for ; Fri, 18 Aug 2017 22:41:02 +0200 (CEST) Received: from smtps.univ-grenoble-alpes.fr (mailhost.u-ga.fr [152.77.1.30]) by zm-mta-out.u-ga.fr (Postfix) with ESMTP id 52F72E0097 for ; Fri, 18 Aug 2017 22:41:04 +0200 (CEST) Received: from [192.168.0.15] (unknown [62.147.173.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mounieg@univ-grenoble-alpes.fr) by smtps.univ-grenoble-alpes.fr (Postfix) with ESMTPSA id 01F3E125EB7 for ; Fri, 18 Aug 2017 22:41:02 +0200 (CEST) To: bug-gnu-emacs@gnu.org From: =?UTF-8?Q?Gr=c3=a9gory_Mouni=c3=a9?= Subject: lisp/man.el: multi-lingual SEE ALSO Message-ID: <0d5c2f1b-e2ae-6d2a-1f98-6822944ea946@imag.fr> Date: Fri, 18 Aug 2017 22:41:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------8984172F92B69E2E5B33E0FC" Content-Language: en-US X-Greylist: Whitelist-UJF SMTP Authentifie (mounieg@univ-grenoble-alpes.fr) via submission-587 ACL (111) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) This is a multi-part message in MIME format. --------------8984172F92B69E2E5B33E0FC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Using Debian base manpages as reference, this patch add support for "SEE ALSO" section detection in man.el in several languages. It adds FR, DE, ES, PT, IT, PL, TR, JA, ZH_CN, ZH_TW (in this order in the regexp) The patch just change the regexp. It has to use grouping \( \) for correct ^ (begin of line) handling. --------------8984172F92B69E2E5B33E0FC Content-Type: text/x-patch; name="0001-multi-lingual-SEE-ALSO-man-section-detection.patch" Content-Disposition: attachment; filename="0001-multi-lingual-SEE-ALSO-man-section-detection.patch" Content-Transfer-Encoding: quoted-printable >From da7d15d9e2eee70523252518482f88e3927e8cd3 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Gr=3DC3=3DA9gory=3D20Mouni=3DC3=3DA9?=3D Date: Fri, 18 Aug 2017 22:21:14 +0200 Subject: [PATCH] multi-lingual SEE ALSO man section detection * lisp/man.el Add support for SEE ALSO section detection in several langages: French, German, Spanish, Portugese, Italian, Polish, Turkish, Japanese, Chinese CN, Chinese TW. Copyright-paperwork-exempt: yes --- lisp/man.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/man.el b/lisp/man.el index 13efc21b03..c7d8c4089d 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -295,7 +295,7 @@ Man-page-header-regexp (defvar Man-heading-regexp "^\\([[:upper:]][[:upper:]0-9 /-]+\\)$" "Regular expression describing a manpage heading entry.") =20 -(defvar Man-see-also-regexp "SEE ALSO" +(defvar Man-see-also-regexp "\\(SEE ALSO\\|VOIR AUSSI\\|SIEHE AUCH\\|V=C3= =89ASE TAMBI=C3=89N\\|VEJA TAMB=C3=89M\\|VEDERE ANCHE\\|ZOBACZ TAK=C5=BBE= \\|=C4=B0LG=C4=B0L=C4=B0 BELGELER\\|=E5=8F=82=E7=85=A7\\|=E5=8F=82=E8=A7=81= SEE ALSO\\|=E5=8F=83=E8=A6=8B SEE ALSO\\)" "Regular expression for SEE ALSO heading (or your equivalent). This regexp should not start with a `^' character.") =20 --=20 2.14.1 --------------8984172F92B69E2E5B33E0FC-- ------------=_1503736802-32127-1--