File: Zyyy.common-error.se-pattern.in

package info (click to toggle)
subtitleeditor 0.56.1-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 8,908 kB
  • sloc: cpp: 26,446; makefile: 1,713; perl: 434; sh: 259; xml: 149
file content (13 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8"?>
<patterns type="Common Error">
  <pattern _name="Leading and trailing spaces" _description="Remove spaces from the beginning and end of lines" classes="Human;OCR;">
    <rule regex="^ +" flags="DOTALL;MULTILINE;UNICODE;" replacement="" repeat="False"/>
    <rule regex=" +$" flags="DOTALL;MULTILINE;UNICODE;" replacement="" repeat="False"/>
  </pattern>
  <pattern _name="Multiple consecutive spaces" _description="Replace multiple consecutive spaces with only one" classes="Human;OCR;">
    <rule regex=" {2,}" flags="DOTALL;MULTILINE;UNICODE;" replacement="\040" repeat="False"/>
  </pattern>
  <pattern _name="Space between digits" _description="Remove space between digits of a number" classes="OCR;">
    <rule regex="(\b\d+) +(\d+\b)(?![-/])" flags="DOTALL;MULTILINE;UNICODE;" replacement="\1\2" repeat="True"/>
  </pattern>
</patterns>