← Back to team overview

ubuntu-phone team mailing list archive

Re: Keyboard layout

 

On 01/12/2014 02:24 PM, Tomas wrote:
> Hi,
>
> any news about when Swedish keyboard will be merged?
Just a quick update on this. The keyboard language plugins have landed
are part of the latest image. The functionality that this enables is the
following:

- dynamically switching the keyboard layout to the desired language
layout via a "globe" key on the keyboard that lists the enabled languages
- when word prediction and/or spell checking is enabled, the dictionary
and prediction used is based on the active keyboard language (we're
working on decoupling the dictionary from the active keyboard lang, but
that hasn't landed yet)

Currently you need to do some manual steps to make this work, as the
Settings panel for Language and Text is not yet in sync with these
changes (will be soon).

Do the following for now until the Settings UI lands:
- ssh to the device as user phablet (or run terminal app)
- To set the enabled languages:
gsettings set com.canonical.keyboard.maliit enabled-languages
"['en','de', 'sv']"
(substitue supported langs of your choice here, they can be found by "ls
/usr/share/maliit/plugins/com/ubuntu/lib")
- To set the active language used by the keyboard:
gsettings set com.canonical.keyboard.maliit active-language sv
- To enable spell checking and word prediction
gsettings set com.canonical.keyboard.maliit spell-checking true
gsettings set com.canonical.keyboard.maliit predictive-text true

This will cause globe to show up in most layouts where you can then
press and hold to display the list and change dynamically.

Bill
>
> BR,
> Tomas
>
> 2013-11-05 15:47, Thomas Moenicke skrev:
>> Hi Tomas,
>>
>> I wrote the Swedish layout yesterday, it should get merged soon. If
>> LANGUAGE contains the swedish locale sv, it should be shown in the
>> keyboard.
>>
>>
>>
>> On Tue, Nov 5, 2013 at 3:35 PM, Tomas Ö <tomoqv@xxxxxxxxx
>> <mailto:tomoqv@xxxxxxxxx>> wrote:
>>
>>     Correction to the GMail and Twitter comment below. After a reboot
>>     keyboard works (but without auto-caps) in GMail, but still not
>>     when composing a tweet. Using the search function in Twitter
>>     brings up the keyboard.
>>
>>     /Tomas
>>
>>     Tomas Ö skrev 2013-11-05 15:16:
>>>     Hi Bill,
>>>
>>>     I am on 14.04 (r10) and yes, I noticed that auto-caps is working
>>>     in the Notes and Messaging apps. However, when I try composing a
>>>     new message in GMail or a new tweet in the Twitter app, the
>>>     keyboard doesn't even show up.
>>>
>>>     With reference to the reply from Thomas, I was wondering about
>>>     the command:
>>>     adb shell sudo -iu phablet gsettings set
>>>     com.canonical.keyboard.maliit enabled-languages "['en', 'es',
>>>     'fr', 'pt', 'de', 'zh']"
>>>     The layout is picked from the LANGUAGE env variable. A recent
>>>     keyboard is needed.
>>>
>>>     In a previous build r100 I think, I tried changing the keyboard
>>>     layout according to my question here:
>>>     http://askubuntu.com/questions/362910/swedish-keyboard-on-ubuntu-touch
>>>
>>>     Does the keyboard depend on the display language from the Ubuntu
>>>     Touch settings? I was thinking I could use a Swedish keyboard
>>>     together with the English UI language, as Swedish is not yet
>>>     enabled in Ubuntu Touch (probably because it isn't ready
>>>     enough). In that case, how do I enable Swedish for the UI?
>>>
>>>     Thanks,
>>>     Tomas
>>>
>>>
>>>     Bill Filler skrev 2013-11-05 14:51:
>>>>     On 11/05/2013 06:23 AM, Tomas Ö wrote:
>>>>>     Hi Thomas,
>>>>>
>>>>>     thanks for the input. I will try this for the keyboard layout.
>>>>>     As I stated below, I have tried the auto-caps command without
>>>>>     any result. I guess that is what you meant with the
>>>>>     "predicitive-text true" command...? I will try that again also.
>>>>
>>>>     auto-caps is the default behavior now and is working in the
>>>>     latest image. The first letter of the word or after punctiation
>>>>     should be automatically capitilized in non special text fields.
>>>>     you should not need to turn predictive-text on to get the
>>>>     auto-caps functionality as they are properly decoupled. Are you
>>>>     using latest trusty image?
>>>>     phablet-flash ubuntu-system --channel trusty-proposed
>>>>>
>>>>>     I assume that these commands could also be issued from the
>>>>>     terminal app on the device, or?
>>>>>
>>>>>     Thank you,
>>>>>     Tomas
>>>>>
>>>>>     Thomas Moenicke skrev 2013-11-05 12:18:
>>>>>>     Hi Tomas,
>>>>>>
>>>>>>     you need to add the desired language to the list of enabled
>>>>>>     languages:
>>>>>>     adb shell sudo -iu phablet gsettings set
>>>>>>     com.canonical.keyboard.maliit enabled-languages "['en', 'es',
>>>>>>     'fr', 'pt', 'de', 'zh']"
>>>>>>     The layout is picked from the LANGUAGE env variable. A recent
>>>>>>     keyboard is needed.
>>>>>>
>>>>>>     For getting autocaps working also try this:
>>>>>>     adb shell sudo -iu phablet gsettings set
>>>>>>     com.canonical.keyboard.maliit predictive-text true
>>>>>>
>>>>>>     Thomas
>>>>>>
>>>>>>
>>>>>>
>>>>>>     On Wed, Oct 30, 2013 at 12:30 PM, Tomas Ö <tomoqv@xxxxxxxxx
>>>>>>     <mailto:tomoqv@xxxxxxxxx>> wrote:
>>>>>>
>>>>>>         Is it possible to change the keyboard layout with the
>>>>>>         gsettings command? I also tried to change
>>>>>>         auto-capitalization with the following command in the
>>>>>>         terminal on my device:
>>>>>>
>>>>>>         sudo -iu phablet gsettings set
>>>>>>         com.canonical.keyboard.maliit auto-capitalization true
>>>>>>
>>>>>>         but it didn't work.
>>>>>>
>>>>>>         Thanks,
>>>>>>         Tomas
>>>>>>
>>>>>>         --
>>>>>>         Mailing list: https://launchpad.net/~ubuntu-phone
>>>>>>         <https://launchpad.net/%7Eubuntu-phone>
>>>>>>         Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>>>>>>         <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
>>>>>>         Unsubscribe : https://launchpad.net/~ubuntu-phone
>>>>>>         <https://launchpad.net/%7Eubuntu-phone>
>>>>>>         More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>     --
>>     Mailing list: https://launchpad.net/~ubuntu-phone
>>     <https://launchpad.net/%7Eubuntu-phone>
>>     Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>>     <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
>>     Unsubscribe : https://launchpad.net/~ubuntu-phone
>>     <https://launchpad.net/%7Eubuntu-phone>
>>     More help   : https://help.launchpad.net/ListHelp
>>
>>
>


References