bugGNU roff - Bugs: bug #61886, [grotty] want anchor support to...

 
 

bug #61886: [grotty] want anchor support to complement OSC 8 hyperlinks

Submitter:  None
Submitted:  Fri 21 Jan 2022 12:26:14 AM UTC
   
 
Category:  Driver grotty Severity:  1 - Wish
Item Group:  Feature change Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 10 Aug 2023 01:34:19 PM UTC, comment #5: 

groff 1.23.0 is out.  Keeping this ticket in postponed status until a pager or terminal emulator supporting navigation by OSC 8 "anchors" is known.

G. Branden Robinson <gbranden>
Group administrator
Sat 29 Jan 2022 10:34:39 PM UTC, comment #4: 

I hope he takes it, maybe after tweaks of course.

 . ^O^I text  -  search id= "text"
 . ^O^N       -  search next OSC 8 link aka URI
 . ^O^P       -  search previous OSC 8 link aka URI
 . ^O^O       -  open current OSC 8 link aka URI with LESSOSC8OPEN environment variable content; if unset, support man: style links out of the box.

 https://github.com/gwsw/less/pull/251

Please consider adding id= support for grotty, so that macro writers can put only id=s for anchors, only links for references, and combinations with id= and link, too!

Ciao Branden!

Anonymous
Fri 21 Jan 2022 08:15:39 PM UTC, comment #3: 

Hm. There is the OSC-8 thing which offers id= fields.  Anything up to the separating semicolon ; is the ID, right?

Anonymous
Fri 21 Jan 2022 03:11:18 AM UTC, comment #2: 

Hi, Steffen.

original submission:

> Wonderful. But really it is not nice that you did not support the possibility to generate id= anchors.  Or did i miss something.


No, that's not present yet.  There was some discussion about it, but we didn't settle on a design].

For other output devices, the `devtags` auxiliary macro package already takes care of this, and there is already some integration with user-facing macro packages like `man` and `ms` (though a quick glance at ms.ms rendered as HTML reveals that the `ms` support is buggy, sigh).

> It would be tremendous if that could be added, so that one could create macros which generate in-document anchors and thus in-document references!  Aka warp such to the TTY device, too.


I think the main problem here is that there is no proposed standard for declaring these anchors in the byte stream sent to the terminal.  I reckon another OSC escape sequence, a counterpart to OSC 8, is required.

I'm marking this as "wish, postponed" because we can't implement this before there's a way to elicit such functionality from terminal emulators (or pager programs, which I suppose could supply it by maintaining a list of pointers into their rendering buffer, if an implementor were ambitious enough).  (Come to think of it, any pager that can search its buffer for text probably has most of the machinery it needs already.)

> (I am back at github and maybe i can get an acceptable path to add this to less.  I am steffen AT, you know.)


Cool!  Good to hear from you again.

G. Branden Robinson <gbranden>
Group administrator
Fri 21 Jan 2022 12:27:49 AM UTC, comment #1: 

P.S.: i am not subscribed to bugs. Just ask me on the normal list or in private, i would be willing to write the patch, too!

Anonymous
Fri 21 Jan 2022 12:26:14 AM UTC, original submission:  

Wonderful. But really it is not nice that you did not support the possibility to generate id= anchors.  Or did i miss something.
It would be tremendous if that could be added, so that one could create macros which generate in-document anchors and thus in-document references!  Aka warp such to the TTY device, too.
(I am back at github and maybe i can get an acceptable path to add this to less.  I am steffen AT, you know.)
Thank you.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-07 gbranden CategoryDriver - others/general Driver grotty
    2022-01-22 gbranden Item GroupNone Feature change
    2022-01-21 gbranden Severity3 - Normal 1 - Wish
        StatusNone Postponed
        Summarygrotty: OSC-8 support does not offer IDs aka id=, only link [grotty] want anchor support to complement OSC 8 hyperlinks

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code