Overview
Comment: | [fr] text formatter: fix warning for regex (Python 3.7) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fr | rg |
Files: | files | file ages | folders |
SHA3-256: |
02577d7bc8906d8a4e6d24bd04e4690b |
User & Date: | olr on 2018-07-31 13:45:09 |
Other Links: | branch diff | manifest | tags |
Context
2018-07-31
| ||
13:46 | [fr] text formatter: remove useless “u” before strings check-in: 51e891ea07 user: olr tags: fr, rg | |
13:45 | [fr] text formatter: fix warning for regex (Python 3.7) check-in: 02577d7bc8 user: olr tags: fr, rg | |
12:50 | [misc] SublimeText theme check-in: 70aa7e7726 user: olr tags: misc, rg | |
Changes
Modified gc_lang/fr/modules/textformatter.py from [d3e695233d] to [353eeb2db0].
︙ | ︙ | |||
45 46 47 48 49 50 51 | # common "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")], | | | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | # common "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;"), ("&#([0-9]+|x[0-9a-fA-F]+)[ ];", "&#\\1;")], ## missing spaces "add_space_after_punctuation": [("([;!…])(?=\\w)", "\\1 "), ("[?](?=[A-ZÉÈÊÂÀÎ])", "? "), ("\\.(?=[A-ZÉÈÎ][a-zA-ZàâÂéÉèÈêÊîÎïÏôÔöÖûÛüÜùÙ])", ". "), |
︙ | ︙ |