Overview
Comment: | [core][fr] suggestions for uppercase words |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | fr | core |
Files: | files | file ages | folders |
SHA3-256: |
c72fda69d9c45397134571246318ebcd |
User & Date: | olr on 2020-05-06 16:08:24 |
Other Links: | manifest | tags |
Context
2020-05-06
| ||
18:46 | [fr] ajustements et faux positifs, URL -> https check-in: 9954475e75 user: olr tags: trunk, fr | |
16:08 | [core][fr] suggestions for uppercase words check-in: c72fda69d9 user: olr tags: trunk, fr, core | |
15:57 | [core] uppercase suggestion for upeercase token check-in: c0835edd62 user: olr tags: trunk, core | |
Changes
Modified gc_lang/fr/modules-js/gce_suggestions.js from [de44ba5567] to [54549da722].
︙ | ︙ | |||
253 254 255 256 257 258 259 | if (sFlex.endsWith("AL") && sFlex.length > 2 && _oSpellChecker.isValid(sFlex.slice(0,-1)+"UX")) { aSugg.add(sFlex.slice(0,-1)+"UX"); } if (sFlex.endsWith("AIL") && sFlex.length > 3 && _oSpellChecker.isValid(sFlex.slice(0,-2)+"UX")) { aSugg.add(sFlex.slice(0,-2)+"UX"); } } | > | | | | | > > > > > > > > | 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | if (sFlex.endsWith("AL") && sFlex.length > 2 && _oSpellChecker.isValid(sFlex.slice(0,-1)+"UX")) { aSugg.add(sFlex.slice(0,-1)+"UX"); } if (sFlex.endsWith("AIL") && sFlex.length > 3 && _oSpellChecker.isValid(sFlex.slice(0,-2)+"UX")) { aSugg.add(sFlex.slice(0,-2)+"UX"); } } if (sFlex.slice(-1).gl_isLowerCase()) { if (_oSpellChecker.isValid(sFlex+"s")) { aSugg.add(sFlex+"s"); } if (_oSpellChecker.isValid(sFlex+"x")) { aSugg.add(sFlex+"x"); } } else { if (_oSpellChecker.isValid(sFlex+"S")) { aSugg.add(sFlex+"s"); } if (_oSpellChecker.isValid(sFlex+"X")) { aSugg.add(sFlex+"x"); } } if (mfsp.hasMiscPlural(sFlex)) { mfsp.getMiscPlural(sFlex).forEach(function(x) { aSugg.add(x); }); } if (aSugg.size == 0 && bSelfSugg && (sFlex.endsWith("s") || sFlex.endsWith("x") || sFlex.endsWith("S") || sFlex.endsWith("X"))) { aSugg.add(sFlex); } |
︙ | ︙ |
Modified gc_lang/fr/modules/gce_suggestions.py from [74625aeb66] to [5701f141a0].
︙ | ︙ | |||
190 191 192 193 194 195 196 | if sFlex.endswith("ail") and len(sFlex) > 3 and _oSpellChecker.isValid(sFlex[:-2]+"ux"): aSugg.add(sFlex[:-2]+"ux") if sFlex.endswith("L"): if sFlex.endswith("AL") and len(sFlex) > 2 and _oSpellChecker.isValid(sFlex[:-1]+"UX"): aSugg.add(sFlex[:-1]+"UX") if sFlex.endswith("AIL") and len(sFlex) > 3 and _oSpellChecker.isValid(sFlex[:-2]+"UX"): aSugg.add(sFlex[:-2]+"UX") | > | | | | > > > > > | 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | if sFlex.endswith("ail") and len(sFlex) > 3 and _oSpellChecker.isValid(sFlex[:-2]+"ux"): aSugg.add(sFlex[:-2]+"ux") if sFlex.endswith("L"): if sFlex.endswith("AL") and len(sFlex) > 2 and _oSpellChecker.isValid(sFlex[:-1]+"UX"): aSugg.add(sFlex[:-1]+"UX") if sFlex.endswith("AIL") and len(sFlex) > 3 and _oSpellChecker.isValid(sFlex[:-2]+"UX"): aSugg.add(sFlex[:-2]+"UX") if sFlex[-1:].islower(): if _oSpellChecker.isValid(sFlex+"s"): aSugg.add(sFlex+"s") if _oSpellChecker.isValid(sFlex+"x"): aSugg.add(sFlex+"x") else: if _oSpellChecker.isValid(sFlex+"S"): aSugg.add(sFlex+"s") if _oSpellChecker.isValid(sFlex+"X"): aSugg.add(sFlex+"x") if mfsp.hasMiscPlural(sFlex): aSugg.update(mfsp.getMiscPlural(sFlex)) if not aSugg and bSelfSugg and sFlex.endswith(("s", "x", "S", "X")): aSugg.add(sFlex) aSugg.discard("") if aSugg: return "|".join(aSugg) |
︙ | ︙ |