sarim / ibus-avro

Avro phonetic bangla typing layout for ibus
Mozilla Public License 2.0
240 stars 92 forks source link

Avro-Dvorac #163

Open BahaTanvir opened 3 years ago

BahaTanvir commented 3 years ago

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.

archisman-panigrahi commented 3 years ago

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

sarim commented 3 years ago

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

gunnarhj commented 3 years ago

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 commented 3 years ago

@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.

sarim commented 3 years ago

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

gunnarhj commented 3 years ago

@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.

sarim commented 3 years ago

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.

gunnarhj commented 3 years ago

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;shawn.p.huang@gmail.com&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.