Project

viljushka

0.0
No commit activity in last 3 years
No release in over 3 years
Character conversion from Latin alphabet to Serbian Cyrillic script and vice versa
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.0
>= 2.0.0
 Project Readme

Description

Character conversion to and from and String operations for Latin alphabet and Serbian Cyrillic script.

Methods #downcase, #downcase!, #upcase, #upcase! & #capitalize are Serbian Cyrillic & Latin case compatible as well as maintaining their previous functionality on A-Z ASCII character set.

Install

$ gem install viljushka

Usage

require 'viljushka'

> "sarma".upcase.po_vuku # or .to_cyr
"САРМА"
> "САРМА".downcase.po_gaju # or .to_lat
"sarma"
> "жирафа".capitalize
"Жирафа"

Note

The idea for this gem comes from Dalibor Nasevic, who originally created it for Macedonian Cyrillic.