Update of bug #67910 (group groff):

                  Status:                    None => Invalid
             Assigned to:                    None => gbranden
             Open/Closed:                    Open => Closed

    _______________________________________________________

Follow-up Comment #2:

[comment #1 comment #1:]
> Hi Bjarni,
> 
> This is definitely intentional. Just as all \- are changed to a hyphen if you
> cut and paste (or do text search of the document), the outline pane shows as
> a hyphen so that a similar text search of the bookmarks will work.
> 
> Given the outline pane is just text, the author has no control over the
> presentation, it makes sense to use the simple hyphen-minus for the text to
> make it compatible for searching. You can use a proper hyphen (U+2010) in the
> panel. If you add these lines:-

> .SS \[u2010]A:
> A real hyphen


> But then searching in the bookmarks is different from searching in the
> document. It's a compromise, but is probably less surprising to the user.

There's a way around that--don't go straight to raw Unicode code points.  Use
the `\[hy]` special character, if you _really_ want a true hyphen.  This
choice does have portability consequences, of course.


$ printf '.TH foo 1 2026-01-04 "groff test suite"\n.SH Coyote\\[hy]wolf
hybrids in the Livermore Area\n' | groff -man -T pdf -Z | grep '^x X'
x X ps:exec [/Dest /foo(1) /View [/FitH -26000 u] /DEST pdfmark
x X ps:exec [/Dest /foo(1) /Title (foo(1)) /Level 1 /OUT pdfmark
x X pdf: markrestart
x X ps:exec [/Dest /pdf:bm2 /View [/FitH -74000 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm2 /Title (Coyote\[hy]wolf hybrids in the Livermore
Area) /Level 2 /OUT pdfmark
x X devtag:.NH 1
x X devtag:.eo.h
x X pdf: marksuspend


The foregoing renders just fine for me.  See attachment.

I don't think there's anything for _groff_'s developers to do here, so
resolving as invalid.

(file #58111)

    _______________________________________________________

Additional Item Attachment:

Name: 67910.png                      Size: 60KiB
    <https://file.savannah.gnu.org/file/67910.png?file_id=58111>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-c0e7328b0919e9b907c12a3a42c8f9bea29fbc0e.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67910>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to