8000 GitHub - cliotropic/Scripto: Scripto is an open source documentary transcription tool library written in PHP.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from chnm/Scripto

Scripto is an open source documentary transcription tool library written in PHP.

Notifications You must be signed in to change notification settings

cliotropic/Scripto

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scripto

© 2010-2011, Center for History and New Media
License: GNU GPL v3

Scripto is an open source documentary transcription tool written in PHP. It features a lightweight library that interfaces MediaWiki and potentially any content management system that serves document images. MediaWiki is a good choice for the transcription database for several reasons:

  • It is the most popular wiki application and had a sizable and active developer community;
  • Wiki markup is relatively easy to learn and there are useful WYSIWYG editors available;
  • It offers helpful features, such as discussion pages and user administration;
  • It comes with a powerful, fully-featured API.

Requirements

  • PHP 5.2.4+
  • Zend Framework 1.10+
  • MediaWiki 1.15.4+
  • Custom adapter interface to (and possibly an API for) the external CMS

Installation

  • Download and install MediaWiki;
  • Download the Zend Framework library;
  • Download the Scripto library, set the configuration, and use the Scripto library API to build your documentary transcription application.

Suggested Configuration and Setup

Here's a basic configuration:

<?php

// Path to directory containing Zend Framework, from root.
define('ZEND_PATH', '');

// Path to directory containing the Scripto library, from root.
define('SCRIPTO_PATH', '');

// URL to the MediaWiki installation API.
define('MEDIAWIKI_API_URL', '');

// Name of the MediaWiki database.
define('MEDIAWIKI_DB_NAME', '');

// Set the include path to Zend and Scripto libraries.
set_include_path(get_include_path() 
                 . PATH_SEPARATOR . ZEND_PATH 
                 . PATH_SEPARATOR . SCRIPTO_PATH);

// Set the Document and Adapter objects.
require_once 'Scripto/Document.php';
require_once 'Scripto/Adapter/Example.php';
$doc = new Scripto_Document($_REQUEST['documentId'], 
                            MEDIAWIKI_API_URL, 
                            MEDIAWIKI_DB_NAME, 
                            new Scripto_Adapter_Example);

// Set the current page.
$doc->setPage($_REQUEST['pageId']);

See the examples/ directory for more suggestions on configuration, setup, layout, and styles.

To run the examples, mv examples/shared/config.php.changeme examples/shared/config.php, and set up the configuration something like this:

<?php
ini_set('display_errors', 1);


// Path to directory containing Zend Framework, from root.
define('ZEND_PATH', '/home/myuser/lib/php/Zend/library');

// Path to directory containing the Scripto library, from root.
define('SCRIPTO_PATH', '/home/myuser/mydomain.org/Scripto/lib');

// URL to the MediaWiki installation API.
define('MEDIAWIKI_API_URL', 'http://mydomain.org/wiki/api.php');

// Name of the MediaWiki database.
define('MEDIAWIKI_DB_NAME', 'mediawiki_db');

// Set the include path to Zend and Scripto libraries.
set_include_path(get_include_path() 
				 . PATH_SEPARATOR . ZEND_PATH 
				 . PATH_SEPARATOR . SCRIPTO_PATH);

After that, you should be able to load http://mydomain.org/Scripto/examples/Simple/ to see a basic example.

About

Scripto is an open source documentary transcription tool library written in PHP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.4%
  • PHP 6.6%
0