From: "Grégory Mounié" <Gregory.Mounie@imag.fr>
To: 28142@debbugs.gnu.org
Subject: bug#28142: lisp/man.el: multi-lingual SEE ALSO
Date: Fri, 18 Aug 2017 22:41:01 +0200 [thread overview]
Message-ID: <0d5c2f1b-e2ae-6d2a-1f98-6822944ea946@imag.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 329 bytes --]
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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-multi-lingual-SEE-ALSO-man-section-detection.patch --]
[-- Type: text/x-patch; name="0001-multi-lingual-SEE-ALSO-man-section-detection.patch", Size: 1218 bytes --]
From da7d15d9e2eee70523252518482f88e3927e8cd3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9gory=20Mouni=C3=A9?= <Gregory.Mounie@imag.fr>
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.")
-(defvar Man-see-also-regexp "SEE ALSO"
+(defvar Man-see-also-regexp "\\(SEE ALSO\\|VOIR AUSSI\\|SIEHE AUCH\\|VÉASE TAMBIÉN\\|VEJA TAMBÉM\\|VEDERE ANCHE\\|ZOBACZ TAKŻE\\|İLGİLİ BELGELER\\|参照\\|参见 SEE ALSO\\|參見 SEE ALSO\\)"
"Regular expression for SEE ALSO heading (or your equivalent).
This regexp should not start with a `^' character.")
--
2.14.1
next reply other threads:[~2017-08-18 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-18 20:41 Grégory Mounié [this message]
2017-08-26 8:39 ` bug#28142: lisp/man.el: multi-lingual SEE ALSO Eli Zaretskii
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=0d5c2f1b-e2ae-6d2a-1f98-6822944ea946@imag.fr \
--to=gregory.mounie@imag.fr \
--cc=28142@debbugs.gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.