-
Notifications
You must be signed in to change notification settings - Fork 14
#217 add icao-mul-cyrl-latn-2015 #570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CAMOBAP
commented
Oct 17, 2020
- #217
|
@ronaldtse it's a first ProposalLanguage-specific rules can look like this: Extend @ronaldtse @AhMohsen46 @andrew2net @antonsviridenko let me know how do you think? |
|
@CAMOBAP agree, for the “mul” map, it should be coded as “iso-639-3:mul”, and the language specific rules could be either:
|
|
@ronaldtse as far as I see we already implemented the first option, we have a list of |
|
@CAMOBAP Then is your proposal to also allow the second option? There are indeed systems that are supposed to work with multiple languages, e.g. ISO 9 is supposed to work with 62 languages and splitting it into 62 files is not ideal. |
I thought that this task created exactly for this approach (single mapping many supported languages) initially, correct me if I'm wrong |
|
@CAMOBAP it wasn't but it seems like a good idea 😉 |
|
@ronaldtse ok I will update this PR according to the https://github.com/interscript/interscript/pull/570#issuecomment-711034309 above |
bf032ab to
a92a617
Compare
| it "test for #{test}" do | ||
| Timeout::timeout(5) do | ||
| result = Interscript.transliterate(system_name, test["source"], cache) | ||
| result = Interscript.transliterate(system_name, test["source"], cache, { :language => test["language"] }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [117/80]
Redundant curly braces around a hash parameter.
Use the new Ruby 1.9 hash syntax.
53f3765 to
7ede562
Compare
|
Thanks @CAMOBAP ! @webdev778 could you have a look on how to port this functionality to the JS side? Please directly commit to this branch. Thanks! |
7ede562 to
006388f
Compare
| cache = {} | ||
| # Let's preload the cache but silence the exception if not possible | ||
| # (it will be reraised during the test) | ||
| Interscript.transliterate(system_name, "", cache) rescue nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid using rescue in its modifier form.
|
|
||
| require "timeout" | ||
| require "pycall/import" | ||
| include PyCall::Import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include is used at the top level. Use inside class or module.
|
Thank you @CAMOBAP ! Finally!! |
|
@ronaldtse not done yet unfortunatelly( but I will deal with it today |
|
Closed in favour of interscript/maps#168 |