Grammalecte  Check-in [2a10081bc2]

Overview
Comment:[core][fr] lexicographe: ajustements
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fr | core
Files: files | file ages | folders
SHA3-256: 2a10081bc275fb1663e0890585c6037be8346beb3f6db9ef679254c744a2cae1
User & Date: olr on 2020-01-12 09:58:47
Other Links: manifest | tags
Context
2020-01-14
13:30
[fr] ajustements check-in: 069ad79fc6 user: olr tags: fr, trunk
2020-01-12
09:58
[core][fr] lexicographe: ajustements check-in: 2a10081bc2 user: olr tags: core, fr, trunk
09:33
[graphspell][js] fix tokenizer for HTML markers check-in: b6c3593f76 user: olr tags: graphspell, trunk
Changes

Modified gc_lang/fr/modules-js/lexicographe.js from [f01ccf515f] to [ff079a1504].

   203    203       [':', "deux-points"],
   204    204       [';', "point-virgule"],
   205    205       [',', "virgule"],
   206    206       ['?', "point d’interrogation"],
   207    207       ['!', "point d’exclamation"],
   208    208       ['(', "parenthèse ouvrante"],
   209    209       [')', "parenthèse fermante"],
   210         -    ['[', "crochet ouvrante"],
   211         -    [']', "crochet fermante"],
          210  +    ['[', "crochet ouvrant"],
          211  +    [']', "crochet fermant"],
   212    212       ['{', "accolade ouvrante"],
   213    213       ['}', "accolade fermante"],
   214    214       ['-', "tiret"],
   215    215       ['—', "tiret cadratin"],
   216    216       ['–', "tiret demi-cadratin"],
   217    217       ['«', "guillemet ouvrant (chevrons)"],
   218    218       ['»', "guillemet fermant (chevrons)"],
................................................................................
   271    271                       break;
   272    272                   case 'LINK':
   273    273                       return {
   274    274                           sType: oToken.sType,
   275    275                           sValue: oToken.sValue.slice(0, 40) + "…",
   276    276                           aLabel: ["hyperlien"]
   277    277                       };
          278  +                    break;
          279  +                case 'TAG':
          280  +                    return {
          281  +                        sType: oToken.sType,
          282  +                        sValue: oToken.sValue,
          283  +                        aLabel: ["étiquette (hashtag)"]
          284  +                    };
          285  +                    break;
          286  +                case 'HTML':
          287  +                    return {
          288  +                        sType: oToken.sType,
          289  +                        sValue: oToken.sValue.slice(0, 40) + "…",
          290  +                        aLabel: ["balise HTML"]
          291  +                    };
          292  +                    break;
          293  +                case 'PSEUDOHTML':
          294  +                    return {
          295  +                        sType: oToken.sType,
          296  +                        sValue: oToken.sValue,
          297  +                        aLabel: ["balise pseudo-HTML"]
          298  +                    };
          299  +                    break;
          300  +                case 'HTMLENTITY':
          301  +                    return {
          302  +                        sType: oToken.sType,
          303  +                        sValue: oToken.sValue,
          304  +                        aLabel: ["entité caractère XML/HTML"]
          305  +                    };
          306  +                    break;
          307  +                case 'HOUR':
          308  +                    return {
          309  +                        sType: oToken.sType,
          310  +                        sValue: oToken.sValue,
          311  +                        aLabel: ["heure"]
          312  +                    };
   278    313                       break;
   279    314                   case 'WORD_ELIDED':
   280    315                       let sTemp = oToken.sValue.replace("’", "").replace("'", "").replace("`", "").toLowerCase();
   281    316                       return {
   282    317                           sType: oToken.sType,
   283    318                           sValue: oToken.sValue,
   284    319                           aLabel: [_dElidedPrefix.gl_get(sTemp, "préfixe élidé inconnu")]
................................................................................
   371    406                               sValue: oToken.sValue,
   372    407                               aLabel: ["mot inconnu du dictionnaire"]
   373    408                           };
   374    409                       }
   375    410                       break;
   376    411                   default:
   377    412                       return {
   378         -                        sType: "NO_TYPE",
          413  +                        sType: oToken.sType,
   379    414                           sValue: oToken.sValue,
   380    415                           aLabel: ["token inconnu"]
   381    416                       }
   382    417               }
   383    418           } catch (e) {
   384    419               console.error(e);
   385    420           }