Home

Awesome

Iuliia

🇷🇺Russian Cyrillic → Latin transliteration for Crystal.

The library includes all main international and Russian transliteration standards. For schema details and other information, see https://github.com/nalgeon/iuliia (schemas ❤️) and https://iuliia.ru (in Russian).

For 🇺🇦Ukrainian Cyrillic transliteration, check out this library instead.

CI

Quickstart

require "iuliia"

Iuliia::Wikipedia.translate("Национальный Технический Университет «Днепровская политехника»")
# 🇷🇺 => "Natsionalny Tekhnichesky Universitet «Dneprovskaya Politekhnika»"

Iuliia::Wikipedia.translate("Фёдор Достоевский")
# 🇷🇺 => "Fyodor Dostoyevsky"

Iuliia::IcaoDoc9303.translate("Фёдор Достоевский")
# 🇷🇺 => "Fedor Dostoevskii"

Performance

LibraryThroughput
Crystal544,680 words/sec
Go591,711 words/sec
Ruby32,269 words/sec

REPL

In the examples folder you can find a small REPL to play with.

$ crystal examples/repl.cr

[iuliia] >> Московский Кремль
=> Moskovsky Kreml
[iuliia] >> Парк Зарядье
=> Park Zaryadye
[iuliia] >>

Supported schemas

For examples and specifics, please refer to 📚 the documentation.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      iuliia:
        github: lucasintel/iuliia
    
  2. Run shards install

Development

To import Iuliia schemas, run crystal schema_importer/importer.cr.

Contributing

  1. Fork it (https://github.com/lucasintel/iuliia-cr/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 a new Pull Request

Contributors