From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Gr=C3=A9gory_?= =?UTF-8?Q?Mouni=C3=A9?= Newsgroups: gmane.emacs.bugs Subject: bug#28142: lisp/man.el: multi-lingual SEE ALSO Date: Fri, 18 Aug 2017 22:41:01 +0200 Message-ID: <0d5c2f1b-e2ae-6d2a-1f98-6822944ea946@imag.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------8984172F92B69E2E5B33E0FC" X-Trace: blaine.gmane.org 1503088938 16694 195.159.176.226 (18 Aug 2017 20:42:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Aug 2017 20:42:18 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: 28142@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 18 22:42:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dio5r-0003bW-DE for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Aug 2017 22:42:11 +0200 Original-Received: from localhost ([::1]:59334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dio5s-000247-2e for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Aug 2017 16:42:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dio5l-000237-8o for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 16:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dio5i-0004Xw-5O for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 16:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35999) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dio5h-0004Xs-Vw for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 16:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dio5h-0005YR-Ly for bug-gnu-emacs@gnu.org; Fri, 18 Aug 2017 16:42:01 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150308887821301 (code B ref -1); Fri, 18 Aug 2017 20:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Aug 2017 20:41:18 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135905 Archived-At: 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--