behe-keyboard icon indicating copy to clipboard operation
behe-keyboard copied to clipboard

Multiple language support?

Open Dariasteam opened this issue 7 years ago • 24 comments

I would like to use this keyboard not only for programming like tasks but as main input method on my language (spanish) There are plans to support it?

Dariasteam avatar Aug 09 '17 01:08 Dariasteam

I just discovered that long pressing 'a' offers me some accents (áăâä) but when i do it on 'o', 'u' and 'e' it doesn't

Dariasteam avatar Aug 09 '17 01:08 Dariasteam

I'm currently working on adding multiple language support. I would like to add it in the next update, but it requires lots of work and I don't think I'll be able to add it in the next update, but they will be added as soon as I can. However, I'll add more accents to more characters until I will be able to add multiple languages

VladThodo avatar Aug 09 '17 14:08 VladThodo

++1

Please add nmore languages when possible, also most keyboards would let you switch between languages by sliging the space key (like hackers keyboard).

It would be nice to get persian, turkish, russian etc scripts.

thanks

gerroon avatar Aug 09 '17 17:08 gerroon

Most keyboards? Which ones? I only know about hk so far.

CrimsonFork avatar Aug 13 '17 15:08 CrimsonFork

Sliding the space key may be ok to choose between two or three layouts but my experience with KH shows it is horrible when using more than three. The menu of the native Adnroid keyboard to choose layouts is much better.

ghost avatar Aug 16 '17 12:08 ghost

I was not able to add multiple languages in the this update. However, I added accents to all the characters on the keyboard. The future update will bring multiple languages.

VladThodo avatar Aug 20 '17 13:08 VladThodo

thanks man

gerroon avatar Aug 20 '17 18:08 gerroon

Wow. If it will be multi-language, especially, Ukrainian… :) I'm waiting for updates. It looks like ideal.

pss34 avatar Oct 02 '17 14:10 pss34

AZERTY french keyboard layout would be more than welcome 😄

timkrief avatar Feb 09 '18 05:02 timkrief

@timkrief AZERTY French Layout, proof of concept, modification of qwerty.xml: screenshot_20180221-193023

https://gist.github.com/seigneurfuo/cdbd8ef59b7aeafa280d3202d280e285

seigneurfuo avatar Feb 21 '18 18:02 seigneurfuo

@seigneurfuo I am working on an implementation, (with preferences azerty / qwerty).

timkrief avatar Feb 21 '18 22:02 timkrief

@timkrief On my side, I will update my layout with the last release (1.1.2), and improving layout ergonomy. This layout will be based on the GoogleKeyboard Azerty French layout.

seigneurfuo avatar Feb 21 '18 22:02 seigneurfuo

@seigneurfuo I just realized that there are four files involving qwerty:

  • qwerty.xml
  • qwerty_arrow_numbers.xml
  • qwerty_arrows.xml
  • qwerty_numbers.xml

You'll have to make four azerty versions I guess ? ^^

timkrief avatar Feb 21 '18 22:02 timkrief

I just made a pull request, https://github.com/VladThodo/behe-keyboard/pull/33 adding multiple langage support. Two choices for the moment azerty or qwerty. But it's up to you to make xml files for your keyboard layout ;) I made it easy to add more choices in the future.

timkrief avatar Feb 21 '18 23:02 timkrief

Dear all,

I would like to make a contribution (maybe via a pull request) to add new languages and also support for other layouts (Dvorak). I have seen xml files in the repository, but they do not seem to appear in the installation that I have in the device. How can I change the layout to start testing them?

Sorry if this issue is not the right place. Feel free to ask me to open a new issue.

Thank you,

xfim avatar Mar 16 '18 10:03 xfim

Hi, there are multiple files to change to make a layout appear in the app.

I can give you the instructions on how to do that later today.

timkrief avatar Mar 16 '18 11:03 timkrief

(We should automate this... :/ )

timkrief avatar Mar 16 '18 11:03 timkrief

(We should automate this... :/ )

Yes, that would be great, thank you.

I will wait for your instructions, then.

xfim avatar Mar 16 '18 11:03 xfim

@xfim

Hi, I'm back,

here are the instructions:

First, add [layout name].xml, [layout name]_arrows.xml, [layout name]_numbers.xml and [layout name]_arrow_numbers.xml to the app/src/main/res/xml/ directory

Then, in app/src/main/res/values/strings.xml you'll have to add your layout(s) after line 59 (and a new value after line 62 !important). There are layout 1 and 2 for the moment, you can add as many as you want, 3, 4, 5.... The name of the layout you'll use in this file is the one that the user will see in the menu.

The last thing to do is to add your layout as a possibility in the Java code. In the file app/src/main/java/com/vlath/keyboard/PCKeyboard.java there are 4 switches:

at lines 1289, 1300, 1310, 1321

you have to add the cases you need in those switches. You can just add the same code I wrote for case 2 azerty and change the case number and the layout names.

Once everything is setup the app should work with your new layouts (then make a pull request).

If you have any doubt, just look how I've done it for azerty.

If you have any trouble let us know ;)

timkrief avatar Mar 17 '18 01:03 timkrief

Thinking about creating some sort of web interface for creating layouts. It would be way easier, at least you won't have to rewrite the same keyboard for three times just for the numbers and/or arrow keys. Anyway, I'll keep you updated if I manage to do something about it.

Thanks for using BeHe!

VladThodo avatar Mar 17 '18 18:03 VladThodo

Thinking about creating some sort of web interface for creating layouts. It would be way easier, at least you won't have to rewrite the same keyboard for three times just for the numbers and/or keys. Anyway, I'll keep you updated if I manage to do something about it.

Don't worry, at least for me.

Not the next step is to learn how to pack it to make it an apk and send it to the device. It is my first attempt at contributing to an Android package.

xfim avatar Mar 17 '18 20:03 xfim

Pushed an update on Play Store which implements AZERTY layout and some emojis. Have credited you both in the Play Store app description.

Thank you for getting involved :-)

VladThodo avatar Mar 18 '18 14:03 VladThodo

Update quite after a long time. I'm currently working on Behe Keyboard 2.0, a version based on the standard android keyboard (a stripped down version of it, which excludes swipe typing and dictionaries). However it will have all the layouts that the standard AOSP keyboard features and will be way more polished than the current version. What do you guys think?

VladThodo avatar Oct 21 '18 16:10 VladThodo

I'm not an expert, but sounds reasonable for me.

On 21 October 2018 18:05:54 GMT+02:00, Vlad Todosin [email protected] wrote:

Update quite after a long time. I'm currently working on Behe Keyboard 2.0, a version based on the standard android keyboard (a stripped down version of it, which excludes swipe typing and dictionaries). However it will have all the layouts that the standard AOSP keyboard features and will be way more polished than the current version. What do you guys think?

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/VladThodo/behe-keyboard/issues/7#issuecomment-431681183

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.

CrimsonFork avatar Oct 31 '18 21:10 CrimsonFork