Project

furirubi

0.0
No release in over 3 years
Low commit activity in last 3 years
Translate kanji to furigana and with the ruby HTML format.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Furirubi

Translate kanji to furigana and with the ruby HTML format. Based on https://jisho.org/.

e.g.

世界 経済 フォーラム は => 世界せかい経済けいざいフォーラムは

Notice: Translation result is inaccurate. It needs to be confirmed again if it's going to be used on business

Installation

Add this line to your application's Gemfile:

gem 'furirubi'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install furirubi

Usage

Furirubi.parse('世界 経済 フォーラム は')

=> "<ruby>世界<rt>せかい</rt></ruby><ruby>経済<rt>けいざい</rt></ruby>フォーラムは"

Roadmap

  • Testing
  • Support other dictionaries

License

The gem is available as open source under the terms of the MIT License.