Coder Social home page Coder Social logo

hiragana.js's Introduction

Hiragana.js

This is a simple Javascript library that provides an IME for text boxes on your websites.

Live Demo

Download hiragana.min.js

Usage

Using hiragana.js is simple:

  1. Add data-ime="hiragana" to any element you want the IME to be enabled on.
  2. Run ime.enable() from Javascript after the DOM is loaded.

Make sure that you set the character encoding on your page! Make this the first thing in your <head>:

<meta charset="UTF-8" />

Before

<input type="text" />
<textarea></textarea>

After

<input type="text" data-ime="hiragana" />
<textarea data-ime="hiragana"></textarea>
<script type="text/javascript">ime.enable();</script>

Hiragana.js has no dependencies, and should be able to easily integrate into your website.

Contributing

I'm pretty new to Japanese, so it's possible that I haven't quite got this right. Please, feel free to submit your suggestions. I'd also like to eventually support katakana and kanji, but I do not have the requisite knowledge. Support for additional languages may also be desirable.

To contribute, fork the repository and submit your changes as pull requests. Make sure you update hirigana.min.js with your changes, and stick to the existing coding style.

hiragana.js's People

Contributors

ddevault avatar anubhav-chattoraj avatar klange avatar

Watchers

James Cloos avatar Swiss 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.