Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 531 Bytes

File metadata and controls

16 lines (10 loc) · 531 Bytes

Transliteration class for Lua

The algorithm for this class and transliteration tables are taken from Drupal module Transliteration: https://drupal.org/project/transliteration

Dependencies

Class depends on file bit.lua from LuaBit library (http://luaforge.net/projects/bit/). Bit.lua included to this repository.

Usage

t = Transliterator:new('data') -- 'data' is a path to directory with replacement tables

print(t:transliteration_get('Тест стринг'))