unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28142: lisp/man.el: multi-lingual SEE ALSO
@ 2017-08-18 20:41 Grégory Mounié
  2017-08-26  8:39 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Grégory Mounié @ 2017-08-18 20:41 UTC (permalink / raw)
  To: 28142

[-- 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#28142: lisp/man.el: multi-lingual SEE ALSO
  2017-08-18 20:41 bug#28142: lisp/man.el: multi-lingual SEE ALSO Grégory Mounié
@ 2017-08-26  8:39 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2017-08-26  8:39 UTC (permalink / raw)
  To: Grégory Mounié; +Cc: 28142-done

> From: Grégory Mounié
> 	<Gregory.Mounie@imag.fr>
> 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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-26  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-18 20:41 bug#28142: lisp/man.el: multi-lingual SEE ALSO Grégory Mounié
2017-08-26  8:39 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).