FS#79664 - [groff] issue with hypens in manpages

Attached to Project: Arch Linux
Opened by Benoit Pierre (bpierre) - Monday, 11 September 2023, 22:16 GMT
Last edited by Toolybird (Toolybird) - Thursday, 14 September 2023, 22:22 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In the vein of https://bugs.archlinux.org/task/79094, hyphens in options are not always using the ASCII `-` character:
```
-F or --quit‐if‐one‐screen
Causes less to automatically exit if the entire file can be displayed on the first screen.

```
(the initial `-` in `-F` and `--quit` the options are correct, but not the one in between `quit‐if‐one‐screen`)

I just ended up re-adding back this whole paragraph to `site.tmac`
```
. \" Character translations for non-keyboard
. \" characters - to make them searchable
. if '\*[.T]'utf8' \{\
. char \- \N'45'
. char - \N'45'
. char ' \N'39'
. \}
.
```

Additional info:
* package version(s): groff 1.23.0-4
This task depends upon

Closed by  Toolybird (Toolybird)
Thursday, 14 September 2023, 22:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  groff 1.23.0-5
Comment by Tobias Powalowski (tpowa) - Wednesday, 13 September 2023, 09:30 GMT
Well I think we need to combine it the old had other issues. You have an idea?
Comment by Benoit Pierre (bpierre) - Wednesday, 13 September 2023, 10:33 GMT
I don't know, what were the issues with the old version?
Comment by Tobias Powalowski (tpowa) - Wednesday, 13 September 2023, 11:56 GMT Comment by Benoit Pierre (bpierre) - Wednesday, 13 September 2023, 13:06 GMT
OK, but just to be clear, I'm not reverting to the old `site.tmac`, just adding back the necessary paragraph:
```diff
PKGBUILD | 2 +-
site.tmac | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)

diff --git i/PKGBUILD w/PKGBUILD
index b87fdd1..588b8f5 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -21,7 +21,7 @@ source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig}
sha256sums=('6b9757f592b7518b4902eb6af7e54570bdccba37a871fddb2d30ae3863511c13'
'SKIP'
'489bb32bbd1c7bced33bf187611219527914ae46ce05238fe80dc11c4b1bb909'
- 'cbcfe19bc1271b91e2c3bb8864813118863a3d8d10e6ca341f82c0ca5dc37dff')
+ '2acbae84dda1ad98f197818bc3187582f2d6a349a50b9d932cd9b6b2a4714873')

prepare() {
cd $pkgname-$pkgver
diff --git i/site.tmac w/site.tmac
index 33ba260..620682c 100644
--- i/site.tmac
+++ w/site.tmac
@@ -7,6 +7,14 @@
. \" if '\*[.T]'utf8' \
. \" char - \[hy]
.
+. \" Character translations for non-keyboard
+. \" characters - to make them searchable
+. if '\*[.T]'utf8' \{\
+. char \- \N'45'
+. char - \N'45'
+. char ' \N'39'
+. \}
+.
. \" groff 1.23.0 changed the "utf8" device to render "^" and "~"
. \" as U+02C6 and U+02DC respectively. This is likely to cause
. \" considerable disruption in manual pages, so preserve the old
```

And I don't have any issue searching for -, ~ or ^ in the zshall manpage.
Comment by Tobias Powalowski (tpowa) - Wednesday, 13 September 2023, 13:57 GMT
1.23.0-5 should be fine now.

Loading...