DraqueT / PolyGlot

PolyGlot is a conlang construction toolkit.
MIT License
387 stars 44 forks source link

Can't switch keyboard layout within the program #1218

Closed 5ucur closed 1 year ago

5ucur commented 1 year ago

I am working on a conlang which will be written in Cyrillic characters. I thought this program would be very helpful for the development. However, I can't seem to switch the keyboard layout within the program; if I switch it outside the program, the program doesn't recognise it.

I am using PolyGlot 3.5.1 on Arch Linux, and for keyboard layouts, I use fcitx.

This results in an inability to directly input any other characters than those in my Latin layout, and I have to resort to copy-pasting from another program.
I can also circumvent this by putting the Cyrillic layout first in the list in fcitx config, but as I use the i3 window manager, which relies on keyboard shortcuts, I can't use most shortcuts because the keyboard would be inputting Cyrillic characters by default (I have tried this already).

I think I can invent a Latin equivalent for the Cyrillic alphabet of the conlang, for use with the program in its current state; but I would really prefer to be able to directly input the same characters as I input elsewhere.

5ucur commented 1 year ago

Update: I used the Character Replacement functionality within Phonology & Text, to map certain Latin characters to Cyrillic ones. This greatly eases the input of the Cyrillic characters to the program. But the issue with layout switching still stands.

DraqueT commented 1 year ago

So unfortunately, I think that this is Java not getting along with the layout management going on in Arch Linux. It may be related to a longstanding bug reported here: https://wiki.archlinux.org/title/Input_method

I am not super familiar with Arch, but is there an alternative to the keyboard management system that is currently being used?

5ucur commented 1 year ago

There are other programs for the layout, yes, but if it's an issue with Arch specifically, I'm not sure if switching to a different program would be helpful - it's too much work at this moment for one program that doesn't cooperate well with fcitx.

If this is a Java problem rather than a PolyGlot problem, I guess it's safe to close this issue? I'll leave that up to you if you decide so.

DraqueT commented 1 year ago

Sorry for the long silence here (real life). It unfortunately seems like this is 100% a Java interaction with OSes. There's not a lot I can do here short of writing something custom. Fingers crossed that Java and Arch get along better in the future, but I think I'm going to have to close the ticket, as a custom solution is just out of scope.