Project

unihan2

0.0
Low commit activity in last 3 years
A long-lived project that still receives updates
Unihan Database Utilities
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Unihan2

gem install unihan2

Unicode version

15.1.0

example

get strokes of chinese character:

require 'unihan2'
unihan = Unihan2.new
unihan.strokes('三')  # return 3

Get Unicode Version by codepoint:

unihan.ver('2A6D7') # 13.0
unihan.ver(0x2A6D7) # 13.0

Get Unicode Version by character:

unihan.ver('中') # 1.1