Grammalecte  Check-in [6288449780]

Overview
Comment:[core] comment update
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | core
Files: files | file ages | folders
SHA3-256: 6288449780049297452ab77e5a908870debd6d325493ac6a52922103ba5286c3
User & Date: olr on 2017-06-26 06:54:12
Other Links: manifest | tags
Context
2017-06-26
07:03
[core] spellchecker wrapper check-in: abf7b36236 user: olr tags: trunk, core, new_feature
06:54
[core] comment update check-in: 6288449780 user: olr tags: trunk, core
06:50
[core] ibdawg: suggestion mechanism update + keyboard chars proximity check-in: 80ebc25208 user: olr tags: trunk, core
Changes

Modified gc_core/py/keyboard_chars_proximity.py from [d1b0d3e0b7] to [8f397a7bbf].

1
2
3
4
5
6
7
8
9
10
11
12
13


14
15
16
17
18
19
20
# Keyboard chars proximity


def getKeyboardMap (sKeyboard):
    return _dKeyboardMap.get(sKeyboard.lower(), {})


def getKeyboardList ():
    return _dKeyboardMap.keys()


# bépo, colemak and dvorak users are assumed to do less typing errors.
_dKeyboardMap = {


    "azerty": {
        # fr
        # line 1
        "é": "az",
        "è": "yu",
        "ç": "àio",
        "à": "op",











<

>
>







1
2
3
4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
19
20
21
# Keyboard chars proximity


def getKeyboardMap (sKeyboard):
    return _dKeyboardMap.get(sKeyboard.lower(), {})


def getKeyboardList ():
    return _dKeyboardMap.keys()



_dKeyboardMap = {
    # keyboards by alphabetical order
    # bépo, colemak and dvorak users are assumed to do less typing errors.
    "azerty": {
        # fr
        # line 1
        "é": "az",
        "è": "yu",
        "ç": "àio",
        "à": "op",