Differences From Artifact [aea8dd1016]:
- File gc_core/py/char_player.py — part of check-in [6c8c1776f5] at 2017-11-07 17:03:03 on branch spellsugg — [core] ibdawg: use SuggResult object + code cleaning (user: olr, size: 7255) [annotate] [blame] [check-ins using] [more...]
To Artifact [b008c1ffec]:
- File gc_core/py/char_player.py — part of check-in [51e3a2e76e] at 2017-11-08 21:16:37 on branch spellsugg — [core] ibdawg: update char_player (user: olr, size: 7731) [annotate] [blame] [check-ins using]
︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + + | 'œ': 'oe', 'æ': 'ae', }) def cleanWord (sWord): "word simplication before calculating distance between words" return sWord.lower().translate(_xTransChars).replace("eau", "o").replace("au", "o") aVowel = set("aáàâäāeéèêëēiíìîïīoóòôöōuúùûüūyýỳŷÿȳœæAÁÀÂÄĀEÉÈÊËĒIÍÌÎÏĪOÓÒÔÖŌUÚÙÛÜŪYÝỲŶŸȲŒÆ") aConsonant = set("bcdefghjklmnñpqrstvwxzBCDEFGHJKLMNÑPQRSTVWXZ") aDouble = set("bcdfjklmnprstzBCDFJKLMNPRSTZ") # letter that may be used twice successively # Similar chars d1to1 = { "1": "liîLIÎ", "2": "zZ", "3": "eéèêEÉÈÊ", |
︙ | |||
152 153 154 155 156 157 158 159 160 161 162 | 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | + + + + + + + + - - | "B": ("BB",), "c": ("cc", "ss", "qu", "ch"), "C": ("CC", "SS", "QU", "CH"), "ç": ("ss", "cc", "qh", "ch"), "Ç": ("SS", "CC", "QH", "CH"), "d": ("dd",), "D": ("DD",), "é": ("ai", "ei"), "É": ("AI", "EI"), "è": ("ai", "ei"), "È": ("AI", "EI"), "ê": ("ai", "ei"), "Ê": ("AI", "EI"), "ë": ("ai", "ei"), "Ë": ("AI", "EI"), "f": ("ff", "ph"), "F": ("FF", "PH"), "g": ("gu", "ge", "gg", "gh"), "G": ("GU", "GE", "GG", "GH"), |
︙ |