Extension:SignWriting MediaWiki Plugin

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
SignWriting MediaWiki Plugin

Release status: stable

Implementation Tag
Description Adds SignWriting viewer to MediaWiki.
Author(s) Stephen E Slevinski Jr (SlevinskiTalk)
Last version 1.2.2 (2010-07-26)
MediaWiki Tested on 1.15.3
License GPL3, OFL
Download Zip
Example SignWriting Wiki

Check usage (experimental)

This extension adds a SignWriting viewer to MediaWiki. The code is a wrapper for the SignWriting Image Server.

Contents

[edit] Requirements

  • The GD graphics library must be installed on the server.

[edit] Installation

[edit] Extension

Extract the extension into extensions/swmp

Add this line at the end of LocalSettings.php :

 include("$IP/extensions/swmp/swmp.php");

[edit] Toolbar

It is possible to add a sign text button to the edit toolbar within MediaWiki. Edit the page MediaWiki:Common.js. Add the following code. Change the location of the image file as needed.

if (mwCustomEditButtons) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "/mediawiki/extensions/swmp/button_Sign.png",
     "speedTip": "SignText",
     "tagOpen": "<signtext>",
     "tagClose": "</signtext>",
     "sampleText": ""};
}

After the code above has been added, you might need to forcefully refresh cache.

[edit] Usage

The plugin uses Binary SignWriting encoded as hexadecimal data or Unicode compatible UTF-8.

[edit] Markup with hexadecimal

Four types of markup are available:

  • <sym>14c38e392</sym>
  • <sign>0fb14c38e3924a54bd27138c3984bb4cf</sign>
  • <seq>14c38e39227138c398</seq>
  • <signtext>0fb14c38e3924a54bd27138c3984bb4cf 0fd14c38e39227138c398 0fb18738c39c4c04c618738c3934b94b020538c3924d14b32ef38c3924c949c 0fd18738c39318738c39c2ef38c39220538c392 38838c392</signtext>


Each uses Binary SignWriting as hexadecimal. The sym takes a single symbol. The sign takes a single sign. The seq takes a list of symbols. The signtext can handle an entire sign text.

The Binary SignWriting can be created using the SignWriting Image Server.

[edit] UTF-8 Plane 15

It is also possible to use the UTF-8 encoding of Binary SignWriting. The character data does not need to be enclosed within markup, but can appear anywhere as plain characters. Before displaying the page, the UTF-8 is converted to hexadecimal and enclosed in the <signtext> markup.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox