From 2f98cf610081a6e3c4a4aadf4411dcc89b756db2 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Tue, 10 May 2005 20:30:47 +0000 Subject: toxy alpha17 and pddp alpha1 (see notes.txt for toxy, pddp and shared) svn path=/trunk/externals/miXed/; revision=2941 --- test/pddp/pddp.css | 18 ++++++++++++++++++ test/pddp/pddplink-test-01.html | 5 +++++ test/pddp/pddplink-test-01.pd | 8 ++++++++ test/pddp/pddplink-test-01.xml | 19 +++++++++++++++++++ test/pddp/pddplink-test-02.html | 5 +++++ test/pddp/pddplink-test-02.pd | 8 ++++++++ test/pddp/pddplink-test-02.xml | 19 +++++++++++++++++++ test/pddp/test.bg.jpg | Bin 0 -> 5491 bytes test/pddp/toonepage | 21 +++++++++++++++++++++ test/pddp/topdf | 23 +++++++++++++++++++++++ 10 files changed, 126 insertions(+) create mode 100644 test/pddp/pddp.css create mode 100644 test/pddp/pddplink-test-01.html create mode 100644 test/pddp/pddplink-test-01.pd create mode 100644 test/pddp/pddplink-test-01.xml create mode 100644 test/pddp/pddplink-test-02.html create mode 100644 test/pddp/pddplink-test-02.pd create mode 100644 test/pddp/pddplink-test-02.xml create mode 100644 test/pddp/test.bg.jpg create mode 100755 test/pddp/toonepage create mode 100755 test/pddp/topdf (limited to 'test/pddp') 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 @@ +first simple test

first simple test


test patch is here: pddplink-test-01.pd

The above link works if you opened this page from Pd, + for example, by clicking on an object +

pddplink pddplink-test-01.html

+

Pd links should also work in all pages opened through any other, + initiating, Pd-opened page.

Another simple test page is here: pddplink-test-02.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 @@ + + + + + first simple test + + test patch is here: + + The above link works if you opened this page from Pd, + for example, by clicking on an object + pddplink pddplink-test-01.html + + + Pd links should also work in all pages opened through any other, + initiating, Pd-opened page. + + Another simple test page is here: + 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 @@ +second simple test

second simple test


test patch is here: pddplink-test-02.pd

The above link works if you opened this page from Pd, + for example, by clicking on an object +

pddplink pddplink-test-02.html

+

Pd links should also work in all pages opened through any other, + initiating, Pd-opened page.

Another simple test page is here: pddplink-test-01.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 @@ + + + + + second simple test + + test patch is here: + + The above link works if you opened this page from Pd, + for example, by clicking on an object + pddplink pddplink-test-02.html + + + Pd links should also work in all pages opened through any other, + initiating, Pd-opened page. + + Another simple test page is here: + diff --git a/test/pddp/test.bg.jpg b/test/pddp/test.bg.jpg new file mode 100644 index 0000000..8224bbc Binary files /dev/null and b/test/pddp/test.bg.jpg 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 .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 .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" -- cgit v1.2.1