On Thu, 2 Jul 2009, Khaled Hosny wrote:

> PDF annotations are not placed correctly in TRT directions (and I
> guess other directions as well), I tried to track this issue and
> apparently directions are not taken into account when doing do_annot()
> in pdflistout.c.
>
> The attached patch is quick hack, it does work to some degree, but I
> don't really understand how PDF annotations are supposed to work, and
> the result in vertical mode is not right yet.
>
> Also, if I didn't set page and body direction, the vlist example will
> ignore the direction change completely (is this related to the other
> text direction in vertical mode issue?)

thanks for the report, seems do_annot was still just TLT only. I'll try
to fix (waiting for supelec).

Regards, Hartmut
%$Id: test-annot1.tex,v 1.2 2009/04/23 10:50:58 hahe Exp hahe $

%\mag=5000

\pdfcompresslevel=0

\nopagenumbers

\newdimen\hmarg \hmarg=1in
\newdimen\vmarg \vmarg=1in

\pagewidth=210mm \pageheight=297mm
\hsize=\pagewidth \advance\hsize by -2\hmarg
\vsize=\pageheight \advance\vsize by -2\vmarg

%\hoffset=0in
%\voffset=0in

\pdfhorigin=1in
\pdfvorigin=1in

\topskip=0pt
\parskip=0pt
\parindent=0pt
\offinterlineskip
\lineskip=0pt

%\pagedir TLT \bodydir TLT \pardir TLT \textdir TLT \pageleftoffset=\hmarg \pagetopoffset=\vmarg
\pagedir TRT \bodydir TRT \pardir TRT \textdir TRT \pagerightoffset=\hmarg \pagetopoffset=\vmarg
%\pagedir BLB \bodydir BLB \pardir BLB \textdir BLB \pageleftoffset=\hmarg \pagebottomoffset=\vmarg
%\pagedir BRB \bodydir BRB \pardir BRB \textdir BRB \pagerightoffset=\hmarg \pagebottomoffset=\vmarg
%\pagedir LTB \bodydir LTB \pardir LTB \textdir LTB \pageleftoffset=\hmarg \pagetopoffset=\vmarg
%\pagedir RTR \bodydir RTB \pardir RTB \textdir RTB \pagerightoffset=\hmarg \pagetopoffset=\vmarg
%\pagedir LBL \bodydir LBL \pardir LBB \textdir LBB \pageleftoffset=\hmarg \pagebottomoffset=\vmarg
%\pagedir RBR \bodydir RBR \pardir RBB \textdir RBB \pagerightoffset=\hmarg \pagebottomoffset=\vmarg

\leftline{%
   This is a link to the
    \pdfstartlink
        goto
        page 1 {/FitB}% % goto the 1st page and fit the page BBox in the
                        % window
    first page%
    \pdfendlink}

\bye
_______________________________________________
dev-luatex mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/dev-luatex

Reply via email to