Extension:Proofread Page

From MediaWiki.org
(Redirected from Extension:ProofreadPage)
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Proofread Page

Release status: stable

Implementation Page action, API
Description The Proofread Page extension can render a book either as a column of OCR text beside a column of scanned images, or broken into its logical organization (such as chapters or poems) using transclusion.
Author(s) ThomasV
Last version continuous updates
Database changes yes
License GPL v2 or later
Download Download snapshot
Subversion [Help]

Browse source code
View code changes

log

Example s:Index:Wind in the Willows (1913).djvu
Hooks used
ParserFirstCallInit

BeforePageDisplay
GetLinkColours
ImageOpenShowImageInlineBefore
EditPage::attemptSave
ArticleSaveComplete
ArticleDelete
EditFormPreloadText
ArticlePurge
SpecialMovepageAfterMove
LoadExtensionSchemaUpdates
EditPage::importFormData
OutputPageParserOutput
wgQueryPages

Check usage (experimental)
Bugs: list open list all report

The Proofread Page extension can render a book either as a column of OCR text beside a column of scanned images, or broken into its logical organization (such as chapters or poems) using transclusion.

The extension is intended to allow easy comparison of text to the original and allow rendering of a text in several ways without duplicating data. Since the pages are not in the main namespace, they are not included in the statistical count of text units.

The extension is installed on all Wikisource wikis.

Contents

[edit] Installation

[edit] Extension

  1. Download the files from SVN or download a snapshot (select your version of MediaWiki) and place the files under $IP/extensions/ProofreadPage
  2. Add to the end of LocalSettings.php:
    require_once( "$IP/extensions/ProofreadPage/ProofreadPage.php" );
  3. Add the required tables to the database; on the command line, enter:
    php maintenance/update.php
    (Note: Your designated database user needs to have CREATE rights on your MediaWiki database.)
  4. Installation can now be verified through Special:Version on your wiki

[edit] Thumbnailing

The extension links directly to image thumbnails which often don't exist. You must catch 404 errors and generate the missing thumbnails. You can do this with any one of these solutions:

  • Set an Apache RewriteRule to thumb.php for missing thumbnails:
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^/w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/page([0-9]+)-?([0-9]+)px-.*$ /w/thumb.php?f=$1&page=$2&width=$3 [L,QSA]
    
  • or set the Apache 404 handler to Wikimedia's thumb-handler. This is a general-purpose 404 handler with Wikimedia-specific code, not simply a thumbnail generator.
        ErrorDocument 404 /w/extensions/upload-scripts/404.php
    

[edit] Configuration

[edit] Options

  • The default layout for editing pages is the vertical layout. It is possible to change this and use the horizontal layout, by setting the following variable :
     var proofreadpage_default_layout='horizontal';
    
    This setting can be activated by single users, or for all users if it set in common.js

[edit] See also


Language: English  • Français
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox