[PD-cvs] externals/miXed/test/pddp pddp.css, NONE, 1.1 pddplink-test-01.html, NONE, 1.1 pddplink-test-01.pd, NONE, 1.1 pddplink-test-01.xml, NONE, 1.1 pddplink-test-02.html, NONE, 1.1 pddplink-test-02.pd, NONE, 1.1 pddplink-test-02.xml, NONE, 1.1 test.bg.jpg, NONE, 1.1 toonepage, NONE, 1.1 topdf, NONE, 1.1

Krzysztof Czaja krzyszcz at users.sourceforge.net
Tue May 10 22:30:50 CEST 2005


Update of /cvsroot/pure-data/externals/miXed/test/pddp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15441/test/pddp

Added Files:
	pddp.css pddplink-test-01.html pddplink-test-01.pd 
	pddplink-test-01.xml pddplink-test-02.html pddplink-test-02.pd 
	pddplink-test-02.xml test.bg.jpg toonepage topdf 
Log Message:
toxy alpha17 and pddp alpha1 (see notes.txt for toxy, pddp and shared)

--- NEW FILE: toonepage ---
#!/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

--- NEW FILE: pddp.css ---
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 ;
}

--- NEW FILE: pddplink-test-01.pd ---
#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:;

--- NEW FILE: pddplink-test-02.pd ---
#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:;

--- NEW FILE: pddplink-test-01.html ---
<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>

--- NEW FILE: pddplink-test-01.xml ---
<?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>

--- NEW FILE: test.bg.jpg ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: pddplink-test-02.html ---
<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>

--- NEW FILE: pddplink-test-02.xml ---
<?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>

--- NEW FILE: topdf ---
#!/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"





More information about the Pd-cvs mailing list