![]() |
Re: Keyboard layouts for Jolla's Sailfish OS
If you want to hack autocaps and preedit off in your custom keyboard that can be done easily with few lines in layout QML file:
Code:
KeyboardLayout {Updated: bug fix to this instruction. Property type alone disables both text prediction and autocaps and enables usage of custom input handler. Do not use it unless you want to change input handler from default. Update ; Ouch! I tried to disable to word prediction by changing value of read only property... |
Re: Keyboard layouts for Jolla's Sailfish OS
OK, I did one test...
1. Created folder custom-he inside: /usr/share/maliit/plugins/com/jolla 2. Copied all .qml, .js and qmldir files from /usr/share/maliit/plugins/com/jolla to my folder custom-he 3. In he.qml I changed this line: import ".." to this one: import "../custom-he" 4. created custom-he.conf 5. edited KeyboardLayout.qml inside my folder custom-he to fit landscape and portrait mode. 5. restart maliit server. The vkb loads ok, all work good without touching the original files EXCEPT arrows buttons :( they just not work for some reasons... Here is a content of the one arrows (LeftArrowKey.qml): Code:
import QtQuick 2.0Don't know how to get it work, or which file I need to edit... |
Re: Keyboard layouts for Jolla's Sailfish OS
Check this http://talk.maemo.org/showpost.php?p...&postcount=197 to get arrow keys working. Forget those LeftArrowKey.qml, RightArrowKey.qml, etc and use that one file for all four arrow key directions. It has internal input handler for arrow keys and it works.
Forget also that modified InputHandler.qml which you have and which adds support for arrow keys. You can't modify only that file to get custom input handler, you need more files from system and that wouldn't be feasible compared to solution I made in CustomArrowKey.qml That and few other files also available in Github Gist: https://gist.github.com/JanneEdelman/9496850 Edit: Changing stock KeyboardLayout.qml is typically an indication that something is wrong with your layout, not in KeyboardLayout.qml file which is very flexible if your layout file has been properly defined. Let me know what is the problem with stock KeyboardLayout.qml, I think we can solve it. |
Re: Keyboard layouts for Jolla's Sailfish OS
Mr Penguin, would you care to make an finnisk kb rpm with side-arrows?
|
Re: Keyboard layouts for Jolla's Sailfish OS
I am working to get custom keyboard framework implemented which would contain as many layouts as possible, preferrably separately installable and configurability to all layouts for spacebar row whether you want
|
Re: Keyboard layouts for Jolla's Sailfish OS
Quote:
Quote:
|
Re: Keyboard layouts for Jolla's Sailfish OS
Quote:
Thanks P.S. But if user don't want to see all languages and want to see only 2-3, he still need replace layouts.conf file... |
Re: Keyboard layouts for Jolla's Sailfish OS
5 Attachment(s)
Normally I use an English keyboard, and I compiled an extended English keyboard with a few changes.
- For a Dutchman not all extended characters are necessary, so I skipped most of them. - I added numbers 1 to 0 at the upper row. It requires some counting ("Now where is the 7 again?"), but it should be doable. - I added characters ;\([{ to the comma and !?:/)]} to the dot. - Some other useful characters were added to the L. I thought that would be the easiest to remember. These characters are -#%*_ The keyboard is in the zip under enx.qml. There is an extra enx.conf file with it, all normal English settings are being used. Both to be copied as instructed earlier as root to Code:
/usr/share/maliit/plugins/com/jolla/layoutsCode:
killall maliit-serverThanks to Penguin for helping me along the way. |
Re: Keyboard layouts for Jolla's Sailfish OS
Very nice ideas for custom keyboards. I like!
|
Re: Keyboard layouts for Jolla's Sailfish OS
Quote:
Unless someone else will deepdive into this I will look this matter after next Sailfish update (or may be this night, who knows what mad scientist will do ;) |
Re: Keyboard layouts for Jolla's Sailfish OS
Quote:
Now I will try to do the same for two additional heb vkb's with toggle. Will see if I can leave orig. layout.conf or need to change it... Thanks for your help.. |
Re: Keyboard layouts for Jolla's Sailfish OS
OK, finally I did it. All 3 variations of Hebrew vkb's updated and reuploaded to openrepos. Now all of them not touched the original files and all work :D
Thanks Penguin! |
Re: Keyboard layouts for Jolla's Sailfish OS
greek with arrows?it was very helpfull.
|
Re: Keyboard layouts for Jolla's Sailfish OS
SailfishOS 1.0.4.20 Ohijärvi breaks custom keyboard installation process and you have go to settings to enable installed keyboard manually.
Does anyone know if there is a method to alter settings from command line or do we need to write an application to enable new keyboard layout automatically? I know pretty much how to do it from qml, but I would like to do it automatically from post install script when new keyboard layout is installed. |
Re: Keyboard layouts for Jolla's Sailfish OS
My manually installed keyboard EnglishX went on without problems. Emoji are still there. Maybe the setting for Untrusted software should be enabled first?
|
Re: Keyboard layouts for Jolla's Sailfish OS
No problem with installation and "Untrusted software" setting does not make any difference. New keyboards won't be visible in keyboards language selection without enabling them in settings.
|
Re: Keyboard layouts for Jolla's Sailfish OS
|
Re: Keyboard layouts for Jolla's Sailfish OS
I've installed my package and it was enabled by default (at least it was on when I opened the language chooser).
|
Re: Keyboard layouts for Jolla's Sailfish OS
I tested with your package (bulgarian_phonetic_keyboard) too and neither of my two Jollas enable that layout either. Could be something to do with if you have ever touched the enabled layout list in settings or not. I have.
|
Re: Keyboard layouts for Jolla's Sailfish OS
Quote:
P.S. Just noticed, we can disable not necessary languages in keyboards language selection area :D |
Re: Keyboard layouts for Jolla's Sailfish OS
So are you saying that you get new keyboard layout automatically visible in virtual keyboards language popper after installation and you do not have to go to Settings -> System Settings -> Text Input -> Keyboards and enable it from there? I do not mean keyboard already installed before SailfishOS update, but new ones.
I get new keyboards visible on text input settings as disabled keyboard and need to enable from there manually. Anyway I have now configuration script that can automatically enable and disable keyboard when installed/uninstalled. I wait confirmations how this feature actually works for others and do some testing before updating any keyboard packages. |
Re: Keyboard layouts for Jolla's Sailfish OS
yep, exactly.. not needed to go to setting.
|
Re: Keyboard layouts for Jolla's Sailfish OS
Quote:
|
Re: Keyboard layouts for Jolla's Sailfish OS
Yes, only such keyboard is applicable to testing this, which was not installed during Ohijärvi update. Once enable remains enabled even if uninstalled and installed again. Once disabled remains disabled after uninstall - install cycle.
|
Re: Keyboard layouts for Jolla's Sailfish OS
do u know how to make chinese keyboard??
|
Re: Keyboard layouts for Jolla's Sailfish OS
Ok, now I have end user confirmation that new keyboard must be manually enabled from settings. I will proceed according to that and target to publish my solution to this by tomorrow.
|
Re: Keyboard layouts for Jolla's Sailfish OS
Czech keyboard has now script to enable it automatically during installation and cleanup configuration during uninstallation. After user feedback I will update other layouts too (or start fixing issues).
Install with warehouse to ensure keyboard-custom-common dependency package will be installed too or download it separate and install first. Requires SailfishOS 1.0.4.x or newer and won't install on older releases. |
Re: Keyboard layouts for Jolla's Sailfish OS
Quote:
|
Re: Keyboard layouts for Jolla's Sailfish OS
Quote:
|
Re: Keyboard layouts for Jolla's Sailfish OS
Of course. I want to ensure first that it works really properly
|
Re: Keyboard layouts for Jolla's Sailfish OS
So there are a lot of other keyboards now. Did anyone include a dictionary as well? To put it differently: I am using an English dictionary and word guesser for both Dutch and English messages. So the English dictionary is being flooded with Dutch words. Still, not all frequently used Dutch words are displayed by the word guesser, as English words seem to have a higher priority.
I wouldn't mind starting with an empty dictionary and call it Dutch. I would fill it up myself. Does anybody know how to proceed? (And then I'd like to replace my messed-up English dictionary with an original one...) |
Re: Keyboard layouts for Jolla's Sailfish OS
I have custom input handler under construction to prevent flooding dictionaries with words from other languages.
Dictionaries are based on commercial and closed source xt9 and adding custom dictionaries into that is not possible. I would be very much interested to implement custom word prediction and dictionary solution based on presage. Presage could be even used as plugin in maliit but Jolla is holding modifications they have made to maliit source code. There is also a challenge that it should be recompiled and stock maliit installation replaced with custom one, which in my opinion is not feasible solution for larger audience. Presage could be used as Qt plugin with QML import if anyone with enough knowledge could help in such implementation. Implementing such goes way too much beyond my skills. |
Re: Keyboard layouts for Jolla's Sailfish OS
Quote:
|
Re: Keyboard layouts for Jolla's Sailfish OS
Thanks! Let's see what we can find out.
I don't still fancy about idea of replacing stock maliit with custom one. That might cause unexpected issues later. |
Re: Keyboard layouts for Jolla's Sailfish OS
Quote:
https://together.jolla.com/question/...guages-to-xt9/ |
Re: Keyboard layouts for Jolla's Sailfish OS
I have voted it there but it is more about replacing xt9 with presage which I do not see feasible solution in short term. Presage may require more own work than using xt9 requires and thus for commercial use and product creation with limited resources xt9 might be still better option. However xt9 won't be ever open and this might be also matter of resources.
Current xt9 as it has been implemented is also pretty useless. I am used to prediction system in iOS that allows me to write blindly as it replaces the written alphabets with proposed ones automatically. I can write words where no character is correct and still the prediction system finds the correct one automatically. Not always, but for most of the words. This xt9 system as it has been implemented in Jolla shows list of words where you need to select. With the time and effore to read the proposed words and select from those I can write the whole word and thus this current solution is useless for me. |
Re: Keyboard layouts for Jolla's Sailfish OS
1 Attachment(s)
Hi all,
I would like to introduce 2 additional layouts for Jolla. Serbian Latin, and Serbian Cyrillic. Latin is almost like Slovenian which is used as starting point (one letter difference). Cyrillic is made to be as similar to desktop keyboard layout as possible. Penguin, could I kindly ask you to pack this and attach to your repository on openrepos. Thanks in advance. I would do it by myself, but I do not have setup here for that. Thanks Branek |
Re: Keyboard layouts for Jolla's Sailfish OS
Thanks for your contribution to custom keyboard layouts. Both Serbian keyboard layouts now available from openrepos:
|
Re: Keyboard layouts for Jolla's Sailfish OS
And I made a layout for those of you who like Dvorak.
If you have any suggestions, feel free to comment at the gist. |
Re: Keyboard layouts for Jolla's Sailfish OS
Hi,
Can someone guide me how to create RPM in order to distribute the Arabic keyboard that I created via RPM? |
| All times are GMT. The time now is 23:38. |
vBulletin® Version 3.8.8