Extension:Proofread Page/hi
Proofread Page प्रकाशन की स्थिति: स्थिर |
|
---|---|
File:Proofread Page editor.png | |
कार्यान्वयन | पृष्ठ कार्य , ContentHandler , टैग , API , डेटाबेस |
विवरण | 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. |
लेखक | ThomasV (original author) Tpt (current maintainer) |
नवीनतम संस्करण | continuous updates |
संगतता नीति | मीडियाविकि के साथ प्रकाशित स्नैपशॉट्स। Master में पीछे की तरफ से संगतता नहीं है। |
MediaWiki | current master |
PHP | 7.0+ |
टेबल | pr_index |
लाइसेंस | कोई लाइसेंस नहीं दिया गया है |
डाउनलोड करें | |
सहायता | Help:Extension:ProofreadPage |
उदाहरण | s:Index:Wind in the Willows (1913).djvu |
Page, Index |
|
|
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Proofread Page एक्सटेंशन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है | |
मुद्दे | अधूरे कार्य · बग की रिपोर्ट करें |
Proofread Page एक्सटेंशन या तो पुस्तक बनाता है:
- OCR के एक कॉलम के रूप में स्कैन की गई छवियों के एक कॉलम के बगल में पाठ, या # अध्यायों या कविताओं में विभाजित। दस्तावेज़ की सामग्री MediaWiki पेज (ट्रांसक्लूज़न के माध्यम से) में दिखाई देती है।
विस्तार का उद्देश्य मूल डिजिटलीकरण के पाठ की आसान तुलना की अनुमति देना है।
यह विस्तार वास्तव में मूल पाठ की नकल किए बिना पाठ को कई तरह से दिखाता है।[1]
प्रयोग
विस्तार सभी विकीसोर्स विकियों पर संस्थापित है। सिंटैक्स के लिए, $1 देखें। इसका उपयोग बिब्लियोविकी पर भी किया गया था।
Requirements and recommendations
- Access to the command line is required if running the update script (maintenance/update.php) from the web browser fails (see Upgrade documentation and Update.php documentation).
- If you want to use DjVu files (optional but recommended), a native DjVu handler needs to be available for configuration.
See also Manual:How to use DjVu with MediaWiki .
- In addition, use of ProofreadPage is highly improved by the use of the following extensions:
- LabeledSectionTransclusion (strongly recommended)
- Cite (default page footer contains
<references />
- Poem
- PdfHandler (may require additional PHP packages) — adds PDF support
- PagedTiffHandler
- ParserFunctions
- TemplateStyles (Enables Index-specific CSS)
- Scribunto (Enables the proofreading Lua library)
Installation
Extension
- <translate> [[<tvar name=2>Special:ExtensionDistributor/ProofreadPage</tvar>|Download]] and move the extracted <tvar name=name>
ProofreadPage
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ProofreadPage - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'ProofreadPage' );
- <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
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 in .htaccess 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&p=$2&w=$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
- For MediaWiki >= 1.20, you can simply redirect to thumb_handler.php:
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_handler.php [L,QSA]
- or in apache2.conf:
ErrorDocument 404 /w/thumb_handler.php
If you encounter a problem similar to the following:
- phab:T301291 – PDF and DjVu files on Commons failed to be processed (no thumbnails, zero pages) but otherwise valid
- phab:T298417 – Undeleted DjVu files show incorrect metadata: 0x0 size, no page number info
- phab:T299521 – PDF file has 0x0 image size in Commons after uploading a new version while the page number is correct
Try next steps:
- repair thumbnails for DjVu files of the core MediaWiki (for PDF use mimetype
application/pdf
)php maintenance/refreshImageMetadata.php --verbose --mime image/vnd.djvu --force
- needed for actualization info about the pages counts of the
Special:IndexPages
php maintenance/refreshLinks.php --namespace 252
Namespaces
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 another language. Full list.
You can customize their name or their ID: Create namespaces by hand and set their IDs in Manual:LocalSettings.php using $wgProofreadPageNamespaceIds global. You will do something like:
define( 'NS_PROOFREAD_PAGE', 250);
define( 'NS_PROOFREAD_PAGE_TALK', 251);
define( 'NS_PROOFREAD_INDEX', 252);
define( 'NS_PROOFREAD_INDEX_TALK', 253);
$wgExtraNamespaces[NS_PROOFREAD_PAGE] = 'Page';
$wgExtraNamespaces[NS_PROOFREAD_PAGE_TALK] = 'Page_talk';
$wgExtraNamespaces[NS_PROOFREAD_INDEX] = 'Index';
$wgExtraNamespaces[NS_PROOFREAD_INDEX_TALK] = 'Index_talk';
$wgProofreadPageNamespaceIds = array(
'index' => NS_PROOFREAD_INDEX,
'page' => NS_PROOFREAD_PAGE
);
Namespace id customization is not recommended and might not be supported in the future.
Configuration
- 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 Extension:ParserFunctions
Configuration of index namespace
For more details, see Extension:Proofread Page/Index data configuration
- 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.json 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:
{
"ID": { //id of the metadata (first parameter of proofreadpage_index_attributes)
"type": "string", //the property type (for compatibility reasons the values have not to be of this type). Possibles values: string, number, page. If set, the newly set values should be valid according to the type (e.g. for a number a valid number, for a page an existing wiki page...)
"size": 1, //only for the type string : number of lines of the input (third parameter of proofreadpage_index_attributes)
"values": {"a":"A", "b":"B","c":"C", "d":"D"}, //an array values : label that list the possible values (for compatibility reasons the stored values have not to be one of these)
"default": "", //the default value
"header": false, //add the property to MediaWiki:Proofreadpage_header_template template (true is equivalent to being listed in proofreadpage_js_attributes)
"label": "ID", //the label in the form (second parameter of proofreadpage_index_attributes)
"help": "", //a short help text
"delimiter": [], //list of delimiters between two part of values. By example ["; ", " and "] for strings like "J. M. Dent; E. P. Dutton and A. D. Robert"
"data": "" //proofreadpage's metadata type that the property is equivalent to
}
}
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 wgProofreadPagePageSeparator
.
The default value is  
(a whitespace).
Set wgProofreadPagePageSeparator = ""
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 wgProofreadPagePageJoiner
and defaults to '-' (the ASCII hyphen character).
Configure change tagging (optional)
See Change tagging to set up change tags.
Usage
Creating your first page (example with DjVu)
- Before following these steps ensure you have followed the instructions in Manual:How to use DjVu with MediaWiki .
- (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 Page:Carroll - Alice's Adventures in Wonderland.djvu
- Create the corresponding file for this page commons:File:Carroll - Alice's Adventures in Wonderland.djvu (or set Manual:$wgUseInstantCommons to
true
).
- Create the index page
Index:Carroll - Alice's Adventures in Wonderland.djvu
- Insert the tag
<pagelist />
in the Pages field to visualize the page list
- Insert the tag
- To edit page 5 of the book navigate to 'Page:Carroll - Alice's Adventures in Wonderland/5' and click edit
Syntax
This extension introduces the following tags:
<pages>
, <pagelist>
Notes
- ↑ क्योंकि पृष्ठ मुख्य नामस्थान में नहीं हैं, वे पाठ इकाइयों की सांख्यिकीय गणना में शामिल नहीं हैं।
See also
- Sections
- Index data configuration
- Change tagging
- Lua library reference
- Page viewer
- Edit-in-Sequence — A new system (as of 2022) for proofreading without having to reload the entire page.
- Roadmap of the development
- API
- Metadata API — The
proofread
meta submodule - Proofread properties API — Proofreading-related properties of individual pages
- Index data API — Access index pages data (fields and categories)
- Index pagination API — List pages in a given index
- Metadata API — The
- Manual:How to use DjVu with MediaWiki
- PdfHandler — 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: https://phetools.toolforge.org/statistics.php
- ToDo and feature request list from the Community
- A public-domain user manual is being written at: Help:Extension:ProofreadPage
- MediaWiki:OCR.js - the OCR script
File:Wikimedia-logo black.svg | <translate> This {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is being used on one or more [[<tvar name=2>m:Special:MyLanguage/Wikimedia projects</tvar>|Wikimedia projects]].</translate> <translate> This probably means that the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is stable and works well enough to be used by such high-traffic websites.</translate> <translate> Look for this {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension's|skin's}} name in Wikimedia's <tvar name=2>CommonSettings.php</tvar> and <tvar name=3>InitialiseSettings.php</tvar> configuration files to see where it's installed.</translate> <translate> A full list of the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extensions|skins}} installed on a particular wiki can be seen on the wiki's <tvar name=ver>Special:Version</tvar> page.</translate> |
Proofread Page editor.png |
- Pages with script errors
- Pages with broken file links
- Stable extensions/hi
- Page action extensions/hi
- ContentHandler extensions/hi
- Tag extensions/hi
- API extensions/hi
- Database extensions/hi
- Extensions with manual MediaWiki version
- Extensions with no license specified/hi
- Extensions in Wikimedia version control/hi
- Extensions which add rights/hi
- All extensions/hi
- Extensions not in ExtensionJson
- Extensions used on Wikimedia/hi
- Extension:ProofreadPage/hi
- View page extensions/hi
- Image extensions/hi
- Transcription extensions/hi