Richard Jones' Log: Bruce the Presentation Tool 2.0 (beta)

Mon, 03 Mar 2008

I've released Bruce 2.0 beta 1, yay.

On the project site you can see some screenshots and sample presentation source that was used to generate the screenshots. One of the goals of Bruce is to make it really easy to knock up a quick presentation in a plain-text format. The most basic presentation consists of:

--- text
=This is a title
This is a new line

--- text
=Another page, another title
.You can have bullet points
.If you must
..Even nested ones
...And nestedier ones
.I call this BrucePoint

--- video foot_stomp.mpg

--- py
    sound=spanish_inquisition.ogg
# generates an interactive Python session (with intro sound)

--- image kitten.jpg
# displays a kitten (and this is a comment)

Note that the above BrucePoint style stuff relies on some post-beta1 changes only in SVN.

Because it's using pyglet it's got some really nice features I've already implemented like the video and audio stuff. Also the screen control is nice too -- have it display the presentation on one screen (projector) and in the other screen (laptop) have the presentation source being displayed (along with your notes embedded in the source). It can display pages of HTML (though it's a little slow), and will be able to display pages of ReStructuredText soon. Hell, if you're on a Mac it can also display PDFs :)

It also generates some nice HTML running notes (which include the "#" comments for reference) which print up quite nicely.

I'm still working on it, and there's some bugs but nothing show-stopping. Still to do transitions, but they're not high on the priority list.

Add comment
Comment by Catherine Devlin on Mon, 03 Mar 2008

That's great! I've used Bruce in several presentations, and the new version should be even better. For the sake of anybody else who has trouble like I did figuring out the command for checking out a copy, it's svn co http://svn.bruce.python-hosting.com bruce

Comment by slinkp on Tue, 04 Mar 2008

I tried it on python 2.4.4 on gentoo; no dice. I have pyglet 1.1alpha1 installed in a virtualenv, and I have openal 0.0.8-r2 installed on the system, but every time I run setup.py I get:

$ python setup.py installopen /dev/[sound/]dsp: No such file or directory
open /dev/[sound/]dsp: No such file or directory
Traceback (most recent call last):
  File "setup.py", line 8, in ?
    from bruce import __version__
  File "/home/pw/brucetest/bruce-2.0beta1/bruce/__init__.py", line 9, in ?
    from bruce import parser
  File "/home/pw/brucetest/bruce-2.0beta1/bruce/parser.py", line 75, in ?
    from bruce.video import VideoPage
  File "/home/pw/brucetest/bruce-2.0beta1/bruce/video.py", line 7, in ?
    from pyglet import media
  File "build/bdist.linux-x86_64/egg/pyglet/media/__init__.py", line 1303, in ?
  File "build/bdist.linux-x86_64/egg/pyglet/media/drivers/openal/__init__.py", line 332, in driver_init
Exception: No OpenAL device.
Any idea what that's about? Also, the project page seems to be really flaky right now.

Comment by slinkp on Tue, 04 Mar 2008

After googling a bit, apparently the gentoo build for openal doesn't create a necessary config file ... http://forums.gentoo.org/viewtopic-t-632339-highlight-openal+test.html

but
now that that's sorted, Bruce apparently depends on python 2.5 ... which is fine, but should probably be explicitly documented somewhere:

$ python setup.py install
Traceback (most recent call last):
File "setup.py", line 8, in ?
from bruce import __version__
File "/home/pw/brucetest/bruce-2.0beta1/bruce/__init__.py", line 9, in ?
from bruce import parser
File "/home/pw/brucetest/bruce-2.0beta1/bruce/parser.py", line 78, in ?
from bruce.python_interpreter import PythonInterpreterPage
File "/home/pw/brucetest/bruce-2.0beta1/bruce/python_interpreter.py", line 1
from __future__ import absolute_import
SyntaxError: future feature absolute_import is not defined

Comment by Richard on Tue, 04 Mar 2008

Catherine: that's great, I hope you like the new version as much as (hopefully better than) the old Bruce!

slinkp: I've added some requirements info to the project page, thanks. Too bad the project page is having trouble responding...

Comment by Chris on Fri, 04 Apr 2008

Hi, the website and SVN seem to be down.

Comment by Chris on Fri, 04 Apr 2008

Ah, that's because it lives over here now:

http://code.google.com/p/bruce-tpt/
http://pypi.python.org/pypi/bruce