On Fri, 20 Jan 2023 at 10:47, Ulrike Fischer <news3@nililand.de> wrote:
If there is a \textdir change in a paragraph *and* if a link breaks
over two lines then then link area is wrong:



commit cb916fbb53cce2dc7e2a21a6cf7c9d2be8c68e63 (HEAD -> master, origin/master)
Author: Luigi Scarso <luigi.scarso@gmail.com>
Date:   Tue Jan 24 17:27:53 2023 +0100

    fix for r2l multiline link etc rectangles (H.Hagen)




 
%\pdfvariable compresslevel 0
\pdfvariable linking 1

\hsize=5cm \parskip=1em

OK:
{abc \textdir TRT
\pdfextension startlink
    attr {/Border[0 0 1]}
    user{
        /Subtype/Link/A<</S/URI/URI(blub)>>
        }
 x  y y y  z
\pdfextension endlink
abc
} end


Wrong:
{abc \textdir TRT
\pdfextension startlink
    attr {/Border[0 0 1]}
    user{
        /Subtype/Link/A<</S/URI/URI(blub)>>
        }
 x  y y y y y y y y y y y y y y y z
\pdfextension endlink
abc
} end

\pardir TRT \textdir TRT
OK:
\pdfextension startlink
    attr {/Border[0 0 1]}
    user{
        /Subtype/Link/A<</S/URI/URI(blub)>>
        }
 x  y y y y y y y y y y y y y y y z
\pdfextension endlink
end
\bye

hopefully it's ok ....

--
luigi