From: Michael Smith Date: Tue, 11 Oct 2005 03:05:31 +0000 (+0000) Subject: New file from Benoit Guillon. Includes tests for Area/@linkends X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf06962a1de568dcd4c5fb1d4ff62c534fd937a0;p=docbook-dsssl New file from Benoit Guillon. Includes tests for Area/@linkends and for Coref (neither of which we previously had test cases for). --- diff --git a/testdocs/tests/calloutlist.003.xml b/testdocs/tests/calloutlist.003.xml new file mode 100644 index 000000000..5c241b408 --- /dev/null +++ b/testdocs/tests/calloutlist.003.xml @@ -0,0 +1,235 @@ + + +
+ + Unit Test: calloutlist.003 + $Id$ + BenoitGuillon + + + +
Callouts + +
Embedded <sgmltag>Co</sgmltag>s + + + <refentry> + <info> + <date>2003-10-20</date> + </info> + <refmeta> + <refentrytitle>gtk<:-options</refentrytitle> + <manvolnum>7</manvolnum> + <refmiscinfo class="source-name"><1:GTK+</refmiscinfo> + <refmiscinfo class="version">1.2</refmiscinfo> + <refmiscinfo class="manual">GTK+ User's Manual</refmiscinfo> + </refmeta> + <refnamediv> + <refname>gtk-options</refname> + <refpurpose>Standard Command Line Options for GTK+ Programs</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <para>This manual page describes the command line options, which + are common to all GTK+ based applications.</para> + </refsect1> + </refentry> + + + + + Sets the date part of the header/footer. + + + Sets the title part. + + + Sets the section part. + + + Sets the source name part. + + + Sets the version part. + + + Sets the manual part. + + + + +Another screen including coref too. The +first coref is not valid, the second one is valid. It checks +also that several items in co/@linkends are correctly handled. + + + Volume in drive C is SYSTEM Serial number is 2350:717C + Directory of C:\ + +10/17/97 9:04 <DIR> bin +10/16/97 14:11 <DIR> DOS +10/16/97 14:40 <DIR> Program Files +10/16/97 14:46 <DIR> TEMP +10/17/97 9:04 <DIR> tmp +10/16/97 14:37 <DIR> WINNT +10/16/97 14:25 119 AUTOEXEC.BAT + 2/13/94 6:21 54,619 COMMAND.COM +10/16/97 14:25 115 CONFIG.SYS +11/16/97 17:17 61,865,984 pagefile.sys + 2/13/94 6:21 9,349 WINA20.386 + + + + + This directory holds MS-DOS, the + operating system that was installed before Windows + NT. + + + + + System startup code for DOS. + + + + + Some sort of Windows 3.1 hack for some 386 processors, + as I recall. + + + + +
+ +
Programlistingco + +In this case the markups are all at the end of the lines, except for line +11. It checks that enough spaces are added to reach the specified column. It +checks also that the area linkends coords hotspot appears. + + + + + + + + + + + + +@rem = '--*-Perl-*-- +@echo off +perl.exe %_batchname %$ +goto endofperl +@rem '; + +# Compress mail... + +require 'n:/home/nwalsh/lib/cygnus.pl'; +require 'timelocal.pl'; +use Cwd; + +select (STDERR); $| = 1; +select (STDOUT); $| = 1; + +@DIRS = ("/home/nwalsh/Mail"); +while (@DIRS) { + $dir = shift @DIRS; + opendir (DIR, $dir); + while ($fname = readdir(DIR)) { + $file = "$dir/$fname"; + next if ! -d $file; + next if $fname =~ /^\.\.?$/; + + print "$file\n"; + push (@DIRS, $file); + &compress ($file); + } +} + +exit; + + +The prologue handles embedding a Perl script in a DOS batch file. + + +The goto statement, interpreted by the DOS batch +file interpreter, skips over the body of the Perl script. + + +The require statement sources in external program +fragments. + + +The use statement is similar, but has additional +utility. It is a Perl5 function. (Note that this callout area specifies +both a line and a column.) + + +This is a user subroutine call. + + + + +This case checks that spaces are added to reach the expected +column. + + + + + + + +This is a line +This is another line +This is a third lien + + +... + + + + +here HermiteNormalFormIntegerMat +is used + + + + + +This programlistingco checks that you can put several markups at different +column positions into the same line, and that several markups with no column +specification are both put at the end of the line. The special case of a markup at +the end of the last line is checked too. + + + + + + + + + + +This is a line +This is another line +This is a third lien + + +... +The very last line + + + +here HermiteNormalFormIntegerMat +is used + + + + + +
+
+