[FR] Detect outline header in which a selected text is from for optional Copy Template in Display text format
Opened this issue · 2 comments
Describe your request
I think the most useful Display text format would be the name of the header which includes the text that is copied. This could be done by having a copy template {{header}}
which detects the most specific header that contains the entire selected text. If no headers are found or only the main one, it returns ""
This is a very nice suggestion, but by the nature of the PDF file format, there is no way to reliably determine which heading each piece of text belongs to.
(Of course we could do some very rough guess work though)
I will think about how this should be implemented, but I'm afraid this will not come true very soon.
Yes I understand there is no reliable way. I would imagine if the paper is laid out vertically (not two-columns) then based on the location where the text is copied, the header can be inferred by checking which region matches the position. I can see issues popping up though so I imagine it could take some time. Thanks for considering it!