ibus-avro icon indicating copy to clipboard operation
ibus-avro copied to clipboard

Avro-Dvorac

Open BahaTanvir opened this issue 4 years ago • 8 comments

I use Dvorak for English typing. I used to type both Bangla and English with Dvorak layout on windows now I can't on ubuntu . Please help me.

BahaTanvir avatar Feb 11 '21 16:02 BahaTanvir

Does this work? This is about typing Chinese in ibus with the Dvorak layout, the process for writing Bangla with the Dvorak layout would be analogous. https://askubuntu.com/q/695659/124466

archisman-panigrahi avatar Feb 11 '21 17:02 archisman-panigrahi

What is the exact problem you are encountering? Please explain in detail.

sarim avatar Feb 11 '21 17:02 sarim

It may differ depending on which desktop environment you are using. On GNOME it seems to work to open /usr/share/ibus/component/ibus-avro.xml for editing and change the line

<layout>us</layout>

to

<layout>us+dvorak</layout>

gunnarhj avatar Feb 12 '21 00:02 gunnarhj

@apandada1 wrote:

Does this work? This is about typing Chinese in ibus with the Dvorak layout, the process for writing Bangla with the Dvorak layout would be analogous. https://askubuntu.com/q/695659/124466

Not quite. pinyin.xml has default as the layout value, while ibus-avro.xml has us. So at least the first of those Ask Ubuntu answers does not apply.

gunnarhj avatar Feb 12 '21 00:02 gunnarhj

Seems like I have to research again about this us vs default layout. We had a discussion about that. I don't remember why I choose us over default. I have to dig out that issue again

sarim avatar Feb 12 '21 01:02 sarim

@sarim: There are pros and cons with both. As an example, a user whose only input sources are Russian and Avro Phonetic wouldn't be so happy with the default layout. :)

But I have no own opinion on what's the best choice.

Edit:

Well, actually I have an opinion. ibus-anthy lets the user select the layout in preferences. That's probably the ideal solution. The question is if it's worth the extra work.

gunnarhj avatar Feb 12 '21 01:02 gunnarhj

Well, actually I have an opinion. ibus-anthy lets the user select the layout in preferences. That's probably the ideal solution. The question is if it's worth the extra work.

I'll list it as a todo for v2. The xml file is not user editable, so if they're letting user select it, maybe they are converting layout / keycode etc.. inside engine code. I'll look into it later.

sarim avatar Feb 12 '21 02:02 sarim

They seem to watch two xml files:

$ cat /usr/share/ibus/component/anthy.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- filename: anthy.xml -->
<component>
	<name>org.freedesktop.IBus.Anthy</name>
	<description>Anthy Component</description>
	<exec>/usr/lib/ibus/ibus-engine-anthy --ibus</exec>
	<version>1.5.11</version>
	<author>Peng Huang &lt;[email protected]&gt;</author>
	<license>GPL</license>
	<homepage>https://github.com/ibus/ibus/wiki</homepage>
	<textdomain>ibus-anthy</textdomain>

	<!-- for engines -->
	<observed-paths>
		<path>~/.config/ibus-anthy/engines.xml</path>
		<path>/usr/share/ibus-anthy/engine/default.xml</path>
	</observed-paths>
	<engines exec="/usr/lib/ibus/ibus-engine-anthy --xml" />
</component>

So the user is offered to change the one in $HOME, and they have a dconf value with predefined options.

Not sure if something similar would make sense for ibus-avro. Maybe it would be to overdo it, after all.

gunnarhj avatar Feb 12 '21 02:02 gunnarhj