Project

kakasi

0.01
No release in over 3 years
Low commit activity in last 3 years
A Ruby binding for KAKASI implemented with Fiddle/DL/FFI
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2
>= 0
> 2.4.2
 Project Readme

Kakasi for Ruby

A Ruby binding for KAKASI implemented with Fiddle/DL/FFI

Description

This library is a port of Ruby/KAKASI to Ruby >=1.9.

Ruby/KAKASI was an extension library written by GOTO Kentaro for ancient CRuby, which did not work with Ruby >=1.9 or JRuby,

This implementation uses Fiddle/DL/FFI as a bridge to libkakasi, so it should work with any ruby that supports Fiddle/DL/FFI module, such as:

  • Ruby 1.9.3 (DL)
  • Ruby 2.0.0+ (Fiddle)
  • Rubinius (Rubinius::FFI)
  • JRuby (FFI)

Installation

Add this line to your application's Gemfile:

gem 'kakasi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install kakasi

Usage

require 'kakasi'

Kakasi.kakasi('-w', 'Rubyから案山子を呼び出せます。')
#=> "Ruby から 案山子 を 呼び出せ ます 。"

Links

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request