tjbladez / translit Goto Github PK
View Code? Open in Web Editor NEWTransliteration between cyrillic <-> latin | Транслитерация между кирилицой и латиницой
Transliteration between cyrillic <-> latin | Транслитерация между кирилицой и латиницой
I wish I could make a PR, but apparently it's still not possible when dealing with Github repository meta-data...
s/Транслитерация между кирилицой и латиницой/Транслитерация между кириллицей и латиницей/
Translit.convert('')
NoMethodError: undefined method `scan' for nil:NilClass
from .../gems/translit-0.1.5/lib/translit.rb:35:in `detect_input_language'
This commit (997899c) introduces a bug that causes "ьЬь" to be inserted between each character when transliterating back to Russian. The key with a value of "" is invalid. The key should be "'".
If I know I want to translit to ascii, I'd like to be able to convert in that direction, but right now the API makes that impossible
Need add #coding: utf-8 as first line to /lib/translit.rb for work in 1.9.2 version ruby
Tnx for module
Error translating combination "ля" in word "для". Now: "dlq", expected: "dlya"
calling translit to process stdin fails after entering some text and pressing ENTER:
/var/lib/gems/2.1.0/gems/translit-0.1.5/lib/translit.rb:35:in `detect_input_language': undefined method `scan' for nil:NilClass (NoMe
from /var/lib/gems/2.1.0/gems/translit-0.1.5/lib/translit.rb:8:in `convert!'
from /var/lib/gems/2.1.0/gems/translit-0.1.5/lib/translit.rb:20:in `convert'
from /var/lib/gems/2.1.0/gems/translit-0.1.5/bin/translit:14:in `<top (required)>'
from /usr/local/bin/translit:23:in `load'
from /usr/local/bin/translit:23:in `<main>'
This is on a debian machine, translit installed via gem install.
Translit.convert('спальнями', :english)
=> "spal'nyamи"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.