Index: gc_lang/fr/modules-js/textformatter.js ================================================================== --- gc_lang/fr/modules-js/textformatter.js +++ gc_lang/fr/modules-js/textformatter.js @@ -55,11 +55,14 @@ [/«[  ]+/g, "« "], [/([a-zA-Zà-ö0-9À-Öø-ÿØ-ßĀ-ʯ.!?])»/g, "$1 »"], [/[  ]+»/g, " »"] ], "nnbsp_within_numbers": [ [/(\d)[  ](\d)/g, "$1 $2"] ], // common - "nbsp_titles": [ [/\bM(mes?|ᵐᵉˢ?|grs?|ᵍʳˢ?|lles?|ˡˡᵉˢ?|rs?|ʳˢ?|M[.]) /g, "M$1 "] ], + "nbsp_titles": [ [/\bM(mes?|ᵐᵉˢ?|grs?|ᵍʳˢ?|lles?|ˡˡᵉˢ?|rs?|ʳˢ?|M[.]) /g, "M$1 "], + [/\bP(re?s?|ʳᵉ?ˢ?) /g, "P$1 "], + [/\bD(re?s?|ʳᵉ?ˢ?) /g, "D$1 "], + [/\bV(ves?|ᵛᵉˢ?) /g, "V$1 "] ], "nbsp_before_symbol": [ [/(\d) ?([%‰€$£¥˚Ω℃])/g, "$1 $2"] ], "nbsp_before_units": [ [/([0-9⁰¹²³⁴⁵⁶⁷⁸⁹]) ?([kcmµn]?(?:[slgJKΩ]|m[²³]?|Wh?|Hz|dB)|[%‰]|°C)\b/g, "$1 $2"] ], "nbsp_repair": [ [/([\[(])[   ]([!?:;])/g, "$1$2"], [/(https?|ftp)[   ]:\/\//g, "$1://"], [/&([a-z]+)[   ];/g, "&$1;"], Index: gc_lang/fr/modules/textformatter.py ================================================================== --- gc_lang/fr/modules/textformatter.py +++ gc_lang/fr/modules/textformatter.py @@ -37,11 +37,14 @@ ("«[  ]+", "« "), ("(?<=[\\w.!?])»", " »"), ("[  ]+»", " »")], "nnbsp_within_numbers": [("(\\d)[  ](\\d)", "\\1 \\2")], # common - "nbsp_titles": [("M(mes?|ᵐᵉˢ?|grs?|ᵍʳˢ?|lles?|ˡˡᵉˢ?|rs?|ʳˢ?|M\\.) ", "M\\1 ")], + "nbsp_titles": [("\\bM(mes?|ᵐᵉˢ?|grs?|ᵍʳˢ?|lles?|ˡˡᵉˢ?|rs?|ʳˢ?|M\\.) ", "M\\1 "), + ("\\bP(re?s?|ʳᵉ?ˢ?) ", "P\\1 "), + ("\\bD(re?s?|ʳᵉ?ˢ?) ", "D\\1 "), + ("\\bV(ves?|ᵛᵉˢ?) ", "V\\1 ")], "nbsp_before_symbol": [("(\\d) ?([%‰€$£¥˚Ω℃])", "\\1 \\2")], "nbsp_before_units": [("(?<=[0-9⁰¹²³⁴⁵⁶⁷⁸⁹]) ?([kcmµn]?(?:[slgJKΩ]|m[²³]?|Wh?|Hz|dB)|[%‰]|°C)\\b", " \\1")], "nbsp_repair": [("(?<=[[(])[   ]([!?:;])", "\\1"), ("(https?|ftp)[   ]:(?=//)", "\\1:"), ("&([a-z]+)[   ];", "&\\1;"), Index: gc_lang/fr/oxt/TextFormatter/tf_tabrep.py ================================================================== --- gc_lang/fr/oxt/TextFormatter/tf_tabrep.py +++ gc_lang/fr/oxt/TextFormatter/tf_tabrep.py @@ -119,11 +119,14 @@ ], "nbsp5": [ ("(?<=[0-9⁰¹²³⁴⁵⁶⁷⁸⁹]) ?([kcmµnd]?(?:[slgJKΩΩℓ]|m[²³]?|Wh?|Hz|dB)|[%‰]|°C)\\b", " $1", True, True) ], "nbsp6": [ - ("\\bM(mes?|ᵐᵉˢ?|grs?|ᵍʳˢ?|lles?|ˡˡᵉˢ?|rs?|ʳˢ?|M\\.) ", "M$1 ", True, True) + ("\\bM(mes?|ᵐᵉˢ?|grs?|ᵍʳˢ?|lles?|ˡˡᵉˢ?|rs?|ʳˢ?|M\\.) ", "M$1 ", True, True), + ("\\bD(re?s?|ʳᵉ?ˢ?) ", "D$1 ", True, True), + ("\\bP(re?s?|ʳᵉ?ˢ?) ", "P$1 ", True, True), + ("\\bV(ves?|ᵛᵉˢ?) ", "V$1 ", True, True), ], # espaces manquants "space1": [ (";(?=[:alnum:])", "; ", True, True),