Extension:SignWriting MediaWiki Plugin

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

Requirements

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

Extension
Extract the extension into extensions/swmp

Add this line at the end of LocalSettings.php :

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.

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

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

Markup with hexadecimal
Four types of markup are available:
 * 14c38e392
 * 0fb14c38e3924a54bd27138c3984bb4cf
 * 14c38e39227138c398
 * 0fb14c38e3924a54bd27138c3984bb4cf 0fd14c38e39227138c398 0fb18738c39c4c04c618738c3934b94b020538c3924d14b32ef38c3924c949c 0fd18738c39318738c39c2ef38c39220538c392 38838c392

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.

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 withing markup, but can appear anywhere as plain characters. Before displaying the page, the UTF-8 is converted to hexadecimal and enclosed in the markup.