Coder Social home page Coder Social logo

burst_s5's Introduction

burst_s5 - standards-compliant HTML slideshows with HTML5 video and Inkscape

burst_s5 is a collection of docutils extensions to emit S5 slideshows (based on docutils' S5 writer) with videos and slides designed in Inkscape, including appearing elements. It makes S5 presentations a little more like PowerPoint, Keynote, and OpenOffice Impress.

See a sample presentation here.

How to use it

A command, burst2s5 is installed with burst_s5. This takes care of registering the docutils directives and should otherwise be called like docutils' own rst2s5.

Docutils directives

The following docutils directives are supplied:

video

Emits html5 <video> tags. Supported:

  • h264 encoded videos in MP4 container files
  • theora encoded videos in Ogg container files
  • both of the above in a single <video> tag

Here is an example of use:

.. class:: center

  .. video::
   :video_mp4: movie1.mp4
   :height: 400
   :loop: True

This will insert the video movie1.mp4 centered into the presentation. If the file movie1.ogv exists alongside the .mp4 file, it will also be inserted. Alternatively, if only the Ogg Video is available, use the :video_ogv: option.

inklayers

It allows you to write this in your .rst source file:

slide title
-----------

.. inklayers:: layered_graphics.svg

Instead of manually saving a bunch of layers in Inkscape and then writing this:

slide title
-----------

.. container:: animation

  .. image:: layer1.png
   :class: hidden slide-display

  .. class:: incremental hidden slide-display

    .. image:: layers12.png

    .. image:: layers123.png

  .. image:: layers1234.png
     :class: incremental

These animated images can be horizontally centered by adding this to your css:

/* center the inklayers generated content */
.inklayers { margin: auto; }

Requirements

docutils, lxml.

Inkscape (for the inklayers directive).

On Mac, Inkscape should be installed in /Applications/Inkscape.app. On others, "inkscape" should be in the path.

Installation

This is a standard Python distutils package. Install with:

python setup.py install

or whatever your usual incantation is. This will put two scripts on your path: burst2s5 and svg-images-abs2rel.

A sample presentation

For an example presentation go to samples and run:

burst2s5 --theme-url=burst-theme saturn.rst saturn.html

This will generate saturn.html, which illustrates the features of burst s5.

See the rendered version of this presentation here.

Target screen resolution

The environment variables BURST_S5_HEIGHT and BURST_S5_MAX_WIDTH control the resolution of the output.

The "standard" is a 1024x768 screen. These are the defaults. For an 800x600 screen, this seems to work:

export BURST_S5_MAX_WIDTH="795"
export BURST_S5_HEIGHT="500"

Also, you may be interested in changing output directory to support building multiple target resultions simultanously. You can set the target directory with the BURST_S5_INKLAYERS_SUFFIX environment variable.

See also

There are other interesting resources about this type of thing: http://code.google.com/p/html5media/wiki/VideoFormats

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.