Extension:WikEdDiff/ja
WikEdDiff リリースの状態: 安定 |
|
---|---|
File:wikEd logo64x64.gif | |
実装 | ユーザー インターフェイス |
説明 | Inline-style difference engine with block move support |
作者 | Cacycletalk |
最新バージョン | 1.2.5 (2015-07-20) |
MediaWiki | 1.17 - 1.25 |
PHP | 5.3.0 |
データベースの変更 | いいえ |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | |
$wgWikEdDiffFullDiff, $wgWikEdDiffShowBlockMoves, $wgWikEdDiffCharDiff, $wgWikEdDiffRepeatedDiff, $wgWikEdDiffRecursiveDiff, $wgWikEdDiffRecursionMax, $wgWikEdDiffUnlinkBlocks, $wgWikEdDiffUnlinkMax, $wgWikEdDiffBlockMinLength, $wgWikEdDiffColoredBlocks, $wgWikEdDiffNoUnicodeSymbols, $wgWikEdDiffStripTrailingNewline, $wgWikEdDiffDebug, $wgWikEdDiffTimer, $wgWikEdDiffUnitTesting |
|
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'). |
WikEdDiff 拡張機能の翻訳にご協力ください | |
問題点 | 未解決のタスク · バグを報告 |
WikEdDiff is a visual inline-style difference engine with block move support. This extension is a feature-identical synced one-to-one PHP port of the JavaScript library wikEd diff that is used by the Wikipedia/MediaWiki in-browser editor wikEd and by the gadget wikEdDiff. You can test wikEdDiff by checking any of these gadgets in your English Wikipedia preferences. For testing the effects of different settings, you can also use the wikEd diff online tool and demo.
Features
- Visual inline style, changes are shown in a single output text
- Block move detection and highlighting
- Resolution down to characters level
- Unicode and multilingual support
- Stepwise split (paragraphs, lines, sentences, words, characters)
- Recursive diff
- Optimized code for resolving unmatched sequences
- Minimization of length of moved blocks
- Alignment of ambiguous unmatched sequences to next line break or word border
- Clipping of unchanged irrelevant parts from the output (optional)
- Fully customizable
- Text split optimized for MediaWiki source texts
- Well commented and documented code
パフォーマンス
The performance of wikEdDiff as compared to the MediaWiki bundled engine 'wikidiff3' (which is not used by default) depends mostly on the number of changes per text and text length. For typical comparisons, the MediaWiki default engine 'wikidiff3' is typically faster by a factor of up to 3 - 4-fold. For long and heavily changed articles, wikEdDiff can be slightly faster than 'wikidiff3'. These numbers are for wikEdDiff version 1.2.2 with default settings (i.e. optimal diff quality).
インストール
- <translate> [[<tvar name=2>Special:ExtensionDistributor/WikEdDiff/ja</tvar>|Download]] and move the extracted <tvar name=name>
WikEdDiff/ja
</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/WikEdDiff%2Fja - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'WikEdDiff/ja' ); # Optional customization options: # Show complete un-clipped diff text (false) $wgWikEdDiffFullDiff = false; # Enable block move layout with highlighted blocks and marks at their original positions (true) $wgWikEdDiffShowBlockMoves = true; # Enable character-refined diff (true) $wgWikEdDiffCharDiff = true; // Enable repeated diff to resolve problematic sequences (true) $wgWikEdDiffRepeatedDiff = true; # Enable recursive diff to resolve problematic sequences (true) $wgWikEdDiffRecursiveDiff = true; # Maximum recursion depth (10) $wgWikEdDiffRecursionMax = 10; # Reject blocks if they are too short and their words are not unique, # prevents fragmentated diffs for very different versions (true) $wgWikEdDiffUnlinkBlocks = true; # Maximum number of rejection cycles (5) $wgWikEdDiffUnlinkMax = 5; # Reject blocks if shorter than this number of real words (3) $wgWikEdDiffBlockMinLength = 3; # Display blocks in differing colors (rainbow color scheme) (false) $wgWikEdDiffColoredBlocks = false; # Do not use UniCode block move marks (legacy browsers) (false) $wgWikEdDiffNoUnicodeSymbols = false; # Strip trailing newline off of texts (false) $wgWikEdDiffStripTrailingNewline = true; # Show debug infos and stats (block, group, and fragment data objects) in debug console (false) $wgWikEdDiffDebug = false; # Show timing results in debug console (false) $wgWikEdDiffTimer = false; # Run unit tests to prove correct working, display results in debug console (false) $wgWikEdDiffUnitTesting = false;
- 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>
関連項目
- wikEdDiff gadget
- wikEd diff JavaScript library
- wikEd diff online tool and demo
References
- Pages with script errors
- Pages with broken file links
- Stable extensions/ja
- User interface extensions/ja
- Extensions with manual MediaWiki version
- GPL licensed extensions/ja
- Extensions in Wikimedia version control/ja
- GetDifferenceEngine extensions/ja
- All extensions/ja
- Extensions not in ExtensionJson
- History and diffs/ja