Overview
Comment: | [core] fix previous commit: forget the function for JavaScript, and and move it to the proper file |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | core |
Files: | files | file ages | folders |
SHA3-256: |
2cb9c394c306b9197df574c719e83ffc |
User & Date: | olr on 2020-08-08 11:24:08 |
Other Links: | manifest | tags |
Context
2020-08-08
| ||
14:39 | [build][core] code cleaning: useless function check-in: 7bad62afc4 user: olr tags: trunk, core, build | |
11:24 | [core] fix previous commit: forget the function for JavaScript, and and move it to the proper file check-in: 2cb9c394c3 user: olr tags: trunk, core | |
10:52 | [fr] ajustements check-in: 3ca534a710 user: olr tags: trunk, fr | |
Changes
Modified gc_lang/fr/modules-js/gce_analyseur.js from [1edcbef032] to [13a42a7dc2].
︙ | ︙ | |||
54 55 56 57 58 59 60 | return true; } if (s.length > 1 && s.length < 16 && s.slice(0, 1).gl_isLowerCase() && (!s.slice(1).gl_isLowerCase() || /[0-9]/.test(s))) { return true; } return false; } | > > > > > > > > > > > > > > > > > | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | return true; } if (s.length > 1 && s.length < 16 && s.slice(0, 1).gl_isLowerCase() && (!s.slice(1).gl_isLowerCase() || /[0-9]/.test(s))) { return true; } return false; } function queryNamesPOS (sWord1, sWord2) { let lMorph1 = _oSpellChecker.getMorph(sWord1); let lMorph2 = _oSpellChecker.getMorph(sWord2); if (lMorph1.length == 0 || lMorph2.length == 0) { return ":N:e:p"; } let sGender1 = cregex.getGender(lMorph1); let sGender2 = cregex.getGender(lMorph2); if (sGender1 == ":m" || sGender2 == ":m") { return ":N:m:p"; } if (sGender1 == ":f" || sGender2 == ":f") { return ":N:f:p"; } return ":N:e:p"; } |
Modified gc_lang/fr/modules/gce_analyseur.py from [577ebd9866] to [7f3b260c43].
︙ | ︙ | |||
49 50 51 52 53 54 55 | def mbUnit (s): "returns True it can be a measurement unit" if _zUnitSpecial.search(s): return True if 1 < len(s) < 16 and s[0:1].islower() and (not s[1:].islower() or _zUnitNumbers.search(s)): return True return False | > > > > > > > > > > > > > | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | def mbUnit (s): "returns True it can be a measurement unit" if _zUnitSpecial.search(s): return True if 1 < len(s) < 16 and s[0:1].islower() and (not s[1:].islower() or _zUnitNumbers.search(s)): return True return False def queryNamesPOS(sWord1, sWord2): lMorph1 = _oSpellChecker.getMorph(sWord1) lMorph2 = _oSpellChecker.getMorph(sWord2) if not lMorph1 or not lMorph2: return ":N:e:p" sGender1 = cr.getGender(lMorph1) sGender2 = cr.getGender(lMorph2) if sGender1 == ":m" or sGender2 == ":m": return ":N:m:p" if sGender1 == ":f" or sGender2 == ":f": return ":N:f:p" return ":N:e:p" |
Modified gc_lang/fr/modules/gce_suggestions.py from [72c426fe26] to [5701f141a0].
︙ | ︙ | |||
535 536 537 538 539 540 541 | '/': '_' }) def normalizeInclusiveWriting (sToken): "typography: replace word separators used in inclusive writing by underscore (_)" return sToken.translate(_xNormalizedCharsForInclusiveWriting) | < < < < < < < < < < < < < < | 535 536 537 538 539 540 541 | '/': '_' }) def normalizeInclusiveWriting (sToken): "typography: replace word separators used in inclusive writing by underscore (_)" return sToken.translate(_xNormalizedCharsForInclusiveWriting) |