[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #63768] want configurable URL format for man page hyperlinks
From: |
John Gardner |
Subject: |
[bug #63768] want configurable URL format for man page hyperlinks |
Date: |
Fri, 17 Feb 2023 07:56:21 -0500 (EST) |
Follow-up Comment #18, bug #63768 (project groff):
[comment #17 comment #17:]
> Please review this patch.
Works like a charm. However, the inline comments could use some rewording.
Here's an amended patch:
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 917739199..581374789 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1171,14 +1171,13 @@ contains unsupported escape sequence
.de1 MR
. if ((\\n[.$] < 2) : (\\n[.$] > 3)) \
. an-style-warn .\\$0 expects 2 or 3 arguments, got \\n[.$]
-. if (\\n[an*MR-URL-format] = 1) \
-. ds an*url man:\\$1(\\$2)\" used everywhere but macOS
+. ds an*url man:\\$1(\\$2)\" used everywhere but macOS
. if (\\n[an*MR-URL-format] = 2) \
-. ds an*url man:\\$1.\\$2\" Bwana (macOS)
+. ds an*url x-man-page://\\$2/\\$1\" used in macOS since OS/X 10.3
(Panther)
. if (\\n[an*MR-URL-format] = 3) \
-. ds an*url x-man-doc://\\$2/\\$1(\\$2)\" ManOpen (macOS)
+. ds an*url man:\\$1.\\$2\" Bwana (macOS)
. if (\\n[an*MR-URL-format] = 4) \
-. ds an*url x-man-page://\\$2/\\$1\" Terminal.app, iTerm (macOS)
+. ds an*url x-man-doc://\\$2/\\$1\" ManOpen (macOS pre-2005)
. nh
. if \\n[an*do-hyperlink] \{\
. if \\n[an*is-output-html] \
diff --git a/tmac/man.local b/tmac/man.local
index 6b30900f6..be658e794 100644
--- a/tmac/man.local
+++ b/tmac/man.local
@@ -17,10 +17,10 @@
.\" A de facto standard URL format for man pages is recognized
.\" everywhere except Apple, where different macOS applications expect
.\" different formats.
-.\" 1: man:groff(1) -- package default
-.\" 2: man:groff.1 -- Bwana (macOS)
-.\" 3: x-man-doc://1/groff(1) -- ManOpen (macOS)
-.\" 4: x-man-page://1/groff -- Terminal.app, iTerm (macOS)
+.\" 1: man:groff(1) -- package default
+.\" 2: x-man-page://1/groff -- macOS
+.\" 3: man:groff.1 -- Bwana (macOS)
+.\" 4: x-man-doc://1/groff -- ManOpen (macOS, pre-2005)
.\" Set this register to configure which the `MR` macro uses.
.\" .nr an*MR-URL-format 1
.\"
+1!
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63768>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #63768] want configurable URL format for man page hyperlinks, (continued)
- [bug #63768] want configurable URL format for man page hyperlinks, G. Branden Robinson, 2023/02/11
- [bug #63768] want configurable URL format for man page hyperlinks, John Gardner, 2023/02/11
- [bug #63768] want configurable URL format for man page hyperlinks, G. Branden Robinson, 2023/02/11
- [bug #63768] want configurable URL format for man page hyperlinks, John Gardner, 2023/02/11
- [bug #63768] want configurable URL format for man page hyperlinks, John Gardner, 2023/02/16
- [bug #63768] want configurable URL format for man page hyperlinks, G. Branden Robinson, 2023/02/17
- [bug #63768] want configurable URL format for man page hyperlinks, John Gardner, 2023/02/17
- [bug #63768] want configurable URL format for man page hyperlinks, G. Branden Robinson, 2023/02/17
- [bug #63768] want configurable URL format for man page hyperlinks, John Gardner, 2023/02/17
- [bug #63768] want configurable URL format for man page hyperlinks, G. Branden Robinson, 2023/02/17
- [bug #63768] want configurable URL format for man page hyperlinks,
John Gardner <=
- [bug #63768] want configurable URL format for man page hyperlinks, G. Branden Robinson, 2023/02/18