From 1a0cff5772ac2015ed8e2e90660069913fd75fac Mon Sep 17 00:00:00 2001 From: CapitainFlam <31761317+CapitainFlam@users.noreply.github.com> Date: Thu, 15 Sep 2022 13:56:51 +0200 Subject: [PATCH] Update fr.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Normalize ´ (french apostroph) into ' (usual apostroph) --- server/lib/cleanup/languages/fr.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/lib/cleanup/languages/fr.js b/server/lib/cleanup/languages/fr.js index c609a828..6b174d55 100644 --- a/server/lib/cleanup/languages/fr.js +++ b/server/lib/cleanup/languages/fr.js @@ -20,9 +20,8 @@ function clean(sentences) { .replace(/\s+\)/g, ')') .replace(/\s+\]/g, ']') - // remplacing – (long hyphen) by - (short hyphen) + // normalize – (long hyphen) into - (short hyphen) .replace(/–/g, '-') - // no space before or after hyphen .replace(/\s+-\s+/g, '-') @@ -36,6 +35,9 @@ function clean(sentences) { // Normalize three consecutive dots into unicode elipsis .replace(/\.{3}/g, '…') + // Normalize ´ (french apostroph) into ' (usual apostroph) + .replace(/\´/g, '\'') + // In fr-FR, those should have a no space before and a normal space after .replace(/\s+,/g, ',') // before ... .replace(/\s+\./g, '.')