adnikiforov / iuliia-rb Goto Github PK
View Code? Open in Web Editor NEWRussian transliteration using nalgeon/iuliia schemas
License: MIT License
Russian transliteration using nalgeon/iuliia schemas
License: MIT License
Hello!
No schemes available after gem installation.
Steps to reproduce:
gem install iuliia
irb
> require 'iuliia'
> Iuliia::Schema.available_schemas
=> []
ruby -v
ruby 3.0.2p107
There is one transliteration schema with ability to reverse transliteration: ISO 9:1995
(https://dangry.ru/iuliia/#unambiguous)
That's the plan:
.translit
and get Latin string back)Seems like most of the iuliia libraries for the other languages implements translate
method instead of translit
. I believe it's a good idea to make an alias and make old method deprecated.
Also readme changes required as well.
You might want to make lib/schemas
folder a git submodule pointing to https://github.com/nalgeon/iuliia
repo. This will make it easier to keep schemas up to date.
If you consider doing so:
git submodule add https://github.com/nalgeon/iuliia lib/schemas
Right now it looks like that:
2.6.6 :002 > Iuliia::Schema['mvd']
Traceback (most recent call last):
7: from bin/console:15:in `<main>'
6: from (irb):2
5: from (irb):2:in `rescue in irb_binding'
4: from /Users/user/RubymineProjects/iuliia-rb/lib/iuliia/schema.rb:11:in `[]'
3: from /Users/user/RubymineProjects/iuliia-rb/lib/iuliia/schema.rb:25:in `block in schemas'
2: from /Users/user/RubymineProjects/iuliia-rb/lib/iuliia/schema.rb:29:in `load_schema'
1: from /Users/user/RubymineProjects/iuliia-rb/lib/iuliia/schema.rb:29:in `read'
Errno::ENOENT (No such file or directory @ rb_sysopen - lib/schemas/mvd.json)
Better if we will return more polite and understandable error.
Hello!
If the source string contains latin letter such letters will disappear from the result.
Iuliia.translate("ibm pc — первый массовый персональный компьютер", schema: 'icao_doc_9303')
=> " — pervyi massovyi personalnyi kompiuter"
Python library doesn't remove latin letters https://github.com/nalgeon/iuliia-py
iuliia.translate("IBM PC — первый массовый персональный компьютер", schema=iuliia.ICAO_DOC_9303)
'IBM PC — pervyi massovyi personalnyi kompiuter'
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.