Hi Gilles,
You need to send a POST request to
http://kanji.sljfaq.org/kanji-0.016.cgi
The format is like this:
------------
H 01023456g83d
3a4d5f8g
------------
The first line contains a command, which is H for "Handwritten". Then
the line data comes in the form x, y, x, y, x, y. This is encoded
using base36 with two digits for each number. Obviously these are
padded with a leading zero if the x or y coordinate is less than 36.
In JavaScript you can use Number.toString(36) to form the coordinates.
The succeeding lines don't have a command. Finally there is a blank
line to indicate the end of transmission.
Please also set a user agent string so that I can see it is your
application. I suggest you use e.g. GillesApp or something. I will
contact you if I get some problems. Unfortunately there was such a
problem with another application which caused a fairly major problem
for my site so please take care not to send badly formatted requests
or I will have to block you. Really sorry but bandwidth, server
facilities are limited.
If you want to get "look ahead" results, you can use an L after the H like
HL 01020304
on the first line. There are other options but I don't think you need them.
Good luck with your application.
http://groups.google.com/group/sljfaqorg
This is where I make announcements about the site, so I really need
you to subscribe.
I send quite a lot of messages there about both this kanji recognition
and other sites which I manage, and many of them might not be relevant
to you, so note that you can filter the messages using a filter which
only passes messages with the content
I promise to always add this string to the subject line of messages
which are for people using the recognition engine.