Overview
Comment: | [graphspell] suggestion: prevents splitting trailing numbers if not following an alpha character |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | graphspell |
Files: | files | file ages | folders |
SHA3-256: |
cbbb58a48702deaae6a9afaa9315b041 |
User & Date: | olr on 2020-03-27 12:45:19 |
Other Links: | manifest | tags |
Context
2020-03-27
| ||
13:53 | [server] update bottlepy 0.12.13 -> 0.12.18 check-in: ac85e5e839 user: olr tags: trunk, server | |
12:45 | [graphspell] suggestion: prevents splitting trailing numbers if not following an alpha character check-in: cbbb58a487 user: olr tags: trunk, graphspell | |
12:28 | [fx] gc panel: check if error has property aColor check-in: f3aef226d4 user: olr tags: trunk, fx | |
Changes
Modified graphspell-js/ibdawg.js from [e7f965d16f] to [b87d78e936].
︙ | ︙ | |||
343 344 345 346 347 348 349 | } //console.timeEnd("Suggestions for " + sWord); return aSugg; } _splitTrailingNumbers (oSuggResult, sWord) { let m = /^([a-zA-Zà-öÀ-Ö_ø-ÿØ-ßĀ-ʯfi-st][a-zA-Zà-öÀ-Ö_ø-ÿØ-ßĀ-ʯfi-st-]+)([0-9]+)$/.exec(sWord); | | | 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 | } //console.timeEnd("Suggestions for " + sWord); return aSugg; } _splitTrailingNumbers (oSuggResult, sWord) { let m = /^([a-zA-Zà-öÀ-Ö_ø-ÿØ-ßĀ-ʯfi-st][a-zA-Zà-öÀ-Ö_ø-ÿØ-ßĀ-ʯfi-st-]+)([0-9]+)$/.exec(sWord); if (m && !m[1].endsWith("-") && !m[1].endsWith("_")) { oSuggResult.addSugg(m[1] + " " + char_player.numbersToExponent(m[2])); } } _splitSuggest (oSuggResult, sWord) { // split at apostrophes for (let cSplitter of "'’") { |
︙ | ︙ |
Modified graphspell/ibdawg.py from [8d60018109] to [34d4e4f42a].
︙ | ︙ | |||
313 314 315 316 317 318 319 | if sSfx or sPfx: # we add what we removed return list(map(lambda sSug: sPfx + sSug + sSfx, aSugg)) return aSugg def _splitTrailingNumbers (self, oSuggResult, sWord): m = re.match(r"(\D+)([0-9]+)$", sWord) | | | 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 | if sSfx or sPfx: # we add what we removed return list(map(lambda sSug: sPfx + sSug + sSfx, aSugg)) return aSugg def _splitTrailingNumbers (self, oSuggResult, sWord): m = re.match(r"(\D+)([0-9]+)$", sWord) if m and m.group(1)[-1:].isalpha(): oSuggResult.addSugg(m.group(1) + " " + cp.numbersToExponent(m.group(2))) def _splitSuggest (self, oSuggResult, sWord): # split at apostrophes for cSplitter in "'’": if cSplitter in sWord: sWord1, sWord2 = sWord.split(cSplitter, 1) |
︙ | ︙ |