Overview
| Comment: | [graphspell] lexicographer update |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | graphspell |
| Files: | files | file ages | folders |
| SHA3-256: |
23319013628709aa9ccec553d7eaa0c2 |
| User & Date: | olr on 2020-10-13 08:09:26 |
| Other Links: | manifest | tags |
Context
|
2020-10-16
| ||
| 10:45 | [fr] ajustements check-in: e2fd1a0e78 user: olr tags: trunk, fr | |
|
2020-10-13
| ||
| 08:09 | [graphspell] lexicographer update check-in: 2331901362 user: olr tags: trunk, graphspell | |
| 08:08 | [fr] ajustements check-in: abca1c84bf user: olr tags: trunk, fr | |
Changes
Modified graphspell-js/lexgraph_fr.js from [0bbeaad542] to [fa983c0b5b].
| ︙ | ︙ | |||
252 253 254 255 256 257 258 259 260 261 262 263 264 265 |
[':@', ["", "<Caractère non alpha-numérique>"]],
[':@p', ["signe de ponctuation", "Signe de ponctuation"]],
[':@s', ["signe", "Signe divers"]],
[';S', [" : symbole (unité de mesure)", "Symbole (unité de mesure)"]],
[';C', [" : couleur", "Couleur"]],
[';G', [" : gentilé", "Gentilé"]],
['/*', ["", "Sous-dictionnaire <Commun>"]],
['/C', [" <classique>", "Sous-dictionnaire <Classique>"]],
['/M', ["", "Sous-dictionnaire <Moderne>"]],
['/R', [" <réforme>", "Sous-dictionnaire <Réforme 1990>"]],
['/A', ["", "Sous-dictionnaire <Annexe>"]],
['/X', ["", "Sous-dictionnaire <Contributeurs>"]]
| > | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
[':@', ["", "<Caractère non alpha-numérique>"]],
[':@p', ["signe de ponctuation", "Signe de ponctuation"]],
[':@s', ["signe", "Signe divers"]],
[';S', [" : symbole (unité de mesure)", "Symbole (unité de mesure)"]],
[';C', [" : couleur", "Couleur"]],
[';G', [" : gentilé", "Gentilé"]],
[';L', ["", "Langue"]],
['/*', ["", "Sous-dictionnaire <Commun>"]],
['/C', [" <classique>", "Sous-dictionnaire <Classique>"]],
['/M', ["", "Sous-dictionnaire <Moderne>"]],
['/R', [" <réforme>", "Sous-dictionnaire <Réforme 1990>"]],
['/A', ["", "Sous-dictionnaire <Annexe>"]],
['/X', ["", "Sous-dictionnaire <Contributeurs>"]]
|
| ︙ | ︙ |
Modified graphspell-js/spellchecker.js from [d92500050c] to [a2bcf6d2aa].
| ︙ | ︙ | |||
176 177 178 179 180 181 182 |
setLabelsOnToken (oToken) {
if (!this.lexicographer) {
return;
}
if (!oToken.hasOwnProperty("lMorph")) {
oToken["lMorph"] = this.getMorph(oToken["sValue"]);
}
| | | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
setLabelsOnToken (oToken) {
if (!this.lexicographer) {
return;
}
if (!oToken.hasOwnProperty("lMorph")) {
oToken["lMorph"] = this.getMorph(oToken["sValue"]);
}
if (oToken["sType"].startsWith("WORD")) {
oToken["bValidToken"] = this.isValidToken(oToken["sValue"]);
let [sPrefix, sStem, sSuffix] = this.lexicographer.split(oToken["sValue"]);
if (sStem != oToken["sValue"]) {
oToken["lSubTokens"] = [
{ "sType": "WORD", "sValue": sPrefix, "lMorph": this.getMorph(sPrefix) },
{ "sType": "WORD", "sValue": sStem, "lMorph": this.getMorph(sStem) },
{ "sType": "WORD", "sValue": sSuffix, "lMorph": this.getMorph(sSuffix) }
|
| ︙ | ︙ |
Modified graphspell/lexgraph_fr.py from [82937d3981] to [e0d42e47af].
| ︙ | ︙ | |||
259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
':@': ("", "<Caractère non alpha-numérique>"),
':@p': ("signe de ponctuation", "Signe de ponctuation"),
':@s': ("signe", "Signe divers"),
';S': (" : symbole (unité de mesure)", "Symbole (unité de mesure)"),
';C': (" : couleur", "Couleur"),
';G': (" : gentilé", "Gentilé"),
'/*': ("", "Sous-dictionnaire <Commun>"),
'/C': (" <classique>", "Sous-dictionnaire <Classique>"),
'/M': ("", "Sous-dictionnaire <Moderne>"),
'/R': (" <réforme>", "Sous-dictionnaire <Réforme 1990>"),
'/A': ("", "Sous-dictionnaire <Annexe>"),
'/X': ("", "Sous-dictionnaire <Contributeurs>")
| > | 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
':@': ("", "<Caractère non alpha-numérique>"),
':@p': ("signe de ponctuation", "Signe de ponctuation"),
':@s': ("signe", "Signe divers"),
';S': (" : symbole (unité de mesure)", "Symbole (unité de mesure)"),
';C': (" : couleur", "Couleur"),
';G': (" : gentilé", "Gentilé"),
';L': ("", "Langue"),
'/*': ("", "Sous-dictionnaire <Commun>"),
'/C': (" <classique>", "Sous-dictionnaire <Classique>"),
'/M': ("", "Sous-dictionnaire <Moderne>"),
'/R': (" <réforme>", "Sous-dictionnaire <Réforme 1990>"),
'/A': ("", "Sous-dictionnaire <Annexe>"),
'/X': ("", "Sous-dictionnaire <Contributeurs>")
|
| ︙ | ︙ |
Modified graphspell/spellchecker.py from [3d385eb49e] to [6207eb55be].
| ︙ | ︙ | |||
142 143 144 145 146 147 148 |
- bValidToken: True if the token is valid for the spellchecker
- lSubTokens for each parts of the split token
"""
if not self.lexicographer:
return
if "lMorph" not in dToken:
dToken["lMorph"] = self.getMorph(dToken["sValue"])
| | | 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
- bValidToken: True if the token is valid for the spellchecker
- lSubTokens for each parts of the split token
"""
if not self.lexicographer:
return
if "lMorph" not in dToken:
dToken["lMorph"] = self.getMorph(dToken["sValue"])
if dToken["sType"].startswith("WORD"):
dToken["bValidToken"] = self.isValidToken(dToken["sValue"])
sPrefix, sStem, sSuffix = self.lexicographer.split(dToken["sValue"])
if sStem != dToken["sValue"]:
dToken["lSubTokens"] = [
{ "sType": "WORD", "sValue": sPrefix, "lMorph": self.getMorph(sPrefix) },
{ "sType": "WORD", "sValue": sStem, "lMorph": self.getMorph(sStem) },
{ "sType": "WORD", "sValue": sSuffix, "lMorph": self.getMorph(sSuffix) }
|
| ︙ | ︙ |