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:
 * 0100
 * 00800100f800f800
 * 010001010102
 * 00800100f800f800

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

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

UTF-8 Plane 4
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.