Overview
| Comment: | [core] ibdawg: suggestion mechanism update |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | core |
| Files: | files | file ages | folders |
| SHA3-256: |
5cd4863db37b6c2eb8385e1c0f8567f7 |
| User & Date: | olr on 2017-06-26 08:29:50 |
| Other Links: | manifest | tags |
Context
|
2017-06-26
| ||
| 08:45 | [fr] + 2 tests check-in: 0ff766161c user: olr tags: trunk, fr | |
| 08:29 | [core] ibdawg: suggestion mechanism update check-in: 5cd4863db3 user: olr tags: trunk, core | |
| 07:36 | [core] ibdawg: variable renamed check-in: 6d320f3f8d user: olr tags: trunk, core | |
Changes
Modified gc_core/py/char_player.py from [b5981aec34] to [14cba73827].
| ︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - + + |
return sWord.translate(_CHARMAP)
# Similar chars
d1to1 = {
"1": "li",
|
| ︙ | |||
135 136 137 138 139 140 141 | 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | - + + |
"z": ("ss", "zh")
}
d2toX = {
"an": ("en",),
"en": ("an",),
"ai": ("ei", "é", "è", "ê", "ë"),
|
| ︙ |
Modified gc_core/py/ibdawg.py from [9784b032d7] to [303901f49a].
| ︙ | |||
150 151 152 153 154 155 156 | 150 151 152 153 154 155 156 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 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | - + - - + + - + - + - + + + + |
if "’" in sWord: # ugly hack
sWord = sWord.replace("’", "'")
if self.lookup(sWord):
return True
if sWord[0:1].isupper():
if len(sWord) > 1:
if sWord.istitle():
|
| ︙ |