Overview
| Comment: | [core][lo][fr] formateur de texte: … |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | fr | core | lo |
| Files: | files | file ages | folders |
| SHA3-256: |
2785b3b65afaef6d7105aa85a90c8171 |
| User & Date: | olr on 2019-11-20 10:18:41 |
| Other Links: | manifest | tags |
Context
|
2019-11-21
| ||
| 09:23 | [fr] faux positif check-in: 3b63150360 user: olr tags: trunk, fr | |
|
2019-11-20
| ||
| 10:18 | [core][lo][fr] formateur de texte: … check-in: 2785b3b65a user: olr tags: trunk, fr, core, lo | |
| 10:12 | [lo] small code cleaning check-in: b4038dd6fd user: olr tags: trunk, lo | |
Changes
Modified gc_lang/fr/modules/textformatter.py from [3443a1d35d] to [4ba47078d2].
| ︙ | ︙ | |||
17 18 19 20 21 22 23 |
("[ ]+\\)", ")")],
"within_square_brackets": [("\\[[ ]+", "["),
("[ ]+\\]", "]")],
"within_quotation_marks": [("“[ ]+", "“"),
("[ ]”", "”")],
## non-breaking spaces
# espaces insécables
| | | | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
("[ ]+\\)", ")")],
"within_square_brackets": [("\\[[ ]+", "["),
("[ ]+\\]", "]")],
"within_quotation_marks": [("“[ ]+", "“"),
("[ ]”", "”")],
## non-breaking spaces
# espaces insécables
"nbsp_before_punctuation": [("(?<=[]\\w…)»}])([:;?!])[ …]", " \\1 "),
("(?<=[]\\w…)»}])([:;?!])$", " \\1"),
("[ ]+([:;?!])", " \\1")],
"nbsp_within_quotation_marks": [("«(?=\\w)", "« "),
("«[ ]+", "« "),
("(?<=[\\w.!?])»", " »"),
("[ ]+»", " »")],
"nbsp_within_numbers": [("(\\d)[ ](?=\\d)", "\\1 ")],
# espaces insécables fines
"nnbsp_before_punctuation": [("(?<=[]\\w…)»}])([;?!])[ …]", " \\1 "),
("(?<=[]\\w…)»}])([;?!])$", " \\1"),
("[ ]+([;?!])", " \\1"),
("(?<=[]\\w…)»}]):", " :"),
("[ ]+:", " :")],
"nnbsp_within_quotation_marks":[("«(?=\\w)", "« "),
("«[ ]+", "« "),
("(?<=[\\w.!?])»", " »"),
|
| ︙ | ︙ |
Modified gc_lang/fr/oxt/TextFormatter/tf_tabrep.py from [e97495b087] to [f464a1a3f2].
| ︙ | ︙ | |||
53 54 55 56 57 58 59 |
],
# espaces insécables
"nbsp1": [
("(?<=[:alnum:]):[ ]", " : ", True, False),
("(?<=[:alnum:]):$", " :", True, False),
("(?<=[:alnum:]);", " ;", True, False),
| | | | | | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
],
# espaces insécables
"nbsp1": [
("(?<=[:alnum:]):[ ]", " : ", True, False),
("(?<=[:alnum:]):$", " :", True, False),
("(?<=[:alnum:]);", " ;", True, False),
("(?<=[:alnum:])[?][ …]", " ? ", True, False),
("(?<=[:alnum:])[?]$", " ?", True, False),
("(?<=[:alnum:])!", " !", True, False),
("(?<=[]…)»}]):", " :", True, False),
("(?<=[]…)»}]);", " ;", True, False),
("(?<=[]…)»}])[?][ …]", " ? ", True, False),
("(?<=[]…)»}])[?]$", " ?", True, False),
("(?<=[]…)»}])!", " !", True, False),
("[ ]+([:;?!])", " $1", True, False)
],
"nnbsp1": [
("(?<=[:alnum:]);", " ;", True, False),
("(?<=[:alnum:])[?][ …]", " ? ", True, False),
("(?<=[:alnum:])[?]$", " ?", True, False),
("(?<=[:alnum:])!", " !", True, False),
("(?<=[]…)»}]);", " ;", True, False),
("(?<=[]…)»}])[?][ …]", " ? ", True, False),
("(?<=[]…)»}])[?]$", " ?", True, False),
("(?<=[]…)»}])!", " !", True, False),
("[ ]+([;?!])", " $1", True, False),
("(?<=[:alnum:]):[ ]", " : ", True, False),
("(?<=[:alnum:]):$", " :", True, False),
("(?<=[]…)»}]):", " :", True, False),
("[ ]+:", " :", True, False)
|
| ︙ | ︙ |