Giter Club home page Giter Club logo

schanjidic's Introduction

schanjidic

schanjidic is a collection of scripts to query kanji information from kanjidic written in scheme.

Setup

You need guile 2.0 and a copy of kanjidic to run these scripts.

Files

  • /

    • alist.scm : the data structure used to represent the information about a kanji.

    • kanjifields.scm : holds informations about the fields of kanjidic.

    • schanjidic.scm : builds a internal representation of a kanjidic file.

    • test.scm : checks that the built representation of kanjidic is correct.

    • daemon.scm : a server that handles kanji queries.

  • /html/

    • html.scm : a web client for schanjidic.

    • kanjidic.html : a webpage that uses the web client to dynamicly display kanji informations (needs jquery).

    • html/kanjidic.css : a css file for this webpage.

Usage

schanjidic comes with three main scripts :

daemon.scm

This is is the main script of schanjidic, it runs as a sever that retrieves the kanji informations queried by the clients. Theses informations are returned as s-expressions that can be directly evaluated by lips-family languages, or easyly parsed by the others.

For example, if you are at the root of the schanjidic directory, you can launch the daemon as follow :

schanjidic$ guile -L . daemon.scm /usr/share/edict/kanjidic&

html.scm

This script is a web client for schanjidic, it takes a single URI parameter from the standard input and returns an HTML output that contains the information from the queried kanji. Example with ้ฝ’ :

schanjidic$ guile html/html.scm < echo "kanji=%E9%BD%92"

A running webpage using this client can be found at http://azubato.net/kanjidic.html.

test.scm

This script checks if the dictionnay built by schanjidic matches with the kanjidic file provided :

schanjidic$ guile -L . test.scm /usr/share/edict/kanjidic

To come

An elisp client to use schanjidic within emacs.

schanjidic's People

Contributors

jonathlela avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.