Differences From Artifact [a9dd9e148e]:
- File gc_lang/fr/modules-js/textformatter.js — part of check-in [a947543048] at 2018-05-02 18:01:52 on branch trunk — [core][fx][tb][lo][fr] formateur de texte: autres titres de civilité (user: olr, size: 16717) [annotate] [blame] [check-ins using] [more...]
To Artifact [526f0b2382]:
- File gc_lang/fr/modules-js/textformatter.js — part of check-in [2d5c0dce59] at 2018-10-10 12:08:41 on branch nodejs — [js] All Grammalecte work in node (user: IllusionPerdu, size: 16751) [annotate] [blame] [check-ins using]
1 | // Grammalecte - text formatter | > > | | | 1 2 3 4 5 6 7 8 9 10 11 12 |
// Grammalecte - text formatter
/* jshint esversion:6, -W097 */
/* jslint esversion:6 */
/* global exports */
"use strict";
${map}
// Latin letters: http://unicode-table.com/fr/
|
| ︙ | ︙ | |||
81 82 83 84 85 86 87 |
"erase_non_breaking_hyphens": [ [//g, ""] ],
//// typographic signs
"ts_apostrophe": [ [/\b([ldnjmtscç])['´‘′`](?=[a-zA-Zà-ö0-9À-Öø-ÿØ-ßĀ-ʯ])/ig, "$1’"],
[/\b(qu|jusqu|lorsqu|puisqu|quoiqu|quelqu|presqu|entr|aujourd|prud)['´‘′`]/ig, "$1’"] ],
"ts_ellipsis": [ [/\.\.\./g, "…"],
[/…\.\./g, "……"],
[/…\.(?!\.)/g, "…"] ],
| | | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
"erase_non_breaking_hyphens": [ [//g, ""] ],
//// typographic signs
"ts_apostrophe": [ [/\b([ldnjmtscç])['´‘′`](?=[a-zA-Zà-ö0-9À-Öø-ÿØ-ßĀ-ʯ])/ig, "$1’"],
[/\b(qu|jusqu|lorsqu|puisqu|quoiqu|quelqu|presqu|entr|aujourd|prud)['´‘′`]/ig, "$1’"] ],
"ts_ellipsis": [ [/\.\.\./g, "…"],
[/…\.\./g, "……"],
[/…\.(?!\.)/g, "…"] ],
"ts_n_dash_middle": [ [/ [-—] /g, " – "],
[/ [-—],/g, " –,"] ],
"ts_m_dash_middle": [ [/ [-–] /g, " — "],
[/ [-–],/g, " —,"] ],
"ts_n_dash_start": [ [/^[-—][ ]/gm, "– "],
[/^– /gm, "– "],
[/^[-–—](?=[a-zA-Zà-ö0-9À-Öø-ÿØ-ßĀ-ʯ.…])/gm, "– "] ],
"ts_m_dash_start": [ [/^[-–][ ]/gm, "— "],
|
| ︙ | ︙ | |||
283 284 285 286 287 288 289 |
getDefaultOptions () {
return dTFDefaultOptions;
}
}
| | | 285 286 287 288 289 290 291 292 293 294 295 |
getDefaultOptions () {
return dTFDefaultOptions;
}
}
if (typeof exports !== 'undefined') {
exports.TextFormatter = TextFormatter;
exports.oReplTable = oReplTable;
}
|