Skip to content
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

jquery.ime.inputmethods.js should be generated automatically #357

Open
Nikerabbit opened this issue Jun 14, 2014 · 2 comments
Open

jquery.ime.inputmethods.js should be generated automatically #357

Nikerabbit opened this issue Jun 14, 2014 · 2 comments

Comments

@Nikerabbit
Copy link
Member

Currently the language autonyms and input methods names are duplicated, and can easily get out of sync. It is also extra burden to update those, when it can be done automatically (similarly to jquery.uls.data).

@alolita
Copy link

alolita commented Jun 21, 2014

Niklas - do you have suggestions to create an unified approach to sharing language names across various features. I am curious about Santhosh's views on a solution.

@santhoshtr
Copy link
Member

jquery.ime.inputmethods.js cannot be completely generated using some script in the current state. There are input methods which serve multiple languages and which languages they serve is not specified inside the input method.

        'lbe': {
            autonym: 'лакку',
            inputmethods: [ 'cyrl-palochka' ]
        },
        'lez': {
            autonym: 'лезги',
            inputmethods: [ 'cyrl-palochka' ]
        },

Then the dependency between input methods is also given in jquery.ime.inputmethods.js

'mai-inscript': {
            name: 'इनस्क्रिप्ट',
            source: 'rules/mai/mai-inscript.js',
            depends: 'hi-inscript'
        },
        'mai-inscript2': {
            name: 'इनस्क्रिप्ट २',
            source: 'rules/mai/mai-inscript2.js',
            depends: 'hi-inscript2'
        },

If we want to generate the file automatically, we need to move this info to the input method file. It is doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants