From 48d170d5d50bb84a96d249f17e2048c48270ea97 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 12 Apr 2010 22:26:38 +0000 Subject: consolidated 'pddp' lib stuff into a single place to make a libdir, ease Debian packaging, and remove the pddpserver svn path=/trunk/externals/pddp/; revision=13424 --- examples/pddp.css | 18 ++++++++++++++++++ examples/pddplink-test-01.html | 5 +++++ examples/pddplink-test-01.pd | 17 +++++++++++++++++ examples/pddplink-test-01.xml | 19 +++++++++++++++++++ examples/pddplink-test-02.html | 5 +++++ examples/pddplink-test-02.pd | 17 +++++++++++++++++ examples/pddplink-test-02.xml | 19 +++++++++++++++++++ examples/test.bg.jpg | Bin 0 -> 5491 bytes examples/toonepage | 21 +++++++++++++++++++++ examples/topdf | 23 +++++++++++++++++++++++ 10 files changed, 144 insertions(+) create mode 100644 examples/pddp.css create mode 100644 examples/pddplink-test-01.html create mode 100644 examples/pddplink-test-01.pd create mode 100644 examples/pddplink-test-01.xml create mode 100644 examples/pddplink-test-02.html create mode 100644 examples/pddplink-test-02.pd create mode 100644 examples/pddplink-test-02.xml create mode 100644 examples/test.bg.jpg create mode 100755 examples/toonepage create mode 100755 examples/topdf (limited to 'examples') diff --git a/examples/pddp.css b/examples/pddp.css new file mode 100644 index 0000000..40042d1 --- /dev/null +++ b/examples/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/examples/pddplink-test-01.html b/examples/pddplink-test-01.html new file mode 100644 index 0000000..b73ea54 --- /dev/null +++ b/examples/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/examples/pddplink-test-01.pd b/examples/pddplink-test-01.pd new file mode 100644 index 0000000..e7ca4b0 --- /dev/null +++ b/examples/pddplink-test-01.pd @@ -0,0 +1,17 @@ +#N canvas 421 92 475 404 12; +#X text 20 10 first entry; +#X text 50 50 three ways of linking to a; +#X obj 270 50 pddplink pddplink-test-01.html -text local html page +; +#X obj 50 75 pddplink pddplink-test-01.html; +#X obj 50 110 pddplink pddplink-test-01.html -box; +#X text 50 170 three ways of linking to a; +#X obj 270 170 pddplink http://puredata.info -text remote html page +; +#X obj 50 195 pddplink http://puredata.info; +#X obj 50 230 pddplink http://puredata.info -box; +#X text 50 290 three ways of linking to; +#X obj 260 290 pddplink pddplink-test-02.pd -text another local patch +; +#X obj 50 315 pddplink pddplink-test-02.pd; +#X obj 50 350 pddplink pddplink-test-02.pd -box; diff --git a/examples/pddplink-test-01.xml b/examples/pddplink-test-01.xml new file mode 100644 index 0000000..0282ea6 --- /dev/null +++ b/examples/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/examples/pddplink-test-02.html b/examples/pddplink-test-02.html new file mode 100644 index 0000000..aed49db --- /dev/null +++ b/examples/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/examples/pddplink-test-02.pd b/examples/pddplink-test-02.pd new file mode 100644 index 0000000..839c0b6 --- /dev/null +++ b/examples/pddplink-test-02.pd @@ -0,0 +1,17 @@ +#N canvas 321 192 475 404 12; +#X text 20 10 first entry; +#X text 50 50 three ways of linking to a; +#X obj 270 50 pddplink pddplink-test-02.html -text local html page +; +#X obj 50 75 pddplink pddplink-test-02.html; +#X obj 50 110 pddplink pddplink-test-02.html -box; +#X text 50 170 three ways of linking to a; +#X obj 270 170 pddplink http://puredata.info -text remote html page +; +#X obj 50 195 pddplink http://puredata.info; +#X obj 50 230 pddplink http://puredata.info -box; +#X text 50 290 three ways of linking to; +#X obj 260 290 pddplink pddplink-test-01.pd -text another local patch +; +#X obj 50 315 pddplink pddplink-test-01.pd; +#X obj 50 350 pddplink pddplink-test-01.pd -box; diff --git a/examples/pddplink-test-02.xml b/examples/pddplink-test-02.xml new file mode 100644 index 0000000..349f95e --- /dev/null +++ b/examples/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/examples/test.bg.jpg b/examples/test.bg.jpg new file mode 100644 index 0000000..8224bbc Binary files /dev/null and b/examples/test.bg.jpg differ diff --git a/examples/toonepage b/examples/toonepage new file mode 100755 index 0000000..f59273a --- /dev/null +++ b/examples/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/examples/topdf b/examples/topdf new file mode 100755 index 0000000..adf4b43 --- /dev/null +++ b/examples/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