View Single Post
Posts: 4 | Thanked: 20 times | Joined on Jun 2011
#33
Originally Posted by Kaacz View Post
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.

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