Giter Site home page Giter Site logo

storyscripts's Introduction

Story Script (XML)

The story script is defined as an XML document that records story characters and their scenic interactions. We define two kinds of leaf nodes, namely <Location /> and <Character />, which are under the root node <Story />. The <Location /> node contains two necessary attributes: Name and Sessions. A Session refers to a scenic group that contains one or more Characters. A Character contains one necessary attributes: Name. The <Span /> nodes represent the Sessions, which are characterized by a three-tuple: Start (Time), End (Time), and Session (Id). The sample script (Redhat) is as follows:

<?xml version="1.0" encoding="utf-8" ?>
<Story>
  <Locations>
    <Location Name="Red cap's Home" Sessions="1, 2" />
    <Location Name="Forest" Sessions="2"></Location>
    <Location Name="Grandmother's Home" Sessions="3"></Location>
  </Locations>
  <Characters>
    <Character Name="Red cap">
      <Span Start="1" End="5" Session="1"></Span>
      <Span Start="5" End="18" Session="2"></Span>
      <Span Start="18" End="22" Session="3"></Span>
    </Character>
    <Character Name="Mother">
      <Span Start="1" End="25" Session="1"></Span>
    </Character>
    <Character Name="Grandmother">
      <Span Start="10" End="15" Session="3"></Span>
    </Character> 
    <Character Name="Wolf">
      <Span Start="6" End="11" Session="2"></Span>
      <Span Start="11" End="25" Session="3"></Span>
    </Character>
  </Characters>
</Story>

JSON

We also provide a simplified JSON format which is compatible with the XML document (see iStoryline.js).

storyscripts's People

Contributors

tangtan avatar

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.