Yhteystiedot
Yleisen kielitieteen laitos
PL 9 (Siltavuorenpenger 20 A)
00014 Helsingin yliopisto
Puhelinvaihde +358 (09) 1911
Faksi +358 (09) 191 29307
|
|
13. SVG (Scalable Vector Graphics). Transforming XML to graphics.
- Lecture notes
- Further reading
- Practical work (Linux)
-
Copy the shell script
clt232-squiggle to your directory.
Make it executable (chmod +x clt232-squiggle).
This script runs the
Squiggle SVG Browser,
which is part of the open source Java
Batik SVG Toolkit.
-
Copy Tidwell's
sonnet-svg.xsl
(updated by G. Wilcock) to your directory.
Transform the sonnet from XML to SVG by
./clt232-xalan -in sonnet130.xml -xsl sonnet-svg.xsl
-out sonnet130.svg
View the SVG version of the sonnet in Squiggle by
./clt232-squiggle sonnet130.svg
-
Copy Chase's examples
rectangle.svg,
path.svg,
shapes.svg,
text.svg,
gradients.svg
to your directory. View the files in Squiggle.
-
Using Emacs, make small changes to the SVG files in
Chase's examples and view the results in Squiggle.
(All Chase's examples are available
here).
14. Speech markup languages. Transforming XML to speech.
- Lecture notes
- Further reading
- Practical work (Linux)
-
Copy
sonnet-jsml.xsl (by G. Wilcock) to your directory.
Transform the sonnet from XML to JSML by
./clt232-xalan -in sonnet130.xml -xsl sonnet-jsml.xsl
-out sonnet130.jsml
-
Copy the shell script
clt232-freetts to your directory.
Make it executable (chmod +x clt232-freetts).
This script runs
FreeTTS,
an open source Java speech synthesizer.
-
Copy the file
speech.properties to your "home directory.
-
Do this part on your workstation (not on venus),
using headphones.
Start the FreeTTS Player by
./clt232-freetts &
In the FreeTTS Player window,
select File -> Speak -> JSML File...
and browse to your sonnet130.jsml file.
Assignment 6.
© 2001-2006 Graham Wilcock
|