View Single Post
Posts: 123 | Thanked: 108 times | Joined on Oct 2008 @ Prague, Czech
#30
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 code - i don't know what is mean .. 
//    property string _accentedText: _deadAccentIndex > -1 && !keyboard.inSymView ? _deadKeyAccents.substr(_deadAccentIndex*2+1, 1) : ""

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

//  code for definition  deadKeyAccents: "´ˇéě"
property string _accentedText: _deadAccentIndex > -1 && !keyboard.inSymView ? _deadKeyAccents.substr((_deadKeyAccents.length/2)+_deadAccentIndex, 1) : ""
https://together.jolla.com/question/...n-one-deadkey/

Second version Czech qwertz & qwerty vkb with two deadkeys here as example
(second release with own files to avoid collision with originals):

Look at Screenshots

Put to dir /usr/share/maliit/plugins/com/jolla this:
- AccentedCharacterKey2.qml patched for more then one deadkey
- DeadKey2.qml with better recognition on layout.

Put to dir /usr/share/maliit/plugins/com/jolla/layouts this:
- cz.qml
- cz_qwerty.qml
- 1_custom_czech.conf file (no need to edit original layouts.conf, maliit load any .conf file in this dir).

Edit 2014-01-15: fixed cz layout and move some spec chars in both layouts .. improved DeadKey look.
Edit 2014-01-22: created own *2.qml files to avoid conflict with original, created own 'layout.conf'.

Edit: 2014-01-31: fixed cz.qml (qwertz) layout to proper use AccentedCharacterKey2.qml (fixed version).
Bug for more deadkeys still not fixed in update 1.0.3.8.

Last edited by Kaacz; 2014-01-31 at 19:09.
 

The Following 5 Users Say Thank You to Kaacz For This Useful Post: