Extension:Proofread Page/cs

Rozšíření Proofread Page generuje stránku knihy buď jako:


 * 1) dva sloupce, kdy se na jedné straně zobrazuje textový obsah, pokud bylo aplikováno OCR, a vedle něj obrázek naskenovaného originálu,
 * 2) nebo zalomený do kapitol či lépe bloků, přičemž  textový obsah na stránce MediaWiki je zalomen pod obrázkem dokumentu (transkluze).

Rozšíření je navrženo tak, aby umožnilo snadné porovnání textu s digitalizovaným originálem.

Textový obsah umí zobrazit několika různými způsoby, aniž by při tom docházelo k jeho duplikaci.

Použití
Toto rozšíření je nainstalováno na všechny wiki Wikisource. O syntaxi se více dozvíte na s:mul:Wikisource:ProofreadPage. Používá se i na Bibliowiki.

Co potřebujete a co je doporučeno

 * Pokud selže aktualizační skript (maintenance/update.php), který se spouští přes webový prohlížeč, potřebujete přístup k příkazové řádce (Viz dokumentace zde a zde).
 * Pokud chcete používat dokumenty v DjVu formátu (volitelný a doporučený), stačí v nastavení povolit, aby se používal nativní DjVu handler. Viz též.
 * Kromě toho, se vám při použití ProofreadPage budou hodit i následující rozšíření:
 * (silně doporučeno)
 * (výchozí patička stránek obsahuje tag
 * (may require additional PHP packages) — adds PDF support
 * (may require additional PHP packages) — adds PDF support

Generování náhledů
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 in .htaccess to thumb.php for missing thumbnails:
 * 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.
 * For MediaWiki >= 1.20, you can simply redirect to thumb_handler.php:
 * Or in apache2.conf:
 * For MediaWiki >= 1.20, you can simply redirect to thumb_handler.php:
 * Or in apache2.conf:
 * Or in apache2.conf:

Jmenné prostory
ProofreadPage create by default two custom namespaces named "Page" and "Index" in English with respectively ids 250 and 252.

Their names are translated if your wiki use an other language. .

You can customize their name or their id: Create namespaces by hand and set their ids in using $wgProofreadPageNamespaceIds global. You will do something like:

Namespace id customization is not recommended and might not be supported in the future.

Konfigurace

 * In order to use the page quality system, it is necessary to create five categories. The names of these categories must be defined in Mediawiki:Proofreadpage_quality0_category to Mediawiki:Proofreadpage_quality4_category.
 * Ensure that you have installed

Nastavení jmenného prostoru index

 * You need to create MediaWiki:Proofreadpage_index_template in order to display index pages. This page is a template that receive as parameter entries of the edition form.
 * You need to create MediaWiki:Proofreadpage_index_data_config that contain the configuration of the index form. This new configuration page overrides MediaWiki:Proofreadpage_index_attributes and MediaWiki:Proofreadpage_js_attributes.

The configuration is a JSON array of properties. Here is the structure of a property in the array, all the parameters are optional, the default value are set:

The data parameter can have for value: "type", "language", "title", "author", "translator", "illustrator", "editor", "school", "year", "publisher", "place", "progress"

Page separator
The extension puts a separator between every transcluded page and the next, which is defined by. The default value is  (a whitespace). Set  to suppress the separator.

Join hyphenated words across pages
When a word is hyphenated between a page and the next, the extension joins together the two halves of the word. Example: his- and tory becomes history. The "joiner" character is defined by  and defaults to '-' (the regular hyphen character).

Creating your first page (example with DjVu)

 * Before following these steps ensure you have followed the instructions in.
 * (when and in which namespace is the djvu file itself uploaded?)
 * Create a page in the "Page" namespace (or the internationalized name if you use an not-English wiki). For example if your namespace is 'Page' create
 * Create the corresponding file for this page commons:File:Carroll - Alice's Adventures in Wonderland.djvu (or set Manual:$wgUseInstantCommons to ).
 * Create the index page
 * Insert the tag in the Pages field to visualize the page list
 * To edit page 5 of the book navigate to 'Page:Carroll - Alice's Adventures in Wonderland/5' and click edit

Syntaxe
This extension introduces the following tags: ,

Viz též

 * — adds PDF support to Proofread Page
 * The current full description and instructions (in English) may be found at: s:Help:Proofread
 * Usage statistics can be found here: ~phe/statistics.php
 * ToDo and feature request list from the Community
 * A public-domain user manual is being written at:
 * MediaWiki:OCR.js - the OCR script
 * A public-domain user manual is being written at:
 * MediaWiki:OCR.js - the OCR script