Grammalecte  Check-in [131560e96d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

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 2019-06-06 10:07:07
Context
2019-06-08
10:47
[fr] nr: confusion peut/peu, +ajustements check-in: a53d7914b3 user: olr tags: fr, trunk
2019-06-06
10:07
[core][fr] normalisation de l’écriture épicène check-in: 131560e96d user: olr tags: core, fr, trunk
10:04
[fr] mise à jour des couleurs pour LibreOffice check-in: da340b5ea5 user: olr tags: fr, trunk
Changes

Changes to gc_lang/fr/modules-js/gce_suggestions.js.

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) {

Changes to gc_lang/fr/modules/gce_suggestions.py.

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)