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

Adding layout for non-latin choises to target #88

Merged
merged 1 commit into from Aug 5, 2018

Conversation

Projects
None yet
4 participants
@Chocobo-ts
Copy link
Contributor

commented Aug 3, 2018

Additional US layout and toggle hotkey for choosed non-latin layouts in target system

Adding layout for non-latin choises to target
Additional US layout and toggle hotkey for choosed non-latin layouts in target system
'gh', 'gr', 'guj', 'guru', 'il', 'in', 'ir', 'iku',
'kan', 'kh', 'kz', 'la', 'lao', 'lk', 'mk', 'mm', 'mn',
'mv', 'mal', 'ori', 'pk', 'ru', 'scc', 'sy', 'syr',
'tel', 'th', 'tj', 'tam', 'ua', 'uz'):

This comment has been minimized.

Copy link
@kernc

kernc Aug 3, 2018

Contributor

Define the list somewhere separately:

NONLATIN_KEYBOARD_LAYOUTS = ...

Will also make it defined in a single place and can be reused (e.g. as in #89).

'kan', 'kh', 'kz', 'la', 'lao', 'lk', 'mk', 'mm', 'mn',
'mv', 'mal', 'ori', 'pk', 'ru', 'scc', 'sy', 'syr',
'tel', 'th', 'tj', 'tam', 'ua', 'uz'):
setup.keyboard_layout = 'us,%s' % self.setup.keyboard_layout

This comment has been minimized.

Copy link
@kernc

kernc Aug 3, 2018

Contributor

But why add the US layout?

This comment has been minimized.

Copy link
@Chocobo-ts
newconsolefh.write("XKBLAYOUT=\"%s\"\n" % setup.keyboard_layout)
elif(line.startswith("XKBVARIANT=") and setup.keyboard_variant is not None):
newconsolefh.write("XKBVARIANT=\"%s\"\n" % setup.keyboard_variant)
elif(line.startswith("XKBOPTIONS=")):
newconsolefh.write("XKBOPTIONS=grp:alt_shift_toggle")

This comment has been minimized.

Copy link
@kernc

kernc Aug 3, 2018

Contributor

Isn't this a little to much to assume and pre-set for the user? Is Alt+Shift standard shortcut to switch layouts?

This comment has been minimized.

Copy link
@Chocobo-ts

Chocobo-ts Aug 4, 2018

Author Contributor

Yes, Alt+Shift is most frequently shortcut for it)
And everything in this fix - based on ubiquity behavoir

@clefebvre clefebvre merged commit 82e4641 into linuxmint:master Aug 5, 2018

@xenopeek xenopeek removed the In Progress label Aug 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.