Grammalecte  Check-in [131560e96d]

Overview
Comment:[core][fr] normalisation de l’écriture épicène
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fr | core
Files: files | file ages | folders
SHA3-256: 131560e96d0c3aeca9ceac3cb35e972d6cc61c8b82a965fc82495f7a090b661f
User & Date: olr on 2019-06-06 10:07:07
Other Links: manifest | tags
Context
2019-06-08
10:47
[fr] nr: confusion peut/peu, +ajustements check-in: a53d7914b3 user: olr tags: trunk, fr
2019-06-06
10:07
[core][fr] normalisation de l’écriture épicène check-in: 131560e96d user: olr tags: trunk, fr, core
10:04
[fr] mise à jour des couleurs pour LibreOffice check-in: da340b5ea5 user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/modules-js/gce_suggestions.js from [152a95fd16] to [169148cf7b].

631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
    }
    return "_";
}


const _dNormalizedCharsForInclusiveWriting = new Map([
    ['(', '_'],  [')', '_'],
    ['.', '_'],  ['·', '_'],
    ['–', '_'],  ['—', '_'],
    ['/', '_']
]);

function normalizeInclusiveWriting (sToken) {
    let sRes = "";
    for (let c of sToken) {







|







631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
    }
    return "_";
}


const _dNormalizedCharsForInclusiveWriting = new Map([
    ['(', '_'],  [')', '_'],
    ['.', '_'],  ['·', '_'],  ['•', '_'],
    ['–', '_'],  ['—', '_'],
    ['/', '_']
]);

function normalizeInclusiveWriting (sToken) {
    let sRes = "";
    for (let c of sToken) {

Modified gc_lang/fr/modules/gce_suggestions.py from [14bc22abf3] to [a3e179165e].

499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
    return "_"




_xNormalizedCharsForInclusiveWriting = str.maketrans({
    '(': '_',  ')': '_',
    '.': '_',  '·': '_',
    '–': '_',  '—': '_',
    '/': '_'
})


def normalizeInclusiveWriting (sToken):
    "typography: replace word separators used in inclusive writing by underscore (_)"
    return sToken.translate(_xNormalizedCharsForInclusiveWriting)







|








499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
    return "_"




_xNormalizedCharsForInclusiveWriting = str.maketrans({
    '(': '_',  ')': '_',
    '.': '_',  '·': '_',  '•': '_',
    '–': '_',  '—': '_',
    '/': '_'
})


def normalizeInclusiveWriting (sToken):
    "typography: replace word separators used in inclusive writing by underscore (_)"
    return sToken.translate(_xNormalizedCharsForInclusiveWriting)