aboutsummaryrefslogtreecommitdiff
path: root/test/pddp
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2005-05-10 20:30:47 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2005-05-10 20:30:47 +0000
commit2f98cf610081a6e3c4a4aadf4411dcc89b756db2 (patch)
tree282ed3657a8050ad790570dec4263fff67272f6b /test/pddp
parentcdd23c6b9523654eb3bf03542021404888fdbcba (diff)
toxy alpha17 and pddp alpha1 (see notes.txt for toxy, pddp and shared)
svn path=/trunk/externals/miXed/; revision=2941
Diffstat (limited to 'test/pddp')
-rw-r--r--test/pddp/pddp.css18
-rw-r--r--test/pddp/pddplink-test-01.html5
-rw-r--r--test/pddp/pddplink-test-01.pd8
-rw-r--r--test/pddp/pddplink-test-01.xml19
-rw-r--r--test/pddp/pddplink-test-02.html5
-rw-r--r--test/pddp/pddplink-test-02.pd8
-rw-r--r--test/pddp/pddplink-test-02.xml19
-rw-r--r--test/pddp/test.bg.jpgbin0 -> 5491 bytes
-rwxr-xr-xtest/pddp/toonepage21
-rwxr-xr-xtest/pddp/topdf23
10 files changed, 126 insertions, 0 deletions
diff --git a/test/pddp/pddp.css b/test/pddp/pddp.css
new file mode 100644
index 0000000..40042d1
--- /dev/null
+++ b/test/pddp/pddp.css
@@ -0,0 +1,18 @@
+body {
+ color: brown ;
+ background: gray url(test.bg.jpg) ;
+ margin-top: 10 ;
+ font-family: Helvetica, sans-serif ;
+ font-size: larger ;
+}
+
+pre.programlisting {
+ display: table ;
+ background-color: #EEEEEE ;
+ padding: 2pt ;
+ border-style: solid ;
+ border-width: 1pt ;
+ border-color: #000000 ;
+ border-spacing: 3pt ;
+ margin: 3pt ;
+}
diff --git a/test/pddp/pddplink-test-01.html b/test/pddp/pddplink-test-01.html
new file mode 100644
index 0000000..b73ea54
--- /dev/null
+++ b/test/pddp/pddplink-test-01.html
@@ -0,0 +1,5 @@
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>first simple test</title><link rel="stylesheet" href="pddp.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2447708"></a>first simple test</h2></div></div><hr></div><p>test patch is here: <a href="pddplink-test-01.pd" target="_top">pddplink-test-01.pd</a></p><p>The above link works if you opened this page from Pd,
+ for example, by clicking on an object
+ </p><pre class="programlisting"><span><b class="command">pddplink</b></span> pddplink-test-01.html</pre><p>
+ </p><p>Pd links should also work in all pages opened through any other,
+ initiating, Pd-opened page.</p><p>Another simple test page is here: <a href="pddplink-test-02.html" target="_top">pddplink-test-02.html</a></p></div></body></html>
diff --git a/test/pddp/pddplink-test-01.pd b/test/pddp/pddplink-test-01.pd
new file mode 100644
index 0000000..f5f1403
--- /dev/null
+++ b/test/pddp/pddplink-test-01.pd
@@ -0,0 +1,8 @@
+#N canvas 232 221 450 300 12;
+#X obj 61 83 pddplink pddplink-test-01.html;
+#X text 21 12 first entry;
+#X text 59 47 linking to a local html page:;
+#X text 58 130 linking to a remote html page:;
+#X obj 60 166 pddplink http://puredata.info;
+#X obj 59 254 pddplink pddplink-test-02.pd;
+#X text 57 218 linking to another local patch:;
diff --git a/test/pddp/pddplink-test-01.xml b/test/pddp/pddplink-test-01.xml
new file mode 100644
index 0000000..0282ea6
--- /dev/null
+++ b/test/pddp/pddplink-test-01.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<sect1>
+ <title>first simple test</title>
+
+ <para>test patch is here: <ulink url="pddplink-test-01.pd"/></para>
+
+ <para>The above link works if you opened this page from Pd,
+ for example, by clicking on an object
+ <programlisting><command>pddplink</command> pddplink-test-01.html</programlisting>
+ </para>
+
+ <para>Pd links should also work in all pages opened through any other,
+ initiating, Pd-opened page.</para>
+
+ <para>Another simple test page is here: <ulink url="pddplink-test-02.html"/></para>
+</sect1>
diff --git a/test/pddp/pddplink-test-02.html b/test/pddp/pddplink-test-02.html
new file mode 100644
index 0000000..aed49db
--- /dev/null
+++ b/test/pddp/pddplink-test-02.html
@@ -0,0 +1,5 @@
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>second simple test</title><link rel="stylesheet" href="pddp.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2447708"></a>second simple test</h2></div></div><hr></div><p>test patch is here: <a href="pddplink-test-02.pd" target="_top">pddplink-test-02.pd</a></p><p>The above link works if you opened this page from Pd,
+ for example, by clicking on an object
+ </p><pre class="programlisting"><span><b class="command">pddplink</b></span> pddplink-test-02.html</pre><p>
+ </p><p>Pd links should also work in all pages opened through any other,
+ initiating, Pd-opened page.</p><p>Another simple test page is here: <a href="pddplink-test-01.html" target="_top">pddplink-test-01.html</a></p></div></body></html>
diff --git a/test/pddp/pddplink-test-02.pd b/test/pddp/pddplink-test-02.pd
new file mode 100644
index 0000000..eb67411
--- /dev/null
+++ b/test/pddp/pddplink-test-02.pd
@@ -0,0 +1,8 @@
+#N canvas 332 321 450 300 12;
+#X obj 61 83 pddplink pddplink-test-02.html;
+#X text 21 12 second entry;
+#X text 59 47 linking to a local html page:;
+#X text 58 130 linking to a remote html page:;
+#X obj 60 166 pddplink http://puredata.info;
+#X obj 59 254 pddplink pddplink-test-01.pd;
+#X text 57 218 linking to another local patch:;
diff --git a/test/pddp/pddplink-test-02.xml b/test/pddp/pddplink-test-02.xml
new file mode 100644
index 0000000..349f95e
--- /dev/null
+++ b/test/pddp/pddplink-test-02.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+
+<sect1>
+ <title>second simple test</title>
+
+ <para>test patch is here: <ulink url="pddplink-test-02.pd"/></para>
+
+ <para>The above link works if you opened this page from Pd,
+ for example, by clicking on an object
+ <programlisting><command>pddplink</command> pddplink-test-02.html</programlisting>
+ </para>
+
+ <para>Pd links should also work in all pages opened through any other,
+ initiating, Pd-opened page.</para>
+
+ <para>Another simple test page is here: <ulink url="pddplink-test-01.html"/></para>
+</sect1>
diff --git a/test/pddp/test.bg.jpg b/test/pddp/test.bg.jpg
new file mode 100644
index 0000000..8224bbc
--- /dev/null
+++ b/test/pddp/test.bg.jpg
Binary files differ
diff --git a/test/pddp/toonepage b/test/pddp/toonepage
new file mode 100755
index 0000000..f59273a
--- /dev/null
+++ b/test/pddp/toonepage
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+usage () {
+ cat << EOF
+usage: toonepage <pddpsource>.xml
+EOF
+}
+
+[ "$#" == 0 ] && { usage; exit 1; }
+
+SOURCE_NAME="$(basename $1)"
+SOURCE_STUB="$(basename $SOURCE_NAME .xml)"
+
+[ $SOURCE_STUB == $SOURCE_NAME ] && { usage; exit 1; }
+
+xmllint >/dev/null --xinclude --postvalid $1
+xsltproc --nonet --xinclude \
+ --stringparam html.stylesheet pddp.css \
+ -o "$SOURCE_STUB.html" \
+ /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl \
+ $1
diff --git a/test/pddp/topdf b/test/pddp/topdf
new file mode 100755
index 0000000..adf4b43
--- /dev/null
+++ b/test/pddp/topdf
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+usage () {
+ cat << EOF
+usage: topdf <pddpsource>.xml
+EOF
+}
+
+[ "$#" == 0 ] && { usage; exit 1; }
+
+SOURCE_NAME="$(basename $1)"
+SOURCE_STUB="$(basename $SOURCE_NAME .xml)"
+
+[ $SOURCE_STUB == $SOURCE_NAME ] && { usage; exit 1; }
+
+xmllint >/dev/null --xinclude --postvalid $1
+xsltproc --nonet --xinclude \
+ -o "$SOURCE_STUB.fo" \
+ /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl \
+ $1
+
+# FIXME need to run this twice, it should be check-wrapped too
+pdfxmltex "$SOURCE_STUB.fo"