The wow of the Universal SignWriting Plugins
Stephen E Slevinski Jr
slevin at SIGNPUDDLE.NET
Wed Apr 10 15:18:20 UTC 2013
On 4/10/13 9:03 AM, Eduardo Trápani wrote:
> I was thinking about the plugin being able to pick up
> Unicode (as well as FSW) from the page and convert it to the div/span +
> images. So that we could copy/paste Unicode too.
A Unicode output plugin will be available on SignPuddle.com shortly.
A Unicode input plugin is easy enough to write if you review the
SignWriting Icon Client code.
https://github.com/Slevinski/swic/
Unicode is a bit temperamental, especially in JavaScript. Instead of
searching for single characters (UTF-32), we have to use character pairs
(UTF-16).
In SWIC file "msw.js", the function cswText has the UTF-16 regular
expression required. Unicode can be converted to Formal SignWriting
with the function csw2bsw followed by the function bsw2fsw.
Regards
-Steve
More information about the Sw-l
mailing list