New URL: http://www.iki.fi/~kartturi/tekstit/kanjidic.htm

Kanji Dictionary

Kanji Dictionary is an electronic dictionary software for displaying Japanese KANA (syllabaries) and KANJI (ideograms originated from China) characters and their meanings in English, showing for each character also, in case they have been defined, The characters are indexed with three different indices, the one according to the JIS code, and the two others corresponding to the indices of two alternative kanji dictionaries. The software gives a user a way to browse back and forth on any of these indices.

In addition to the navigational mode of browsing, any specific character can be looked up by its English meaning, various Japanese pronounciations, its JIS or other index, or by specifying one or more standard 'radicals' (elements) of the character. The database, which consists of over 2000 characters and their meanings, composition and usage examples, is represented with Lisp-style linked lists.


There are two implementations of this software

  1. The old bare MS-DOS version coded in C (about 14,000 lines) and assembly code (1000 lines) which had fancy things like my own primitive windowing system (no space for Windows in my machine), and a limited ability to add new user commands (to the "kanji shell" the software formed) by compiling new overlays to be dynamically loaded onto the basic platform. E.g. there were an overlay module for browsing any JIS text file, showing each KANJI and KANA character as a link to that character's definition, and there were another one for converting arabic numbers to the kanji notation.

    This was all coded at 1989, when I certainly had never heard of HTML or Web, and I had only a dim inkling of the hypertext in general.

    Unfortunately, this version is nowadays very much obsolete, and I am not even sure whether I have any working set of the sources left.


  2. The new Web implementation, called Kanji Server, coded mostly with the good old Franz Lisp (nowadays freely available) and with some C, running on an old MicroVax under 4.3 BSD Unix. Kanji Server is implemented as its own special purpose Web-server, listening to and parsing by itself all the HTTP-requests coming from clients.

    For this I just recoded in Lisp some C modules of the old MS-DOS version and added few C and Lisp modules for handling the HTTP protocol which is needed when communicating directly with the client browsers.

    The database is essentially the same one as used in the old MS-DOS version, being built of nested Lisp lists and expressions. The main task of Kanji Server is at the starting time (right after the boot) to build convenient, RAM-based indices of this data, and then respond to the queries sent by the clients.

    For each received valid request Kanji Server will dynamically generate a HTML-page with a standard layout but its contents reflecting the requested entry.

    Currently only a limited form of keyword queries, and queries by the index number are implemented in this version.

    The 7802 kanji and other characters of the JIS levels 1 and 2 are all collected in the GIF-format (with 24x24 pixel font) into a single huge file of about 900,000 bytes. The <IMG SRC> tags of HTML pages generated by Kanji Server have hyperlinks to a small cgi-script having as its argument the JIS-index of the required character. This script will then extract the character's GIF file out of that huge file, and send it to the client's browser, just like there had been a normal <IMG SRC> reference to an ordinary GIF file.

    History and Future Plans

    This is the first Web-application I have coded. I built the whole system in about two weeks time in late 1994, soon after which I came to Infosto R&D to build a new WWWGATE interface for the ETEP-server, software which also is mostly written with the Lisp language. There I found many features used in Kanji Server to be useful also in this new project, things like listening to and handling the HTTP requests, and dynamical generation of HTML-pages from the underlying data structures stored in wholly different format.

References


NOTE ADDED AT 8. May 1997

I'm sorry, there is no working version of this Kanji Dictionary available now, neither in Cute's machines nor here. However, you can check for the sources and other miscellaneous kanji-related stuff in the directory http://www.iki.fi/~kartturi/JISserver/
I advise you also to look at Jim Breen's excellent Japanese Page at http://www.rdt.monash.edu.au/~jwb/japanese.html, where you can find links to many functional Kanji Dictionaries.