pdftex[831] branches/stable/tests: shorten
commits+karl at tug.org
commits+karl at tug.org
Thu Jun 4 20:07:54 CEST 2020
Revision: 831
http://tug.org/svn/pdftex?view=revision&revision=831
Author: karl
Date: 2020-06-04 20:07:54 +0200 (Thu, 04 Jun 2020)
Log Message:
-----------
shorten 14-pdfadjustinterword-segfault name; new files for Ulrike requests, https://tug.org/pipermail/tex-live/2018-November/042759.html
Modified Paths:
--------------
branches/stable/tests/14-pdfadjustinterwordglue-segfault/f.tex
branches/stable/tests/14-pdfadjustinterwordglue-segfault/run.sh
Added Paths:
-----------
branches/stable/tests/14-pdfadjustinterwordglue-segfault/
branches/stable/tests/15-startlink-boxing/
branches/stable/tests/15-startlink-boxing/Makefile
branches/stable/tests/15-startlink-boxing/test-different-levels.tex
branches/stable/tests/16-nolink-special/
branches/stable/tests/16-nolink-special/Makefile
branches/stable/tests/16-nolink-special/nolink-example.tex
branches/stable/tests/16-nolink-special/nolink-pdftex.pdf
branches/stable/tests/16-nolink-special/nolink-xetex.pdf
Removed Paths:
-------------
branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/
Property Changed:
----------------
branches/stable/tests/14-pdfadjustinterwordglue-segfault/f.tex
branches/stable/tests/14-pdfadjustinterwordglue-segfault/run.sh
Modified: branches/stable/tests/14-pdfadjustinterwordglue-segfault/f.tex
===================================================================
--- branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/f.tex 2020-05-26 13:37:01 UTC (rev 828)
+++ branches/stable/tests/14-pdfadjustinterwordglue-segfault/f.tex 2020-06-04 18:07:54 UTC (rev 831)
@@ -1,3 +1,6 @@
+% $Id$
+% Public domain.
+
\catcode`\{=1 \catcode`\}=2 \pdfoutput=1 \nonstopmode \hbadness=10000
\vsize=20pc \hsize=30pt \parfillskip=0pt plus1fil
\font\f=cmr10
Property changes on: branches/stable/tests/14-pdfadjustinterwordglue-segfault/f.tex
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision
\ No newline at end of property
Modified: branches/stable/tests/14-pdfadjustinterwordglue-segfault/run.sh
===================================================================
--- branches/stable/tests/14-segfault-with-pdfadjustinterwordglue/run.sh 2020-05-26 13:37:01 UTC (rev 828)
+++ branches/stable/tests/14-pdfadjustinterwordglue-segfault/run.sh 2020-06-04 18:07:54 UTC (rev 831)
@@ -1,4 +1,7 @@
-if [ ! -e ./pdftex]; then
+# $Id$
+# Public domain.
+
+if [ ! -e ./pdftex ]; then
ln -s ../../source/build-pdftex/texk/web2c/pdftex .
fi
Property changes on: branches/stable/tests/14-pdfadjustinterwordglue-segfault/run.sh
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision
\ No newline at end of property
Added: branches/stable/tests/15-startlink-boxing/Makefile
===================================================================
--- branches/stable/tests/15-startlink-boxing/Makefile (rev 0)
+++ branches/stable/tests/15-startlink-boxing/Makefile 2020-06-04 18:07:54 UTC (rev 831)
@@ -0,0 +1,12 @@
+# $Id$
+# Public domain.
+
+include ../Common.mak
+
+default: test-different-levels
+
+test-different-levels:
+ $(prog) test-different-levels.tex
+
+clean:
+ $(clean)
Property changes on: branches/stable/tests/15-startlink-boxing/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision
\ No newline at end of property
Added: branches/stable/tests/15-startlink-boxing/test-different-levels.tex
===================================================================
--- branches/stable/tests/15-startlink-boxing/test-different-levels.tex (rev 0)
+++ branches/stable/tests/15-startlink-boxing/test-different-levels.tex 2020-06-04 18:07:54 UTC (rev 831)
@@ -0,0 +1,47 @@
+% $Id$
+% Public domain.
+
+\catcode`\{=1 \catcode`\}=2 \pdfoutput=1
+
+x\hbox{\pdfstartlink
+ attr {/Border[0 0 1]}
+ user{
+ /Subtype/Link%
+ /A<<%
+ /Type/Action%
+ /S/URI%
+ /URI(foo)%
+ >>%
+ } Linktext}
+\pdfendlink
+\end
+
+% https://tug.org/pipermail/tex-live/2018-November/042759.html
+% Date: Wed, 28 Nov 2018 12:31:25 +0100
+% From: Ulrike Fischer <news3 at nililand.de>
+% To: tex-live at tug.org
+% Subject: [tex-live] pdfstartlink/pdfendlink and boxing level problems
+%
+% 1. Currently the commands give a fatal error if used in different
+% boxing levels:
+%
+% [example program above]
+%
+% ! pdfTeX error (ext4): \pdfendlink ended up in different nesting
+% level than \pdfstartlink.
+% ! ==> Fatal error occurred, no output PDF file produced!
+%
+% This doesn't happen very often in documents, but if the galley is
+% split and reboxed it is possible that long links end in different
+% levels. One example involving two column mode and top floats has
+% been discussed on the latex2e github:
+% https://github.com/latex3/latex2e/issues/94
+%
+% Is the fatal error really sensible here? Couldn't the engines close
+% the last annotation with some more or less sensible coordinate and
+% continue with a warning? A pdf with a wrong link area seems better
+% than no pdf at all (and would release the format and packages from
+% the need to carefully keep track of boxing levels when splitting and
+% reassembling stuff).
+%
+% [see ../16-nolink-special/*.tex for other request.]
Property changes on: branches/stable/tests/15-startlink-boxing/test-different-levels.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision
\ No newline at end of property
Added: branches/stable/tests/16-nolink-special/Makefile
===================================================================
--- branches/stable/tests/16-nolink-special/Makefile (rev 0)
+++ branches/stable/tests/16-nolink-special/Makefile 2020-06-04 18:07:54 UTC (rev 831)
@@ -0,0 +1,19 @@
+# $Id$
+# Public domain.
+
+include ../Common.mak
+
+default: #test-nolink-not-yet-written
+
+#test-nolink:
+# $(prog) test-nolink.tex
+
+# to see the LaTeX example.
+nolink-example:
+# footline is wrongly linked:
+ pdflatex nolink-example && mv nolink-example.pdf nolink-pdftex.pdf
+# footline is correctly not linked:
+ xelatex nolink-example && mv nolink-example.pdf nolink-xetex.pdf
+
+clean:
+ $(clean)
Property changes on: branches/stable/tests/16-nolink-special/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision
\ No newline at end of property
Added: branches/stable/tests/16-nolink-special/nolink-example.tex
===================================================================
--- branches/stable/tests/16-nolink-special/nolink-example.tex (rev 0)
+++ branches/stable/tests/16-nolink-special/nolink-example.tex 2020-06-04 18:07:54 UTC (rev 831)
@@ -0,0 +1,58 @@
+% $Id$
+% Public domain.
+
+\documentclass[a4paper]{article}
+\usepackage{fancyhdr}
+\pagestyle{fancy}
+%\cfoot{some footline text that should not be linked}
+%\usepackage{ifxetex}
+%\ifxetex
+ \cfoot{\special{pdf:nolink}some footline text that should not be
+linked but is unless xetex\special{pdf:link}}
+ %\fi
+\usepackage{hyperref}
+
+\begin{document}
+\vspace*{48\baselineskip}
+xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx
+\href{xxxxx}{link link link link }
+\end{document}
+
+% https://tug.org/pipermail/tex-live/2018-November/042759.html
+% Date: Wed, 28 Nov 2018 12:31:25 +0100
+% From: Ulrike Fischer <news3 at nililand.de>
+% To: tex-live at tug.org
+% Subject: [tex-live] pdfstartlink/pdfendlink and boxing level problems
+%
+% [see ../15-startlink-boxing/*.tex for other request.]
+%
+% 2. The engines interrupts linking if the boxing level of
+% intermediate text is less than the boxing level at the start of the
+% link:
+%
+% [example program above]
+%
+% This allows to some extend to exclude e.g. header and footer from
+% link areas. But doesn't work e.g. with fancyhdr which adds an
+% additional box level to the footer. xetex/xdvidfpmx has here a quite
+% useful special \special{pdf:nolink} which can be used to suppress
+% the unwanted link area:
+%
+% \documentclass[a4paper]{article}
+% \usepackage{fancyhdr}
+% \pagestyle{fancy}
+% \cfoot{some longer text that should not be linked}
+% \usepackage{ifxetex}
+% \ifxetex
+% %\cfoot{\special{pdf:nolink}some longer text that should not be
+% linked\special{pdf:link}}
+% \fi
+% \usepackage{hyperref}
+%
+% \begin{document}
+% \vspace*{48\baselineskip}
+% xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx
+% \href{xxxxx}{link link link link }
+% \end{document}
+%
+% Would it be possible to add to pdftex/luatex something similar?
Property changes on: branches/stable/tests/16-nolink-special/nolink-example.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision
\ No newline at end of property
Added: branches/stable/tests/16-nolink-special/nolink-pdftex.pdf
===================================================================
(Binary files differ)
Index: branches/stable/tests/16-nolink-special/nolink-pdftex.pdf
===================================================================
--- branches/stable/tests/16-nolink-special/nolink-pdftex.pdf 2020-06-03 23:00:08 UTC (rev 830)
+++ branches/stable/tests/16-nolink-special/nolink-pdftex.pdf 2020-06-04 18:07:54 UTC (rev 831)
Property changes on: branches/stable/tests/16-nolink-special/nolink-pdftex.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: branches/stable/tests/16-nolink-special/nolink-xetex.pdf
===================================================================
(Binary files differ)
Index: branches/stable/tests/16-nolink-special/nolink-xetex.pdf
===================================================================
--- branches/stable/tests/16-nolink-special/nolink-xetex.pdf 2020-06-03 23:00:08 UTC (rev 830)
+++ branches/stable/tests/16-nolink-special/nolink-xetex.pdf 2020-06-04 18:07:54 UTC (rev 831)
Property changes on: branches/stable/tests/16-nolink-special/nolink-xetex.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
More information about the pdftex-commits
mailing list.