maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Keyboard layouts for Jolla's Sailfish OS (https://talk.maemo.org/showthread.php?t=91917)

J4ZZ 2013-12-21 02:54

Re: Keyboard layouts for Jolla's Sailfish OS
 
Hi there,

I just wanted to ask if we can also add/collect layouts for terminal here.
I can only choose between english and finnish layout for terminal. But I really would love to have my qwertz keyboard back. ;)

Regards

J4ZZ

Bundyo 2013-12-21 07:16

Re: Keyboard layouts for Jolla's Sailfish OS
 
Quote:

Originally Posted by J4ZZ (Post 1399323)
Hi there,

I just wanted to ask if we can also add/collect layouts for terminal here.
I can only choose between english and finnish layout for terminal. But I really would love to have my qwertz keyboard back. ;)

Regards

J4ZZ

Sure, if someone contributed them. I'll edit the first post later today.

czdosi 2013-12-21 15:35

Re: Keyboard layouts for Jolla's Sailfish OS
 
Quote:

Originally Posted by Kaacz (Post 1399320)
Now I create Czech qwerty layout with two deadkeys, near same as I have on N9/Harmattan. I found bug in 'AccentedCharacterKey.qml'. Or I don't know how is right way to define deadKeysAccents for more then one deadkey. :p

I make little patch:

Code:


//  original - i don't know what is mean ..
//    property string _accentedText: _deadAccentIndex > -1 && !keyboard.inSymView ? _deadKeyAccents.substr(_deadAccentIndex*2+1, 1) : ""

//  for definition  deadKeyAccents: "´ˇéě"
property string _accentedText: _deadAccentIndex > -1 && !keyboard.inSymView ? _deadKeyAccents.substr((_deadKeyAccents.length/2)+_deadAccentIndex, 1) : ""

First version Czech qwertz & qwerty vkb with two deadkeys here as example:

https://www.dropbox.com/s/3kbg36393fynqnr/cz.qml
https://www.dropbox.com/s/az43mdxkprv1r7o/cz_qwerty.qml

added to layouts.conf:
https://www.dropbox.com/s/9r1oiyu8p30ahyr/layouts.conf

and AccentedCharacterKey.qml patched for more then one deadkey:
https://www.dropbox.com/s/58mruc40se...aracterKey.qml

Screenshots:
https://www.dropbox.com/s/l6tpseufxj...1221030722.png
https://www.dropbox.com/s/8u7hjusmll...1221030733.png

Hi Kaacz! :-) I think that original idea was to store accents like key => value array. So accent should be before accented char.
Code:

deadKeyAccents: "´éˇě"
But there is probably bug in AccentedCharacterKey.qml -- "*2" shouldn't be there.
Code:

// Original: property string _accentedText: _deadAccentIndex > -1 && !keyboard.inSymView ? _deadKeyAccents.substr(_deadAccentIndex*2+1, 1) : ""
property string _accentedText: _deadAccentIndex > -1 && !keyboard.inSymView ? _deadKeyAccents.substr(_deadAccentIndex+1, 1) : ""

Which works nicely. :-)

My changed files are there: https://drive.google.com/folderview?...&usp=drive_web

matimilko 2013-12-22 08:33

Re: Keyboard layouts for Jolla's Sailfish OS
 
Quote:

Originally Posted by justadude (Post 1391958)
Any plans of a swype layout for the keyboard? Thanks

I'm also waiting for SWYPE. After N9 with swype for two years is now all writing like hard work ...

Bundyo 2013-12-22 19:55

Re: Keyboard layouts for Jolla's Sailfish OS
 
FingerTerm default layouts:
http://www.bundyo.org/jolla/layouts/FingerTerm/

they go to ~/.config/FingerTerm/

fri 2013-12-23 10:18

Re: Keyboard layouts for Jolla's Sailfish OS
 
Hi,

here's my version for a catalan layout (copy this file ca.qml in /usr/share/maliit/plugins/com/jolla/layouts/):

http://ubuntuone.com/7Bz8nNQLec0EIfnf7MRGsV

and remember to add this lines for the layouts.conf file:

Code:

[ca.qml]
name=Català
languageCode=CA

it has [ç] and apostrophe ['] as main keys, and a preference for [à] accent. Also, hold apostrophe to get [-]. Also, hold [L] to get [·] (punt volat) to write correctly the [l·l] phoneme :D

And another question: Has anyone figured out how to tweak the whole dictionary to get predictive text in any language we want?

rventura 2013-12-24 05:50

eyboard layouts for Jolla's Sailfish OS
 
Installed! Thanks fri!

Quote:

Originally Posted by fri (Post 1399884)
Hi,

here's my version for a catalan layout (copy this file ca.qml in /usr/share/maliit/plugins/com/jolla/layouts/):

http://ubuntuone.com/7Bz8nNQLec0EIfnf7MRGsV

and remember to add this lines for the layouts.conf file:

Code:

[ca.qml]
name=Català
languageCode=CA

it has [ç] and apostrophe ['] as main keys, and a preference for [à] accent. Also, hold apostrophe to get [-]. Also, hold [L] to get [·] (punt volat) to write correctly the [l·l] phoneme :D

And another question: Has anyone figured out how to tweak the whole dictionary to get predictive text in any language we want?


Bundyo 2013-12-24 07:37

Re: Keyboard layouts for Jolla's Sailfish OS
 
Quote:

Originally Posted by fri (Post 1399884)
And another question: Has anyone figured out how to tweak the whole dictionary to get predictive text in any language we want?

Did you manage to find it? I couldn't, at least yet.

Nikos Alexandris 2013-12-24 09:31

Re: Keyboard layouts for Jolla's Sailfish OS
 
Quote:

Originally Posted by qwazix (Post 1397706)
Ελληνικά

Code:

import qtquick 2.0
import ".."

keyboardlayout {
    keyboardrow {
        characterkey { caption: ";"; captionshifted: ":"; symview: "1"; symview2: "€" }
        characterkey { caption: "ς"; captionshifted: "€"; symview: "2"; symview2: "£" }
        accentedcharacterkey { caption: "ε"; captionshifted: "Ε"; symview: "3"; symview2: "$"; accents: "έ"; accentsshifted: "Έ"; deadkeyaccents: "´έ"; deadkeyaccentsshifted: "´Έ"  }
        characterkey { caption: "ρ"; captionshifted: "Ρ"; symview: "4"; symview2: "¥" }
        characterkey { caption: "τ"; captionshifted: "Τ"; symview: "5"; symview2: "₹" }
        accentedcharacterkey { caption: "υ"; captionshifted: "Υ"; symview: "6"; symview2: "%"; accents: "ύϋΰ"; accentsshifted: "Ϋ"; deadkeyaccents: "´ύ"; deadkeyaccentsshifted: "´Ύ"  }
        characterkey { caption: "θ"; captionshifted: "Θ"; symview: "7"; symview2: "<"; }
        accentedcharacterkey { caption: "ι"; captionshifted: "Ι"; symview: "8"; symview2: ">"; accents: "ίϊΐ"; accentsshifted: "ΊΪ"; deadkeyaccents: "´ί"; deadkeyaccentsshifted: "´Ί"  }
        accentedcharacterkey { caption: "ο"; captionshifted: "Ο"; symview: "9"; symview2: "["; accents: "ό"; accentsshifted: "Ό"; deadkeyaccents: "´ό"; deadkeyaccentsshifted: "´Ό"  }
        characterkey { caption: "π"; captionshifted: "Π"; symview: "0"; symview2: "]" }
    }

    keyboardrow {
        accentedcharacterkey { caption: "α"; captionshifted: "Α"; symview: "*"; symview2: "`"; accents: "ά"; accentsshifted: "Ά"; deadkeyaccents: "´ά"; deadkeyaccentsshifted: "´Ά" }
        characterkey { caption: "σ"; captionshifted: "Σ"; symview: "#"; symview2: "^" }
        characterkey { caption: "δ"; captionshifted: "Δ"; symview: "+"; symview2: "|" }
        characterkey { caption: "φ"; captionshifted: "Φ"; symview: "-"; symview2: "_" }
        characterkey { caption: "γ"; captionshifted: "Γ"; symview: "="; symview2: "§" }
        accentedcharacterkey { caption: "η"; captionshifted: "Η"; symview: "("; symview2: "{"; accents: "ή"; accentsshifted: "Ή"; deadkeyaccents: "´ή"; deadkeyaccentsshifted: "´Ή"  }
        characterkey { caption: "ξ"; captionshifted: "Ξ"; symview: ")"; symview2: "}" }
        characterkey { caption: "κ"; captionshifted: "Κ"; symview: "~"; symview2: "°" }
        characterkey { caption: "λ"; captionshifted: "Λ"; symview: "!"; symview2: "¡" }
        deadkey { id: Deadkey; caption: "´"; captionshifted: "¨";}
    }

    keyboardrow {
        shiftkey {}

        characterkey { caption: "ζ"; captionshifted: "Ζ"; symview: "@"; symview2: "«" }
        characterkey { caption: "χ"; captionshifted: "Χ"; symview: "&"; symview2: "»" }
        characterkey { caption: "ψ"; captionshifted: "Ψ"; symview: "/"; symview2: "÷"}
        accentedcharacterkey { caption: "ω"; captionshifted: "Ω"; symview: "\\"; symview2: "“"; accents: "ώ"; accentsshifted: "Ώ"; deadkeyaccents: "´ώ"; deadkeyaccentsshifted: "´Ώ"  }
        characterkey { caption: "β"; captionshifted: "Β"; symview: "\""; symview2: "”" }
        characterkey { caption: "ν"; captionshifted: "Ν"; symview: ";"; symview2: "„"}
        characterkey { caption: "μ"; captionshifted: "Μ"; symview: ":"; symview2: "·" }

        backspacekey {}
    }

    keyboardrow {
        symbolkey {
            width: Symbolkeywidthnarrow
        }
        characterkey {
            caption: "'"
            captionshifted: "'"
            width: Punctuationkeywidthnarrow
            fixedwidth: True
        }
        characterkey {
            caption: ","
            captionshifted: ","
            width: Punctuationkeywidthnarrow
            fixedwidth: True
            separator: False
        }
        spacebarkey {
            fixedwidth: True
        }
        characterkey {
            caption: "."
            captionshifted: "."
            width: Punctuationkeywidthnarrow
            fixedwidth: True
            separator: False
        }
        enterkey {}
    }
}


Ευχαριστώ πολύ :-)

tiempjuuh 2013-12-24 10:06

Re: Keyboard layouts for Jolla's Sailfish OS
 
Quote:

Originally Posted by Bundyo (Post 1400206)
Did you manage to find it? I couldn't, at least yet.

At least I think, because of many references I found in /usr/share/maliit/, it uses Nuances XT9 prediction. XT9 is available in many languages, so that's good, but it's closed source and I can't find the place where the dictionaries are stored... :(

Maybe it's a good start to find out in which format they're stored, where they are located and if it is possible to add other languages, like Dutch. It could be doable since we've got an open source dictionary team, found here.


All times are GMT. The time now is 00:39.

vBulletin® Version 3.8.8