Overview
Comment: | [graphspell] cut function update |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | graphspell |
Files: | files | file ages | folders |
SHA3-256: |
c2f9cc4e973302b2f6dcdde13ae414cc |
User & Date: | olr on 2018-04-25 18:24:42 |
Other Links: | manifest | tags |
Context
2018-04-25
| ||
19:15 | [fx] small CSS update check-in: 246f8e79d6 user: olr tags: trunk, fx | |
18:24 | [graphspell] cut function update check-in: c2f9cc4e97 user: olr tags: trunk, graphspell | |
2018-04-24
| ||
16:28 | [fx] panel color update check-in: 559de398ba user: olr tags: trunk, fx | |
Changes
Modified graphspell-js/char_player.js from [7291fde2c1] to [1bb2f8a481].
︙ | ︙ | |||
359 360 361 362 363 364 365 | aPfx2: new Set([ "belgo", "franco", "génito", "gynéco", "médico", "russo" ]), cut: function (sWord) { // returns an arry of strings (prefix, trimed_word, suffix) | | | 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 | aPfx2: new Set([ "belgo", "franco", "génito", "gynéco", "médico", "russo" ]), cut: function (sWord) { // returns an arry of strings (prefix, trimed_word, suffix) let m = /^([a-zA-Zà-öÀ-Ö0-9_ø-ÿØ-ßĀ-ʯfi-st]+)(-(?:t-|)(?:ils?|elles?|on|je|tu|nous|vous|ce)$)/.exec(sWord); if (m) { return ["", m[1], m[2]]; } return ["", sWord, ""]; }, // Other functions |
︙ | ︙ |
Modified graphspell/char_player.py from [e2226d7f4a] to [195969a6df].
︙ | ︙ | |||
348 349 350 351 352 353 354 | "pseudo", "pré", "re", "ré", "sans", "sous", "supra", "sur", "ultra" ]) aPfx2 = frozenset([ "belgo", "franco", "génito", "gynéco", "médico", "russo" ]) | | | 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 | "pseudo", "pré", "re", "ré", "sans", "sous", "supra", "sur", "ultra" ]) aPfx2 = frozenset([ "belgo", "franco", "génito", "gynéco", "médico", "russo" ]) _zMotAvecPronom = re.compile("^(?i)(\\w+)(-(?:t-|)(?:ils?|elles?|on|je|tu|nous|vous|ce))$") def cut (sWord): "returns a tuple of strings (prefix, trimed_word, suffix)" m = _zMotAvecPronom.search(sWord) if m: return ("", m.group(1), m.group(2)) return ("", sWord, "") |
︙ | ︙ |