Skip to content

mudasobwa/forkforge

Repository files navigation

logo ForkForge Unicode Library

Build Status Gemnasium Stories in Ready

Status: Minimum viable product


Features

Easy UTF-8 strings manipulation.

Up-/down-casing:

require 'forgkforge'
require 'forgkforge/knife/string'

'istanbul'.uppercase
#⇒ ISTANBUL
'istanbul'.uppercase 'tr'
#⇒ İSTANBUL
Forkforge::UnicodeData::code_points.math 'abc'
#⇒ Instance of CodePoints, a hash
"#{Forkforge::UnicodeData::code_points.math 'abc'}"
#⇒ 𝐚𝐛𝐜𝑎𝑏𝑐𝒂𝒃𝒄𝒶𝒷𝒸𝓪𝓫𝓬𝔞𝔟𝔠𝕒𝕓𝕔𝖆𝖇𝖈𝖺𝖻𝖼𝗮𝗯𝗰𝘢𝘣𝘤𝙖𝙗𝙘𝚊𝚋𝚌
(Forkforge::UnicodeData::code_points.math.franktur.bold 'abc').to_s
#⇒ 𝖆𝖇𝖈
"#{Forkforge::UnicodeData::code_points.franktur_math_bold 'abc'}"
#⇒ 𝖆𝖇𝖈
'1'.compose_circle
#⇒ ①

Installation

Add this line to your application's Gemfile:

gem 'forkforge'

And then execute:

$ bundle

Or install it yourself as:

$ gem install forkforge

Usage

Working features:

  • uppercase
  • lowercase
  • titlecase

Contributing

  1. Fork it ( http://github.com/mudasobwa/forkforge/fork )
  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