menukeys icon indicating copy to clipboard operation
menukeys copied to clipboard

Path unusable for copy

Open Akaizoku opened this issue 6 years ago • 4 comments

While the use of menukeys is great visually, it makes it impossible to re-use a path by selecting and copying it.

It would be great if it was possible to change the actual text behind the visual separators to re-use the same separator that was used to break the path appart.

Akaizoku avatar Jun 27 '18 17:06 Akaizoku

This is a pretty nice idea, however at the moment unfortunately I don’t have the time to work on the packe, but I’ll keep it in mind!

tweh avatar Jul 03 '18 07:07 tweh

This could be possible with the accsupp package. The result would depend on the used PDF viewer (I tested the accsupp package with a few a while ago and while some pick up on the ActualText others ignore it).

Maybe we could provide a package option to switch on/off the use of accsupp. The output routine would have to be changed for this to use something like

\BeginAccSupp{ActualText=<string>}%
  <original output routine>%
\EndAccSupp{}

We'd have to make sure that there is no page break between \BeginAccSupp and \EndAccSupp. Maybe we could even only apply it to the separator, which should be more stable (but a bit more work).

Skillmon avatar Nov 05 '20 21:11 Skillmon

If we apply it only to the separator I fear it could happen that some viewers add extra spaces (from bevor after the separator) which would circumvent the whole effort of making the path copy-able.

tweh avatar Nov 06 '20 15:11 tweh

Yes, this could happen indeed. I'll have to try things, maybe I can come up with something that works well across a bunch of viewers.

Skillmon avatar Nov 06 '20 15:11 Skillmon