Project

cyrillic

0.0
No release in over 3 years
Low commit activity in last 3 years
Romanization (transliteration) of Cyrillic. Converts Cyrillic text to the Roman (Latin) script
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 13.0
~> 5.0
 Project Readme

Cyrillic -> Latin: Cyrillic.t("Кириллица") => "Kirillitsa"

Gem Version Build Status MIT License

Cyrillic is a Ruby gem for the romanization (transliteration) of Cyrillic script into the Latin alphabet. It provides a simple and flexible way to convert Cyrillic text using various international and language-specific standards.

Features

This gem supports multiple transliteration standards:

  • generic (Default)
  • iso9
  • ukrainian
  • ukrainian passport
  • mongolian
  • german

Installation

Add this line to your application's Gemfile:

gem 'cyrillic'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cyrillic

Usage

The gem provides a simple interface through the Cyrillic.t (or Cyrillic.transliterate) method.

Basic Usage

By default, it uses a generic transliteration scheme.

require "cyrillic"

Cyrillic.t("Кириллица")
#=> "Kirillitsa"

Specifying a Standard

You can specify a transliteration standard by passing a symbol as the second argument.

ISO 9

Cyrillic.transliterate("Кириллица", :iso9)
#=> "Kirillica"

Ukrainian

Cyrillic.transliterate("Кирилиця", :ukrainian)
#=> "Kyrylytsia"

Mongolian

Cyrillic.t("Монгол хэл", :mongolian)
#=> "Mongol khel"

Development

After checking out the repo, run bin/setup to install development dependencies.

To run the test suite, use the rake command:

$ rake

You can also run bin/console for an interactive prompt that will allow you to experiment with the gem.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rovetz/cyrillic. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

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

Code of Conduct

Everyone interacting in the Cyrillic project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.